s7g2_eth2_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 s7g2Eth2Tick(NetInterface *interface)
S7G2 Ethernet MAC timer handler.
Definition: s7g2_eth2_driver.c:360
void s7g2Eth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: s7g2_eth2_driver.c:772
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 s7g2Eth2InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: s7g2_eth2_driver.c:304
void s7g2Eth2EventHandler(NetInterface *interface)
S7G2 Ethernet MAC event handler.
Definition: s7g2_eth2_driver.c:493
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
error_t s7g2Eth2Init(NetInterface *interface)
S7G2 Ethernet MAC initialization.
Definition: s7g2_eth2_driver.c:115
void s7g2Eth2WriteSmi(uint32_t data, uint_t length)
SMI write operation.
Definition: s7g2_eth2_driver.c:835
void s7g2Eth2DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: s7g2_eth2_driver.c:413
Renesas Synergy S7G2 Ethernet MAC driver (ETHERC1 instance)
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t s7g2Eth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: s7g2_eth2_driver.c:664
#define S7G2_ETH2_IRQ_PRIORITY_GROUPING
Definition: s7g2_eth2_driver.h:67
error_t s7g2Eth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: s7g2_eth2_driver.c:518
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
__weak_func void s7g2Eth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: s7g2_eth2_driver.c:220
TCP/IP stack core.
error_t s7g2Eth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: s7g2_eth2_driver.c:586
void EDMAC1_EINT_IRQHandler(void)
S7G2 Ethernet MAC interrupt service routine.
Definition: s7g2_eth2_driver.c:440
error_t s7g2Eth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: s7g2_eth2_driver.c:729
uint16_t s7g2Eth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: s7g2_eth2_driver.c:802
const NicDriver s7g2Eth2Driver
S7G2 Ethernet MAC driver (ETHERC1 instance)
Definition: s7g2_eth2_driver.c:88
Debugging facilities.