w3150a_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 w3150aDumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: w3150a_driver.c:716
__weak_func void w3150aTick(NetInterface *interface)
W3150A+ timer handler.
Definition: w3150a_driver.c:169
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
error_t w3150aInit(NetInterface *interface)
W3150A+ controller initialization.
Definition: w3150a_driver.c:71
error_t w3150aReceivePacket(NetInterface *interface)
Receive a packet.
Definition: w3150a_driver.c:357
void w3150aReadBuffer(NetInterface *interface, uint16_t address, uint8_t *data, size_t length)
Read RX buffer.
Definition: w3150a_driver.c:696
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
error_t w3150aUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: w3150a_driver.c:418
error_t w3150aSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: w3150a_driver.c:304
uint8_t w3150aReadReg8(NetInterface *interface, uint16_t address)
Read 8-bit register.
Definition: w3150a_driver.c:459
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void w3150aWriteData(NetInterface *interface, const uint8_t *data, size_t length)
Write data.
Definition: w3150a_driver.c:541
__weak_func void w3150aInitHook(NetInterface *interface)
W3150A+ custom configuration.
Definition: w3150a_driver.c:159
void w3150aWriteReg8(NetInterface *interface, uint16_t address, uint8_t data)
Write 8-bit register.
Definition: w3150a_driver.c:432
void w3150aWriteBuffer(NetInterface *interface, uint16_t address, const uint8_t *data, size_t length)
Write TX buffer.
Definition: w3150a_driver.c:673
bool_t w3150aIrqHandler(NetInterface *interface)
W3150A+ interrupt service routine.
Definition: w3150a_driver.c:218
void w3150aReadData(NetInterface *interface, uint8_t *data, size_t length)
Read data.
Definition: w3150a_driver.c:607
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
WIZnet W3150A+ Ethernet controller.
TCP/IP stack core.
void w3150aWriteReg16(NetInterface *interface, uint16_t address, uint16_t data)
Write 16-bit register.
Definition: w3150a_driver.c:491
void w3150aEventHandler(NetInterface *interface)
W3150A+ event handler.
Definition: w3150a_driver.c:279
uint16_t w3150aReadReg16(NetInterface *interface, uint16_t address)
Read 16-bit register.
Definition: w3150a_driver.c:507
Debugging facilities.