apm32f4xx_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
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
uint16_t apm32f4xxEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: apm32f4xx_eth_driver.c:860
void apm32f4xxEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: apm32f4xx_eth_driver.c:818
error_t apm32f4xxEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: apm32f4xx_eth_driver.c:524
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
uint32_t apm32f4xxEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: apm32f4xx_eth_driver.c:906
error_t apm32f4xxEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: apm32f4xx_eth_driver.c:583
void apm32f4xxEthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: apm32f4xx_eth_driver.c:297
error_t apm32f4xxEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: apm32f4xx_eth_driver.c:653
#define APM32F4XX_ETH_RX_BUFFER_SIZE
Definition: apm32f4xx_eth_driver.h:60
APM32F4 Ethernet MAC driver.
void ETH_IRQHandler(void)
APM32F4 Ethernet MAC interrupt service routine.
Definition: apm32f4xx_eth_driver.c:446
error_t apm32f4xxEthInit(NetInterface *interface)
APM32F4 Ethernet MAC initialization.
Definition: apm32f4xx_eth_driver.c:117
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void apm32f4xxEthEventHandler(NetInterface *interface)
APM32F4 Ethernet MAC event handler.
Definition: apm32f4xx_eth_driver.c:499
#define APM32F4XX_ETH_TX_BUFFER_COUNT
Definition: apm32f4xx_eth_driver.h:39
#define APM32F4XX_ETH_IRQ_SUB_PRIORITY
Definition: apm32f4xx_eth_driver.h:81
void apm32f4xxEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: apm32f4xx_eth_driver.c:419
#define APM32F4XX_ETH_RX_BUFFER_COUNT
Definition: apm32f4xx_eth_driver.h:53
void apm32f4xxEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: apm32f4xx_eth_driver.c:391
void apm32f4xxEthTick(NetInterface *interface)
APM32F4 Ethernet MAC timer handler.
Definition: apm32f4xx_eth_driver.c:366
#define APM32F4XX_ETH_IRQ_GROUP_PRIORITY
Definition: apm32f4xx_eth_driver.h:74
__weak_func void apm32f4xxEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: apm32f4xx_eth_driver.c:242
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
error_t apm32f4xxEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: apm32f4xx_eth_driver.c:775
#define APM32F4XX_ETH_TX_BUFFER_SIZE
Definition: apm32f4xx_eth_driver.h:46
Debugging facilities.
#define APM32F4XX_ETH_IRQ_PRIORITY_GROUPING
Definition: apm32f4xx_eth_driver.h:67