AM64x MCU+ SDK  08.02.00
mod_null.h File Reference

Introduction

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...
 

Macro Definition Documentation

◆ ENET_NULLMOD_FEAT1

#define ENET_NULLMOD_FEAT1   (ENET_BIT(0U))

Null module dummy feature 1

◆ ENET_NULLMOD_ERRATA1

#define ENET_NULLMOD_ERRATA1   (ENET_BIT(0U))

Null module dummy errata 1

◆ ENET_NULLMOD_ERRATA2

#define ENET_NULLMOD_ERRATA2   (ENET_BIT(1U))

Null module dummy errata 2

Typedef Documentation

◆ NullMod_Handle

typedef struct NullMod_Obj_s* NullMod_Handle

Null Module handle.

Function Documentation

◆ NullMod_initCfg()

void NullMod_initCfg ( NullMod_Cfg nullModCfg)

Initialize Null module's configuration parameters.

Initializes the configuration parameters for a Null module.

Parameters
nullModCfgConfiguration parameters to be initialized

◆ NullMod_open()

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.

Parameters
hModEnet Module handle
enetTypeEnet Peripheral type
instIdEnet Peripheral instance id
cfgConfiguration parameters
Returns
Enet_ErrorCodes

◆ NullMod_rejoin()

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.

Parameters
hModEnet Module handle
enetTypeEnet Peripheral type
instIdEnet Peripheral instance id
Returns
Enet_ErrorCodes

◆ NullMod_ioctl()

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.

Parameters
hModEnet Module handle
cmdIOCTL command Id
prmsIOCTL parameters
Returns
Enet_ErrorCodes

◆ NullMod_close()

void NullMod_close ( EnetMod_Handle  hMod)

Close the Null Module.

Closes the Null Module.

Parameters
hModEnet Module handle