enc424j600_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 enc424j600Tick(NetInterface *interface)
ENC424J600 timer handler.
Definition: enc424j600_driver.c:203
void enc424j600ClearBit(NetInterface *interface, uint8_t address, uint16_t mask)
Clear bit field.
Definition: enc424j600_driver.c:921
void macAddrToEui64(const MacAddr *macAddr, Eui64 *interfaceId)
Map a MAC address to the IPv6 modified EUI-64 identifier.
Definition: ethernet.c:946
#define ENC424J600_MABBIPG_BBIPG_DEFAULT_HD
Definition: enc424j600_driver.h:309
void enc424j600UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: enc424j600_driver.c:605
void enc424j600WriteBuffer(NetInterface *interface, uint8_t opcode, const NetBuffer *buffer, size_t offset)
Write SRAM buffer.
Definition: enc424j600_driver.c:812
#define ENC424J600_PHANA_ADIEEE_DEFAULT
Definition: enc424j600_driver.h:489
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
void enc424j600WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data)
Write PHY register.
Definition: enc424j600_driver.c:745
void enc424j600EventHandler(NetInterface *interface)
ENC424J600 event handler.
Definition: enc424j600_driver.c:307
ENC424J600 Ethernet controller.
#define ENC424J600_MIREGADR_R12_8_DEFAULT
Definition: enc424j600_driver.h:329
void enc424j600EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: enc424j600_driver.c:213
uint16_t enc424j600ReadReg(NetInterface *interface, uint8_t address)
Read ENC424J600 register.
Definition: enc424j600_driver.c:714
void enc424j600ReadBuffer(NetInterface *interface, uint8_t opcode, uint8_t *data, size_t length)
Read SRAM buffer.
Definition: enc424j600_driver.c:866
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void enc424j600DumpPhyReg(NetInterface *interface)
Dump PHY registers for debugging purpose.
Definition: enc424j600_driver.c:1027
uint16_t enc424j600ReadPhyReg(NetInterface *interface, uint8_t address)
Read PHY register.
Definition: enc424j600_driver.c:774
__weak_func void enc424j600InitHook(NetInterface *interface)
ENC424J600 custom configuration.
Definition: enc424j600_driver.c:193
#define ENC424J600_MACON2_PADCFG_AUTO
Definition: enc424j600_driver.h:299
bool_t enc424j600IrqHandler(NetInterface *interface)
ENC424J600 interrupt service routine.
Definition: enc424j600_driver.c:244
void enc424j600SetBit(NetInterface *interface, uint8_t address, uint16_t mask)
Set bit field.
Definition: enc424j600_driver.c:895
#define ENC424J600_MABBIPG_BBIPG_DEFAULT_FD
Definition: enc424j600_driver.h:310
error_t enc424j600ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: enc424j600_driver.c:458
#define ENC424J600_ETH_RX_BUFFER_SIZE
Definition: enc424j600_driver.h:39
void enc424j600WriteReg(NetInterface *interface, uint8_t address, uint16_t data)
Write ENC424J600 register.
Definition: enc424j600_driver.c:688
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
error_t enc424j600UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: enc424j600_driver.c:550
error_t enc424j600Init(NetInterface *interface)
ENC424J600 controller initialization.
Definition: enc424j600_driver.c:71
TCP/IP stack core.
uint32_t enc424j600CalcCrc(const void *data, size_t length)
CRC calculation using the polynomial 0x4C11DB7.
Definition: enc424j600_driver.c:947
void enc424j600DumpReg(NetInterface *interface)
Dump registers for debugging purpose.
Definition: enc424j600_driver.c:987
error_t enc424j600SoftReset(NetInterface *interface)
Reset ENC424J600 controller.
Definition: enc424j600_driver.c:645
Debugging facilities.
error_t enc424j600SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: enc424j600_driver.c:398
void enc424j600DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: enc424j600_driver.c:228