lpc176x_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
LPC1764/66/67/68/69 Ethernet MAC driver.
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
void lpc176xEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: lpc176x_eth_driver.c:723
error_t lpc176xEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: lpc176x_eth_driver.c:680
uint32_t lpc176xEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: lpc176x_eth_driver.c:803
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 lpc176xEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: lpc176x_eth_driver.c:231
void lpc176xEthTick(NetInterface *interface)
LPC176x Ethernet MAC timer handler.
Definition: lpc176x_eth_driver.c:308
error_t lpc176xEthInit(NetInterface *interface)
LPC176x Ethernet MAC initialization.
Definition: lpc176x_eth_driver.c:121
void lpc176xEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: lpc176x_eth_driver.c:361
error_t lpc176xEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: lpc176x_eth_driver.c:483
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
uint16_t lpc176xEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: lpc176x_eth_driver.c:759
void lpc176xEthInitDesc(NetInterface *interface)
Initialize TX and RX descriptors.
Definition: lpc176x_eth_driver.c:257
#define LPC176X_ETH_IRQ_GROUP_PRIORITY
Definition: lpc176x_eth_driver.h:74
error_t lpc176xEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: lpc176x_eth_driver.c:622
#define LPC176X_ETH_IRQ_PRIORITY_GROUPING
Definition: lpc176x_eth_driver.h:67
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)
LPC176x Ethernet MAC interrupt service routine.
Definition: lpc176x_eth_driver.c:388
void lpc176xEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: lpc176x_eth_driver.c:333
error_t lpc176xEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: lpc176x_eth_driver.c:569
Debugging facilities.
void lpc176xEthEventHandler(NetInterface *interface)
LPC176x Ethernet MAC event handler.
Definition: lpc176x_eth_driver.c:448