lpc178x_eth_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
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
LPC1786/88 Ethernet MAC driver.
#define LPC178X_ETH_IRQ_PRIORITY_GROUPING
Definition: lpc178x_eth_driver.h:67
void lpc178xEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: lpc178x_eth_driver.c:371
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
__weak_func void lpc178xEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: lpc178x_eth_driver.c:231
uint16_t lpc178xEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: lpc178x_eth_driver.c:769
#define LPC178X_ETH_IRQ_GROUP_PRIORITY
Definition: lpc178x_eth_driver.h:74
void lpc178xEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: lpc178x_eth_driver.c:343
uint32_t lpc178xEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: lpc178x_eth_driver.c:813
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t lpc178xEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: lpc178x_eth_driver.c:579
void lpc178xEthEventHandler(NetInterface *interface)
LPC178x Ethernet MAC event handler.
Definition: lpc178x_eth_driver.c:458
error_t lpc178xEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: lpc178x_eth_driver.c:690
void lpc178xEthInitDesc(NetInterface *interface)
Initialize TX and RX descriptors.
Definition: lpc178x_eth_driver.c:267
error_t lpc178xEthInit(NetInterface *interface)
LPC178x Ethernet MAC initialization.
Definition: lpc178x_eth_driver.c:121
void lpc178xEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: lpc178x_eth_driver.c:733
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define RFC_ACCEPT_MULTICAST_HASH_EN
Definition: lpc175x_eth_driver.h:268
TCP/IP stack core.
void ENET_IRQHandler(void)
LPC178x Ethernet MAC interrupt service routine.
Definition: lpc178x_eth_driver.c:398
void lpc178xEthTick(NetInterface *interface)
LPC178x Ethernet MAC timer handler.
Definition: lpc178x_eth_driver.c:318
Debugging facilities.
error_t lpc178xEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: lpc178x_eth_driver.c:632
error_t lpc178xEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: lpc178x_eth_driver.c:493