fm3_eth1_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_ETH1_IRQ_PRIORITY_GROUPING
Definition: fm3_eth1_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
error_t fm3Eth1UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: fm3_eth1_driver.c:669
error_t fm3Eth1UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: fm3_eth1_driver.c:729
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 fm3Eth1ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: fm3_eth1_driver.c:599
error_t fm3Eth1Init(NetInterface *interface)
FM3 Ethernet MAC initialization.
Definition: fm3_eth1_driver.c:114
error_t fm3Eth1SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: fm3_eth1_driver.c:540
void ETHER0_CAN0_IRQHandler(void)
FM3 Ethernet MAC interrupt service routine.
Definition: fm3_eth1_driver.c:462
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void fm3Eth1InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: fm3_eth1_driver.c:313
const NicDriver fm3Eth1Driver
FM3 Ethernet MAC driver (ETHER0 instance)
Definition: fm3_eth1_driver.c:87
uint32_t fm3Eth1CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: fm3_eth1_driver.c:853
void fm3Eth1EventHandler(NetInterface *interface)
FM3 Ethernet MAC event handler.
Definition: fm3_eth1_driver.c:515
void fm3Eth1WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: fm3_eth1_driver.c:772
Cypress FM3 Ethernet MAC driver (ETHER0 instance)
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
uint16_t fm3Eth1ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: fm3_eth1_driver.c:810
void fm3Eth1Tick(NetInterface *interface)
FM3 Ethernet MAC timer handler.
Definition: fm3_eth1_driver.c:382
TCP/IP stack core.
__weak_func void fm3Eth1InitGpio(NetInterface *interface)
GPIO configuration.
Definition: fm3_eth1_driver.c:261
Debugging facilities.