w5100_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
void w5100ReadData(NetInterface *interface, uint8_t *data, size_t length)
Read data.
Definition: w5100_driver.c:607
void w5100ReadBuffer(NetInterface *interface, uint16_t address, uint8_t *data, size_t length)
Read RX buffer.
Definition: w5100_driver.c:696
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 w5100WriteBuffer(NetInterface *interface, uint16_t address, const uint8_t *data, size_t length)
Write TX buffer.
Definition: w5100_driver.c:673
void w5100DumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: w5100_driver.c:716
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 w5100WriteReg8(NetInterface *interface, uint16_t address, uint8_t data)
Write 8-bit register.
Definition: w5100_driver.c:432
uint8_t w5100ReadReg8(NetInterface *interface, uint16_t address)
Read 8-bit register.
Definition: w5100_driver.c:459
error_t w5100UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: w5100_driver.c:418
WIZnet W5100 Ethernet controller.
void w5100WriteReg16(NetInterface *interface, uint16_t address, uint16_t data)
Write 16-bit register.
Definition: w5100_driver.c:491
void w5100WriteData(NetInterface *interface, const uint8_t *data, size_t length)
Write data.
Definition: w5100_driver.c:541
__weak_func void w5100Tick(NetInterface *interface)
W5100 timer handler.
Definition: w5100_driver.c:169
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
uint16_t w5100ReadReg16(NetInterface *interface, uint16_t address)
Read 16-bit register.
Definition: w5100_driver.c:507
bool_t w5100IrqHandler(NetInterface *interface)
W5100 interrupt service routine.
Definition: w5100_driver.c:218
error_t w5100Init(NetInterface *interface)
W5100 controller initialization.
Definition: w5100_driver.c:71
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
__weak_func void w5100InitHook(NetInterface *interface)
W5100 custom configuration.
Definition: w5100_driver.c:159
Debugging facilities.
error_t w5100SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: w5100_driver.c:304