![]() |
PDK API Guide for AM65xx
|
This file contains the private type definitions and helper macros for the ICSSG TimeSync driver.
Go to the source code of this file.
Data Structures | |
struct | IcssgTimeSync_Obj |
ICSSG TimeSync object. More... | |
Typedefs | |
typedef struct IcssgTimeSync_Obj_s * | IcssgTimeSync_Handle |
ICSSG TimeSync handle. More... | |
Functions | |
void | IcssgTimeSync_initCfg (IcssgTimeSync_Cfg *timeSyncCfg) |
Initialize TimeSync configuration parameters. More... | |
int32_t | IcssgTimeSync_open (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId, const void *cfg, uint32_t cfgSize) |
Open and initialize TimeSync module. More... | |
int32_t | IcssgTimeSync_rejoin (EnetMod_Handle hMod, Enet_Type enetType, uint32_t instId) |
Rejoin a running TimeSync module. More... | |
int32_t | IcssgTimeSync_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Run an IOCTL operation on the TimeSync module. More... | |
void | IcssgTimeSync_close (EnetMod_Handle hMod) |
Close ICSSG TimeSync module. More... | |
typedef struct IcssgTimeSync_Obj_s* IcssgTimeSync_Handle |
ICSSG TimeSync handle.
void IcssgTimeSync_initCfg | ( | IcssgTimeSync_Cfg * | timeSyncCfg | ) |
Initialize TimeSync configuration parameters.
timeSyncCfg | Config parameters to be initialized |
int32_t IcssgTimeSync_open | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId, | ||
const void * | cfg, | ||
uint32_t | cfgSize | ||
) |
Open and initialize TimeSync module.
Opens and initializes the ICSSG TimeSync module. This functions expects a config structure of type IcssgTimeSync_Cfg, cfgSize
must be passed accordingly.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
cfg | Configuration parameters |
cfgSize | Size of the configuration parameters |
int32_t IcssgTimeSync_rejoin | ( | EnetMod_Handle | hMod, |
Enet_Type | enetType, | ||
uint32_t | instId | ||
) |
Rejoin a running TimeSync module.
This operation is not currently supported.
hMod | Enet Module handle |
enetType | Enet Peripheral type |
instId | Enet Peripheral instance id |
ENET_ENOTSUPPORTED |
int32_t IcssgTimeSync_ioctl | ( | EnetMod_Handle | hMod, |
uint32_t | cmd, | ||
Enet_IoctlPrms * | prms | ||
) |
Run an IOCTL operation on the TimeSync module.
Runs a Enet TimeSync IOCTL operation on the ICSSG TimeSync module.
hMod | Enet Module handle |
cmd | IOCTL command Id |
prms | IOCTL parameters |
void IcssgTimeSync_close | ( | EnetMod_Handle | hMod | ) |
Close ICSSG TimeSync module.
hMod | Enet Module handle |