fm3_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 FM3_ETH2_IRQ_PRIORITY_GROUPING
Definition: fm3_eth2_driver.h:67
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
Cypress FM3 Ethernet MAC driver (ETHER1 instance)
error_t fm3Eth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: fm3_eth2_driver.c:669
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
uint32_t fm3Eth2CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: fm3_eth2_driver.c:853
__weak_func void fm3Eth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: fm3_eth2_driver.c:261
error_t fm3Eth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: fm3_eth2_driver.c:599
error_t fm3Eth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: fm3_eth2_driver.c:540
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
const NicDriver fm3Eth2Driver
FM3 Ethernet MAC driver (ETHER1 instance)
Definition: fm3_eth2_driver.c:87
error_t fm3Eth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: fm3_eth2_driver.c:729
void fm3Eth2EventHandler(NetInterface *interface)
FM3 Ethernet MAC event handler.
Definition: fm3_eth2_driver.c:515
void fm3Eth2Tick(NetInterface *interface)
FM3 Ethernet MAC timer handler.
Definition: fm3_eth2_driver.c:382
void fm3Eth2InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: fm3_eth2_driver.c:313
void ETHER1_CAN1_IRQHandler(void)
FM3 Ethernet MAC interrupt service routine.
Definition: fm3_eth2_driver.c:462
error_t fm3Eth2Init(NetInterface *interface)
FM3 Ethernet MAC initialization.
Definition: fm3_eth2_driver.c:114
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void fm3Eth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: fm3_eth2_driver.c:772
TCP/IP stack core.
Debugging facilities.
uint16_t fm3Eth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: fm3_eth2_driver.c:810