lan8650_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
#define LAN8650_MMDCTRL_FNCTN_DATA_NO_POST_INC
Definition: lan8650_driver.h:376
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
void lan8650WriteReg(NetInterface *interface, uint8_t mms, uint16_t address, uint32_t data)
Write register.
Definition: lan8650_driver.c:803
int8_t lan8650ReadIndirectReg(NetInterface *interface, uint8_t address)
Read indirect register.
Definition: lan8650_driver.c:994
void lan8650Config(NetInterface *interface)
LAN8650 controller configuration.
Definition: lan8650_driver.c:189
error_t lan8650ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: lan8650_driver.c:527
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 lan8650SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: lan8650_driver.c:408
#define LAN8650_OA_CONFIG0_TXCTHRESH_16_CREDITS
Definition: lan8650_driver.h:264
uint16_t lan8650ReadMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
Read MMD register.
Definition: lan8650_driver.c:968
#define LAN8650_PLCA_BURST_BTMR_DEFAULT
Definition: lan8650_driver.h:700
uint32_t lan8650CalcParity(uint32_t data)
Calculate parity bit over a 32-bit data.
Definition: lan8650_driver.c:1011
#define LAN8650_OA_CONFIG0_CPS_64_BYTES
Definition: lan8650_driver.h:273
uint32_t lan8650ReadReg(NetInterface *interface, uint8_t mms, uint16_t address)
Read register.
Definition: lan8650_driver.c:857
__weak_func void lan8650InitHook(NetInterface *interface)
LAN8650 custom configuration.
Definition: lan8650_driver.c:179
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
bool_t lan8650IrqHandler(NetInterface *interface)
LAN8650 interrupt service routine.
Definition: lan8650_driver.c:364
error_t lan8650UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: lan8650_driver.c:655
void lan8650EventHandler(NetInterface *interface)
LAN8650 event handler.
Definition: lan8650_driver.c:380
void lan8650WriteMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
Write MMD register.
Definition: lan8650_driver.c:941
void lan8650DumpReg(NetInterface *interface, uint8_t mms, uint16_t address, uint_t num)
Dump registers for debugging purpose.
Definition: lan8650_driver.c:915
error_t lan8650Init(NetInterface *interface)
LAN8650 controller initialization.
Definition: lan8650_driver.c:71
#define LAN8650_PLCA_BURST_MAXBC_DEFAULT
Definition: lan8650_driver.h:698
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
LAN8650 10Base-T1S Ethernet controller.
Debugging facilities.