w5100s_driver.c
Go to the documentation of this file.
Debugging facilities.
TCP/IP stack core.
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
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:674
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:391
void nicNotifyLinkChange(NetInterface *interface)
Process link state change notification.
Definition: nic.c:548
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:266
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
uint16_t w5100sReadReg16(NetInterface *interface, uint16_t address)
Read 16-bit register.
Definition: w5100s_driver.c:579
void w5100sDumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: w5100s_driver.c:771
void w5100sReadBuffer(NetInterface *interface, uint16_t address, uint8_t *data, size_t length)
Read RX buffer.
Definition: w5100s_driver.c:740
error_t w5100sSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: w5100s_driver.c:364
void w5100sWriteReg8(NetInterface *interface, uint16_t address, uint8_t data)
Write 8-bit register.
Definition: w5100s_driver.c:492
void w5100sWriteData(NetInterface *interface, const uint8_t *data, size_t length)
Write data.
Definition: w5100s_driver.c:612
uint8_t w5100sReadReg8(NetInterface *interface, uint16_t address)
Read 8-bit register.
Definition: w5100s_driver.c:519
void w5100sReadData(NetInterface *interface, uint8_t *data, size_t length)
Read data.
Definition: w5100s_driver.c:659
error_t w5100sReceivePacket(NetInterface *interface)
Receive a packet.
Definition: w5100s_driver.c:417
__weak_func void w5100sInitHook(NetInterface *interface)
W5100S custom configuration.
Definition: w5100s_driver.c:180
error_t w5100sUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: w5100s_driver.c:478
void w5100sWriteReg16(NetInterface *interface, uint16_t address, uint16_t data)
Write 16-bit register.
Definition: w5100s_driver.c:551
error_t w5100sInit(NetInterface *interface)
W5100S controller initialization.
Definition: w5100s_driver.c:71
void w5100sEventHandler(NetInterface *interface)
W5100S event handler.
Definition: w5100s_driver.c:339
void w5100sWriteBuffer(NetInterface *interface, uint16_t address, const uint8_t *data, size_t length)
Write TX buffer.
Definition: w5100s_driver.c:706
bool_t w5100sIrqHandler(NetInterface *interface)
W5100S interrupt service routine.
Definition: w5100s_driver.c:278
WIZnet W5100S Ethernet controller.