ncn26010_driver.c
Go to the documentation of this file.
uint32_t reverseInt32(uint32_t value)
Reverse bit order in a 32-bit word.
Definition: cpu_endian.c:123
Debugging facilities.
void macAddrToEui64(const MacAddr *macAddr, Eui64 *interfaceId)
Map a MAC address to the IPv6 modified EUI-64 identifier.
Definition: ethernet.c:944
bool_t ncn26010IrqHandler(NetInterface *interface)
NCN26010 interrupt service routine.
Definition: ncn26010_driver.c:298
__weak_func void ncn26010InitHook(NetInterface *interface)
NCN26010 custom configuration.
Definition: ncn26010_driver.c:217
uint32_t ncn26010CalcParity(uint32_t data)
Calculate parity bit over a 32-bit data.
Definition: ncn26010_driver.c:873
void ncn26010DumpReg(NetInterface *interface, uint8_t mms, uint16_t address, uint_t num)
Dump registers for debugging purpose.
Definition: ncn26010_driver.c:849
void ncn26010DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: ncn26010_driver.c:282
error_t ncn26010Init(NetInterface *interface)
NCN26010 controller initialization.
Definition: ncn26010_driver.c:71
error_t ncn26010UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: ncn26010_driver.c:590
error_t ncn26010ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: ncn26010_driver.c:462
error_t ncn26010SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: ncn26010_driver.c:343
void ncn26010EventHandler(NetInterface *interface)
NCN26010 event handler.
Definition: ncn26010_driver.c:314
void ncn26010WriteReg(NetInterface *interface, uint8_t mms, uint16_t address, uint32_t data)
Write register.
Definition: ncn26010_driver.c:737
uint32_t ncn26010ReadReg(NetInterface *interface, uint8_t mms, uint16_t address)
Read register.
Definition: ncn26010_driver.c:791
Onsemi NCN26010 10Base-T1S Ethernet controller.
#define NCN26010_PHYSTATUS_LINK_STATUS
Definition: ncn26010_driver.h:320
#define NCN26010_PLCABURST_BTMR_DEFAULT
Definition: ncn26010_driver.h:509
#define NCN26010_CONFIG0_TXCTHRESH_16_CREDITS
Definition: ncn26010_driver.h:259
#define NCN26010_PLCABURST_MAXBC_DEFAULT
Definition: ncn26010_driver.h:507
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