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