samv71_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
void samv71EthEventHandler(NetInterface *interface)
SAMV71 Ethernet MAC event handler.
Definition: samv71_eth_driver.c:559
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
error_t samv71EthInit(NetInterface *interface)
SAMV71 Ethernet MAC initialization.
Definition: samv71_eth_driver.c:149
uint16_t samv71EthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: samv71_eth_driver.c:1038
void GMAC_Handler(void)
SAMV71 Ethernet MAC interrupt service routine.
Definition: samv71_eth_driver.c:498
void samv71EthTick(NetInterface *interface)
SAMV71 Ethernet MAC timer handler.
Definition: samv71_eth_driver.c:418
void samv71EthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: samv71_eth_driver.c:443
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
#define SAMV71_ETH_IRQ_GROUP_PRIORITY
Definition: samv71_eth_driver.h:85
void samv71EthInitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: samv71_eth_driver.c:326
void samv71EthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: samv71_eth_driver.c:999
#define SAMV71_ETH_IRQ_PRIORITY_GROUPING
Definition: samv71_eth_driver.h:78
SAMV71 Ethernet MAC driver.
error_t samv71EthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: samv71_eth_driver.c:956
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
#define SAMV71_ETH_DUMMY_BUFFER_COUNT
Definition: samv71_eth_driver.h:64
error_t samv71EthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: samv71_eth_driver.c:666
void samv71EthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: samv71_eth_driver.c:471
error_t samv71EthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: samv71_eth_driver.c:798
__weak_func void samv71EthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: samv71_eth_driver.c:280
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
error_t samv71EthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: samv71_eth_driver.c:596
TCP/IP stack core.
Debugging facilities.