PDK API Guide for J721E
lwipif2enet_appif.h File Reference

Introduction

Header file for application interfaces to the LwIP Enet interface.

Go to the source code of this file.

Data Structures

struct  LwipifEnetAppIf_RxConfig
 
struct  LwipifEnetAppIf_TxConfig
 
struct  LwipifEnetAppIf_GetHandleInArgs
 Input arguments passed to the application via LwipifEnetAppCb_getHandle() when Enet's netif is initialized. More...
 
struct  Lwip2EnetAppIf_FreePktInfo
 Container structure of packet free callback info. More...
 
struct  LwipifEnetAppIf_RxHandleInfo
 RX-related parameters required by Enet's netif. They are populated by application. More...
 
struct  LwipifEnetAppIf_TxHandleInfo
 TX-related parameters required by Enet's netif. They are populated by application. More...
 
struct  LwipifEnetAppIf_GetHandleOutArgs
 Output arguments to be populated by application via LwipifEnetAppCb_getHandle() when Enet's netif is initialized. More...
 
struct  LwipifEnetAppIf_ReleaseHandleInfo
 Arguments passed to application by Enet's netif during deinitialization. More...
 

Macros

#define LWIP2ENET_RX_NUM   (2U)
 Number of RX channels. More...
 

Typedefs

typedef void(* LwipifEnetAppIf_FreePktCbFxn) (void *cbArg, EnetDma_PktQ *fqPktInfoQ, EnetDma_PktQ *cqPktInfoQ)
 Callback function used to free packets. More...
 
typedef bool(* LwipifEnetAppIf_IsPhyLinkedCbFxn) (struct netif *netif, Enet_Handle hEnet)
 Callback function used to check PHY link status. More...
 
typedef bool(* LwipifEnetAppIf_HandleRxPktFxn) (struct netif *netif, struct pbuf *pbuf)
 Callback function used to pass packets to application for processing. More...
 

Functions

void LwipifEnetAppCb_getHandle (LwipifEnetAppIf_GetHandleInArgs *inArgs, LwipifEnetAppIf_GetHandleOutArgs *outArgs)
 Callback function used by Enet's netif to delegate TX/RX channel open to the application. More...
 
void LwipifEnetAppCb_releaseHandle (LwipifEnetAppIf_ReleaseHandleInfo *releaseInfo)
 Callback function used by Enet's netif to delegate TX/RX channel close to the application. More...