sam7x_eth_driver.c
Go to the documentation of this file.
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 sam7xEthEventHandler(NetInterface *interface)
SAM7X Ethernet MAC event handler.
Definition: sam7x_eth_driver.c:443
AT91SAM7X Ethernet MAC driver.
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
void emacIrqWrapper(void)
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 sam7xEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: sam7x_eth_driver.c:847
error_t sam7xEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: sam7x_eth_driver.c:479
error_t sam7xEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: sam7x_eth_driver.c:804
__weak_func void sam7xEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: sam7x_eth_driver.c:226
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t sam7xEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: sam7x_eth_driver.c:678
error_t sam7xEthInit(NetInterface *interface)
SAM7X Ethernet MAC initialization.
Definition: sam7x_eth_driver.c:115
void sam7xEthTick(NetInterface *interface)
SAM7X Ethernet MAC timer handler.
Definition: sam7x_eth_driver.c:306
void sam7xEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: sam7x_eth_driver.c:359
void sam7xEthIrqHandler(void)
SAM7X Ethernet MAC interrupt service routine.
Definition: sam7x_eth_driver.c:386
uint16_t sam7xEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: sam7x_eth_driver.c:886
error_t sam7xEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: sam7x_eth_driver.c:546
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void sam7xEthInitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: sam7x_eth_driver.c:253
TCP/IP stack core.
Debugging facilities.