PDK API Guide for J721E
Enet netif helper APIs

Introduction

Functions

err_t LWIPIF_LWIP_init (struct netif *netif)
 Enet LLD's netif init callback function. More...
 

Function Documentation

◆ LWIPIF_LWIP_init()

err_t LWIPIF_LWIP_init ( struct netif *  netif)

Enet LLD's netif init callback function.

This function implements the initialization of the Enet LLD based interface, so it must be called when adding a netif interface via netif_add().

When using the default netif, application can choose to call init_default_netif() which internally takes care of setting this functions as netif's init callback.

If multiple netifs are used, the non default netifs have to be added via netif_add() which would require this function passed as input callback function.

Parameters
netifThe netif to initialize.
Returns
ERR_OK if initialization was successful. A corresponding lwIP error code otherwise.