str912_eth_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
error_t str912EthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: str912_eth_driver.c:615
error_t str912EthInit(NetInterface *interface)
STR912 Ethernet MAC initialization.
Definition: str912_eth_driver.c:114
uint16_t str912EthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: str912_eth_driver.c:754
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
uint32_t str912EthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: str912_eth_driver.c:798
void str912EthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: str912_eth_driver.c:358
#define ENET_TXSTR_DFETCH_DLY_DEFAULT
Definition: str912_eth_driver.h:146
__weak_func void str912EthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: str912_eth_driver.c:219
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 str912EthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: str912_eth_driver.c:386
error_t str912EthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: str912_eth_driver.c:554
void ENET_IRQHandler(void)
STR912 Ethernet MAC interrupt service routine.
Definition: str912_eth_driver.c:413
void str912EthEventHandler(NetInterface *interface)
STR912 Ethernet MAC event handler.
Definition: str912_eth_driver.c:463
error_t str912EthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: str912_eth_driver.c:498
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t str912EthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: str912_eth_driver.c:675
void str912EthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: str912_eth_driver.c:277
void str912EthTick(NetInterface *interface)
STR912 Ethernet MAC timer handler.
Definition: str912_eth_driver.c:333
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define ENET_RXSTR_DFETCH_DLY_DEFAULT
Definition: str912_eth_driver.h:138
STR9 Ethernet MAC driver.
void str912EthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: str912_eth_driver.c:714
TCP/IP stack core.
Debugging facilities.