GMAC (Gigabit MAC) driver for lwIP.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
err_t | ethernetif_init (struct netif *netif) |
Should be called at the beginning of the program to set up the network interface. More... | |
void | ethernetif_input (struct netif *netif) |
This function should be called when a packet is ready to be read from the interface. More... | |
Should be called at the beginning of the program to set up the network interface.
It calls the function low_level_init() to do the actual setup of the hardware.
This function should be passed as a parameter to netif_add().
netif | the lwip network interface structure for this ethernetif. |
It calls the function gmac_low_level_init() to do the actual setup of the hardware.
netif | the lwIP network interface structure for this ethernetif. |
It calls the function ksz8851snl_low_level_init() to do the actual setup of the hardware.
netif | the lwIP network interface structure for this ethernetif. |
void ethernetif_input | ( | struct netif * | netif | ) |
This function should be called when a packet is ready to be read from the interface.
It uses the function gmac_low_level_input() that handles the actual reception of bytes from the network interface. Then the type of the received packet is determined and the appropriate input function is called.
netif | the lwIP network interface structure for this ethernetif. |
It uses the function ksz8851snl_low_level_input() that handles the actual reception of bytes from the network interface. Then the type of the received packet is determined and the appropriate input function is called.
netif | the lwIP network interface structure for this ethernetif. |