w5500_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
void w5500ReadBuffer(NetInterface *interface, uint8_t control, uint16_t address, uint8_t *data, size_t length)
Read RX buffer.
Definition: w5500_driver.c:694
void w5500WriteReg8(NetInterface *interface, uint8_t control, uint16_t address, uint8_t data)
Write 8-bit register.
Definition: w5500_driver.c:525
uint8_t w5500ReadReg8(NetInterface *interface, uint8_t control, uint16_t address)
Read 8-bit register.
Definition: w5500_driver.c:555
error_t w5500SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: w5500_driver.c:367
error_t w5500UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: w5500_driver.c:510
error_t w5500Init(NetInterface *interface)
W5500 controller initialization.
Definition: w5500_driver.c:71
__weak_func void w5500InitHook(NetInterface *interface)
W5500 custom configuration.
Definition: w5500_driver.c:182
void w5500WriteBuffer(NetInterface *interface, uint8_t control, uint16_t address, const uint8_t *data, size_t length)
Write TX buffer.
Definition: w5500_driver.c:658
void w5500WriteReg16(NetInterface *interface, uint8_t control, uint16_t address, uint16_t data)
Write 16-bit register.
Definition: w5500_driver.c:590
bool_t w5500IrqHandler(NetInterface *interface)
W5500 interrupt service routine.
Definition: w5500_driver.c:280
void w5500DumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: w5500_driver.c:726
uint16_t w5500ReadReg16(NetInterface *interface, uint8_t control, uint16_t address)
Read 16-bit register.
Definition: w5500_driver.c:621
WIZnet W5500 Ethernet controller.