lan8651_driver.c
Go to the documentation of this file.
Debugging facilities.
error_t lan8651SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: lan8651_driver.c:408
uint16_t lan8651ReadMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
Read MMD register.
Definition: lan8651_driver.c:968
void lan8651EventHandler(NetInterface *interface)
LAN8651 event handler.
Definition: lan8651_driver.c:380
int8_t lan8651ReadIndirectReg(NetInterface *interface, uint8_t address)
Read indirect register.
Definition: lan8651_driver.c:994
void lan8651WriteMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
Write MMD register.
Definition: lan8651_driver.c:941
void lan8651Config(NetInterface *interface)
LAN8651 controller configuration.
Definition: lan8651_driver.c:189
__weak_func void lan8651InitHook(NetInterface *interface)
LAN8651 custom configuration.
Definition: lan8651_driver.c:179
uint32_t lan8651ReadReg(NetInterface *interface, uint8_t mms, uint16_t address)
Read register.
Definition: lan8651_driver.c:857
uint32_t lan8651CalcParity(uint32_t data)
Calculate parity bit over a 32-bit data.
Definition: lan8651_driver.c:1011
error_t lan8651UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: lan8651_driver.c:655
error_t lan8651ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: lan8651_driver.c:527
void lan8651DumpReg(NetInterface *interface, uint8_t mms, uint16_t address, uint_t num)
Dump registers for debugging purpose.
Definition: lan8651_driver.c:915
void lan8651WriteReg(NetInterface *interface, uint8_t mms, uint16_t address, uint32_t data)
Write register.
Definition: lan8651_driver.c:803
error_t lan8651Init(NetInterface *interface)
LAN8651 controller initialization.
Definition: lan8651_driver.c:71
bool_t lan8651IrqHandler(NetInterface *interface)
LAN8651 interrupt service routine.
Definition: lan8651_driver.c:364
LAN8651 10Base-T1S Ethernet controller.
#define LAN8651_PLCA_BURST_MAXBC_DEFAULT
Definition: lan8651_driver.h:698
#define LAN8651_PLCA_BURST_BTMR_DEFAULT
Definition: lan8651_driver.h:700
#define LAN8651_OA_CONFIG0_CPS_64_BYTES
Definition: lan8651_driver.h:273
#define LAN8651_MMDCTRL_FNCTN_DATA_NO_POST_INC
Definition: lan8651_driver.h:376
#define LAN8651_OA_CONFIG0_TXCTHRESH_16_CREDITS
Definition: lan8651_driver.h:264
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