mimxrt1060_eth2_driver.c
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:270
#define MIMXRT1060_ETH2_IRQ_GROUP_PRIORITY
Definition: mimxrt1060_eth2_driver.h:71
size_t netBufferRead(void *dest, const NetBuffer *src, size_t srcOffset, size_t length)
Read data from a multi-part buffer.
Definition: net_mem.c:690
#define MIMXRT1060_ETH2_RX_BUFFER_SIZE
Definition: mimxrt1060_eth2_driver.h:57
#define MIMXRT1060_ETH2_IRQ_SUB_PRIORITY
Definition: mimxrt1060_eth2_driver.h:78
void mimxrt1060Eth2DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: mimxrt1060_eth2_driver.c:364
const NicDriver mimxrt1060Eth2Driver
i.MX RT1060 Ethernet MAC driver (ENET2 instance)
Definition: mimxrt1060_eth2_driver.c:93
#define MIMXRT1060_ETH2_TX_BUFFER_SIZE
Definition: mimxrt1060_eth2_driver.h:43
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
error_t mimxrt1060Eth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: mimxrt1060_eth2_driver.c:753
void mimxrt1060Eth2Tick(NetInterface *interface)
i.MX RT1060 Ethernet MAC timer handler
Definition: mimxrt1060_eth2_driver.c:311
void mimxrt1060Eth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: mimxrt1060_eth2_driver.c:807
NXP i.MX RT1060 Ethernet MAC driver (ENET2 instance)
error_t mimxrt1060Eth2Init(NetInterface *interface)
i.MX RT1060 Ethernet MAC initialization
Definition: mimxrt1060_eth2_driver.c:120
error_t mimxrt1060Eth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: mimxrt1060_eth2_driver.c:510
#define MIMXRT1060_ETH2_IRQ_PRIORITY_GROUPING
Definition: mimxrt1060_eth2_driver.h:64
uint32_t mimxrt1060Eth2CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: mimxrt1060_eth2_driver.c:896
#define MIMXRT1060_ETH2_RX_BUFFER_COUNT
Definition: mimxrt1060_eth2_driver.h:50
#define MIMXRT1060_ETH2_TX_BUFFER_COUNT
Definition: mimxrt1060_eth2_driver.h:36
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
#define MIMXRT1060_ETH2_RAM_SECTION
Definition: mimxrt1060_eth2_driver.h:85
void mimxrt1060Eth2InitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: mimxrt1060_eth2_driver.c:250
void mimxrt1060Eth2EventHandler(NetInterface *interface)
i.MX RT1060 Ethernet MAC event handler
Definition: mimxrt1060_eth2_driver.c:455
__weak_func void mimxrt1060Eth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: mimxrt1060_eth2_driver.c:240
error_t mimxrt1060Eth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: mimxrt1060_eth2_driver.c:583
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
uint16_t mimxrt1060Eth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: mimxrt1060_eth2_driver.c:849
TCP/IP stack core.
void mimxrt1060Eth2EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: mimxrt1060_eth2_driver.c:336
error_t mimxrt1060Eth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: mimxrt1060_eth2_driver.c:664
Debugging facilities.