lwIP netdev adapter

netdev adapter for lwIP More...

Detailed Description

netdev adapter for lwIP

Files

file  netdev.h
 lwIP netdev adapter definitions
 

Macros

#define LWIP_NETDEV_BUFLEN   (ETHERNET_MAX_LEN)
 Length of the temporary copying buffer for receival. More...
 

Functions

err_t lwip_netdev_init (struct netif *netif)
 Initializes the netdev adapter. More...
 

Macro Definition Documentation

◆ LWIP_NETDEV_BUFLEN

#define LWIP_NETDEV_BUFLEN   (ETHERNET_MAX_LEN)

Length of the temporary copying buffer for receival.

Note
It should be as long as the maximum packet length of all the netdev you use.

Definition at line 39 of file netdev.h.

Function Documentation

◆ lwip_netdev_init()

err_t lwip_netdev_init ( struct netif *  netif)

Initializes the netdev adapter.

Should be passed to lwIP's netif_add() with the state parameter parameter of that function set to an existing netdev_t instance

Precondition
netif->state is set to an existing netdev_t instance.
Parameters
[in]netifThe network interface intended to be initialized.
Returns
ERR_OK on success.
ERR_IF on error.