![]() |
PDK API Guide for J721E
|
This file contains the type definitions and helper macros for the CPSW CPTS module.
Go to the source code of this file.
Data Structures | |
struct | CpswCpts_EventMemObj |
CPTS event memory object. More... | |
struct | CpswCpts_EventStats |
CPTS event statistics. More... | |
struct | CpswCpts_Obj |
CPSW CPTS object. More... | |
Macros | |
#define | CPSW_CPTS_PRIVATE_IOCTL(x) |
Helper macro to create private IOCTL commands for CPSW CPTS module. More... | |
#define | CPSW_CPTS_ERRATA_GENFN_RECONFIG (ENET_BIT(0U)) |
CPTS GENFn reconfig errata mask. More... | |
Typedefs | |
typedef CpswCpts_Obj * | CpswCpts_Handle |
CPSW CPTS module handle. More... | |
Enumerations | |
enum | CpswCpts_PrivIoctls { CPSW_CPTS_IOCTL_HANDLE_INTR = CPSW_CPTS_PRIVATE_IOCTL(0U), CPSW_CPTS_IOCTL_ENABLE_INTR = CPSW_CPTS_PRIVATE_IOCTL(1U), CPSW_CPTS_IOCTL_DISABLE_INTR = CPSW_CPTS_PRIVATE_IOCTL(2U) } |
CPTS private IOCTL commands. More... | |
Functions | |
int32_t | CpswCpts_open (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize) |
Open and initialize CPSW CPTS. More... | |
int32_t | CpswCpts_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) |
Rejoin a running CPSW CPTS module. More... | |
int32_t | CpswCpts_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Run an IOCTL operation on CPSW CPTS. More... | |
void | CpswCpts_close (EnetMod_Handle hMod) |
Close CPSW CPTS. More... | |
#define CPSW_CPTS_PRIVATE_IOCTL | ( | x | ) |
Helper macro to create private IOCTL commands for CPSW CPTS module.
#define CPSW_CPTS_ERRATA_GENFN_RECONFIG (ENET_BIT(0U)) |
CPTS GENFn reconfig errata mask.
typedef CpswCpts_Obj* CpswCpts_Handle |
CPSW CPTS module handle.
enum CpswCpts_PrivIoctls |
CPTS private IOCTL commands.
int32_t CpswCpts_open | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId, | ||
const void * | cfg, | ||
uint32_t | cfgSize | ||
) |
Open and initialize CPSW CPTS.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
cfg | Configuration parameters |
cfgSize | Size of the configuration parameters |
int32_t CpswCpts_rejoin | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId | ||
) |
Rejoin a running CPSW CPTS module.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
int32_t CpswCpts_ioctl | ( | EnetMod_Handle | hMod, |
uint32_t | cmd, | ||
Enet_IoctlPrms * | prms | ||
) |
Run an IOCTL operation on CPSW CPTS.
hMod | Enet Module handle |
cmd | IOCTL command Id |
prms | IOCTL parameters |
void CpswCpts_close | ( | EnetMod_Handle | hMod | ) |
Close CPSW CPTS.
hMod | Enet Module handle |