Implement GMAC data transfer and PHY management functions.
Usage
- Implement GMAC interrupt handler, which must invoke GMACD_Handler() to handle GMAC interrupt events.
- Implement sGmacd instance in application.
- Initialize the instance with GMACD_Init() and GMACD_InitTransfer(), so that GMAC data can be transmitted/received.
- Some management callbacks can be set by GMACD_SetRxCallback() and GMACD_SetTxWakeupCallback().
- Send ethernet packets using GMACD_Send(), GMACD_TxLoad() is used to check the free space in TX queue.
- Check and obtain received ethernet packets via GMACD_Poll().
- See also
- Ethernet GMACB Driver, Gmac_module
Related files:
gmacd.c
gmacd.h.