![]()  | 
  
    PDK API Guide for J721E
    
   | 
 
This file contains the type definitions and helper macros for the "null" Ethernet Module interface.
Go to the source code of this file.
Data Structures | |
| struct | NullMod_Cfg | 
| Null Module configuration parameters.  More... | |
| struct | NullMod_Obj | 
| Null Module object.  More... | |
Macros | |
| #define | ENET_NULLMOD_FEAT1 (ENET_BIT(0U)) | 
| #define | ENET_NULLMOD_ERRATA1 (ENET_BIT(0U)) | 
| #define | ENET_NULLMOD_ERRATA2 (ENET_BIT(1U)) | 
Typedefs | |
| typedef struct NullMod_Obj_s * | NullMod_Handle | 
| Null Module handle.  More... | |
Functions | |
| void | NullMod_initCfg (NullMod_Cfg *nullModCfg) | 
| Initialize Null module's configuration parameters.  More... | |
| int32_t | NullMod_open (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg) | 
| Open and initialize the Null Module.  More... | |
| int32_t | NullMod_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) | 
| Rejoin the Null Module.  More... | |
| int32_t | NullMod_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) | 
| Issue an operation on the Null Module.  More... | |
| void | NullMod_close (EnetMod_Handle hMod) | 
| Close the Null Module.  More... | |
| #define ENET_NULLMOD_FEAT1 (ENET_BIT(0U)) | 
Null module dummy feature 1
| #define ENET_NULLMOD_ERRATA1 (ENET_BIT(0U)) | 
Null module dummy errata 1
| #define ENET_NULLMOD_ERRATA2 (ENET_BIT(1U)) | 
Null module dummy errata 2
| typedef struct NullMod_Obj_s* NullMod_Handle | 
Null Module handle.
| void NullMod_initCfg | ( | NullMod_Cfg * | nullModCfg | ) | 
Initialize Null module's configuration parameters.
Initializes the configuration parameters for a Null module.
| nullModCfg | Configuration parameters to be initialized | 
| int32_t NullMod_open | ( | EnetMod_Handle | hMod, | 
| Enet_Type | enetType, | ||
| uint32_t | instId, | ||
| const void * | cfg | ||
| ) | 
Open and initialize the Null Module.
Opens and initializes the Null Module with the configuration parameters provided by the caller.
| hMod | Enet Module handle | 
| enetType | Enet Peripheral type | 
| instId | Enet Peripheral instance id | 
| cfg | Configuration parameters | 
| int32_t NullMod_rejoin | ( | EnetMod_Handle | hMod, | 
| Enet_Type | enetType, | ||
| uint32_t | instId | ||
| ) | 
Rejoin the Null Module.
Reopens the Null Module, but doesn't perform any hardware initialization. This function is expected to be called to attach to a running module.
| hMod | Enet Module handle | 
| enetType | Enet Peripheral type | 
| instId | Enet Peripheral instance id | 
| int32_t NullMod_ioctl | ( | EnetMod_Handle | hMod, | 
| uint32_t | cmd, | ||
| Enet_IoctlPrms * | prms | ||
| ) | 
Issue an operation on the Null Module.
Issues a control operation on the Null Module.
| hMod | Enet Module handle | 
| cmd | IOCTL command Id | 
| prms | IOCTL parameters | 
| void NullMod_close | ( | EnetMod_Handle | hMod | ) | 
Close the Null Module.
Closes the Null Module.
| hMod | Enet Module handle |