adin1110_driver.c
Go to the documentation of this file.
error_t adin1110SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: adin1110_driver.c:394
__weak_func void adin1110InitHook(NetInterface *interface)
ADIN1110 custom configuration.
Definition: adin1110_driver.c:203
void adin1110ReadFifo(NetInterface *interface, uint16_t *header, uint8_t *data, size_t length)
Read RX FIFO.
Definition: adin1110_driver.c:884
bool_t adin1110IrqHandler(NetInterface *interface)
ADIN1110 interrupt service routine.
Definition: adin1110_driver.c:254
uint32_t adin1110ReadReg(NetInterface *interface, uint16_t address)
Read SPI register.
Definition: adin1110_driver.c:595
error_t adin1110Init(NetInterface *interface)
ADIN1110 controller initialization.
Definition: adin1110_driver.c:71
uint16_t adin1110ReadPhyReg(NetInterface *interface, uint8_t address)
Read PHY register.
Definition: adin1110_driver.c:687
void adin1110WriteMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
Write MMD register.
Definition: adin1110_driver.c:745
uint16_t adin1110ReadMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
Read MMD register.
Definition: adin1110_driver.c:793
error_t adin1110UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: adin1110_driver.c:493
void adin1110WriteReg(NetInterface *interface, uint16_t address, uint32_t data)
Write SPI register.
Definition: adin1110_driver.c:567
void adin1110WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data)
Write PHY register.
Definition: adin1110_driver.c:652
void adin1110DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: adin1110_driver.c:238
void adin1110WriteFifo(NetInterface *interface, uint16_t header, const uint8_t *data, size_t length)
Write TX FIFO.
Definition: adin1110_driver.c:842
void adin1110DumpPhyReg(NetInterface *interface)
Dump PHY registers for debugging purpose.
Definition: adin1110_driver.c:720
void adin1110DumpReg(NetInterface *interface)
Dump SPI registers for debugging purpose.
Definition: adin1110_driver.c:628
void adin1110EventHandler(NetInterface *interface)
ADIN1110 event handler.
Definition: adin1110_driver.c:327
void adin1110ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: adin1110_driver.c:456
ADIN1110 10Base-T1L Ethernet controller.
#define ADIN1110_MDIOACC_MDIO_OP_WRITE
Definition: adin1110_driver.h:428
#define ADIN1110_MDIOACC_MDIO_ST_CLAUSE_22
Definition: adin1110_driver.h:425
#define ADIN1110_P1_RX_FSIZE_P1_RX_FRM_SIZE
Definition: adin1110_driver.h:539
#define ADIN1110_LED_POLARITY_LED0_POLARITY_AUTOSENSE
Definition: adin1110_driver.h:1055
#define ADIN1110_LED_CNTRL_LED1_FUNCTION_MASTER
Definition: adin1110_driver.h:1004
#define ADIN1110_CRSM_SFT_PD_CNTRL_CRSM_SFT_PD
Definition: adin1110_driver.h:925
#define ADIN1110_STATUS1_P1_LINK_STATUS
Definition: adin1110_driver.h:390
#define ADIN1110_ADDR_FILT_LWR_MAC_ADDR_31_0
Definition: adin1110_driver.h:520
#define ADIN1110_IMASK1_LINK_CHANGE_MASK
Definition: adin1110_driver.h:418
#define ADIN1110_IMASK1_P1_RX_RDY_MASK
Definition: adin1110_driver.h:416
#define ADIN1110_ADDR_FILT_UPR_TO_HOST
Definition: adin1110_driver.h:516
#define ADIN1110_ADDR_FILT_UPR_APPLY2PORT1
Definition: adin1110_driver.h:514
#define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_LED_1
Definition: adin1110_driver.h:961
#define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_TXRX_ACTIVITY
Definition: adin1110_driver.h:1019
#define ADIN1110_CRSM_STAT_CRSM_SYS_RDY
Definition: adin1110_driver.h:935
#define ADIN1110_LED_POLARITY_LED1_POLARITY_AUTOSENSE
Definition: adin1110_driver.h:1051
#define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX
Definition: adin1110_driver.h:960
#define ADIN1110_MDIOACC_MDIO_PRTAD_DEFAULT
Definition: adin1110_driver.h:432
#define ADIN1110_ADDR_FILT_UPR_MAC_ADDR_47_32
Definition: adin1110_driver.h:517
#define ADIN1110_MDIOACC_MDIO_ST_CLAUSE_45
Definition: adin1110_driver.h:424
#define ADIN1110_PHYID_REVISION_DEFAULT
Definition: adin1110_driver.h:314
Debugging facilities.
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