netdev adapter for lwIP
More...
netdev adapter for lwIP
|
file | netdev.h |
| lwIP netdev adapter definitions
|
|
◆ LWIP_NETDEV_BUFLEN
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.
◆ 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] | netif | The network interface intended to be initialized. |
- Returns
- ERR_OK on success.
-
ERR_IF on error.