w5200_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
void nicNotifyLinkChange(NetInterface *interface)
Process link state change notification.
Definition: nic.c:559
bool_t w5200IrqHandler(NetInterface *interface)
W5200 interrupt service routine.
Definition: w5200_driver.c:256
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
__weak_func void w5200InitHook(NetInterface *interface)
W5200 custom configuration.
Definition: w5200_driver.c:178
void w5200WriteReg16(NetInterface *interface, uint16_t address, uint16_t data)
Write 16-bit register.
Definition: w5200_driver.c:531
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
void w5200WriteBuffer(NetInterface *interface, uint16_t address, const uint8_t *data, size_t length)
Write TX buffer.
Definition: w5200_driver.c:688
void w5200ReadData(NetInterface *interface, uint8_t *data, size_t length)
Read data.
Definition: w5200_driver.c:641
void w5200ReadBuffer(NetInterface *interface, uint16_t address, uint8_t *data, size_t length)
Read RX buffer.
Definition: w5200_driver.c:723
void w5200WriteData(NetInterface *interface, const uint8_t *data, size_t length)
Write data.
Definition: w5200_driver.c:594
void w5200WriteReg8(NetInterface *interface, uint16_t address, uint8_t data)
Write 8-bit register.
Definition: w5200_driver.c:470
error_t w5200Init(NetInterface *interface)
W5200 controller initialization.
Definition: w5200_driver.c:71
void w5200DumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: w5200_driver.c:755
error_t w5200SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: w5200_driver.c:342
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
uint16_t w5200ReadReg16(NetInterface *interface, uint16_t address)
Read 16-bit register.
Definition: w5200_driver.c:560
WIZnet W5200 Ethernet controller.
uint8_t w5200ReadReg8(NetInterface *interface, uint16_t address)
Read 8-bit register.
Definition: w5200_driver.c:498
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
error_t w5200UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: w5200_driver.c:456
TCP/IP stack core.
Debugging facilities.