#include "lwip/err.h"
#include "lwip/netif.h"
Go to the source code of this file.
◆ ethernetif_init()
| err_t ethernetif_init |
( |
struct netif * |
netif | ) |
|
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().
- Parameters
-
| netif | the lwip network interface structure for this ethernetif |
- Returns
- ERR_OK if the loopif is initialized ERR_MEM if private data couldn't be allocated any other err_t on error
◆ ethernetif_input()
| void ethernetif_input |
( |
void * |
pvParameters | ) |
|
This function is the ethernetif_input task, it is processed when a packet is ready to be read from the interface. It uses the function low_level_input() that should handle 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.
- Parameters
-
| netif | the lwip network interface structure for this ethernetif |
◆ User_notification()
| void User_notification |
( |
struct netif * |
netif | ) |
|