The CPSW CPTS module provides additional IOCTL commands than those supported by the generic Enet Time Synchronization API set.
CPSW CPTS clocks:
Interrupts:
SoC parameters:
Errata:
Compile-time configuration:
Data Structures | |
struct | CpswCpts_Event |
CPTS event. More... | |
struct | CpswCpts_EstEventMatchParams |
CPTS EST event match params. More... | |
struct | CpswCpts_EstEvent |
CPTS EST timestamp. More... | |
struct | CpswCpts_RegisterStackInArgs |
Input args for CPSW_CPTS_IOCTL_REGISTER_STACK command. More... | |
struct | CpswCpts_RegisterHwPushCbInArgs |
Input args for CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK command. More... | |
struct | CpswCpts_SetCompValInArgs |
Input args for CPSW_CPTS_IOCTL_SET_COMP command. More... | |
struct | CpswCpts_SetFxnGenInArgs |
Input args for CPSW_CPTS_IOCTL_SET_GENF and CPSW_CPTS_IOCTL_SET_ESTF commands. More... | |
struct | CpswCpts_SetFxnGenNudgeInArgs |
Input args for CPSW_CPTS_IOCTL_SET_GENF_NUDGE and CPSW_CPTS_IOCTL_SET_ESTF_NUDGE commands. More... | |
struct | CpswCpts_Cfg |
CPTS configuration. More... | |
Functions | |
void | CpswCpts_initCfg (CpswCpts_Cfg *cptsCfg) |
Initialize CPSW CPTS configuration parameters. More... | |
Typedefs | |
typedef void(* | CpswCpts_EventNotifyCb) (void *eventNotifyCbArg, CpswCpts_Event *eventInfo) |
CPTS event notify callback. More... | |
typedef void(* | CpswCpts_HwPushNotifyCb) (void *hwPushNotifyCbArg, CpswCpts_HwPush hwPushNum) |
CPTS hardware push notify callback/. More... | |
Macros | |
#define | CPSW_CPTS_PUBLIC_IOCTL(x) |
Helper macro to create IOCTL commands for CPSW CPTS module. More... | |
#define | CPSW_CPTS_NUDGE_MIN_VAL (-128) |
Minimum nudge value. More... | |
#define | CPSW_CPTS_NUDGE_MAX_VAL (127) |
Maximum nudge value. More... | |
#define | CPSW_CPTS_HWPUSH_COUNT_MAX ((uint32_t)CPSW_CPTS_HWPUSH_LAST) |
Max number of hardware push instances. More... | |
#define | CPSW_CPTS_HWPUSH_NORM(x) ((uint32_t)((x) - CPSW_CPTS_HWPUSH_FIRST)) |
Helper macro to normalize CpswCpts_HwPush values. More... | |
#define CPSW_CPTS_PUBLIC_IOCTL | ( | x | ) |
Helper macro to create IOCTL commands for CPSW CPTS module.
#define CPSW_CPTS_NUDGE_MIN_VAL (-128) |
Minimum nudge value.
#define CPSW_CPTS_NUDGE_MAX_VAL (127) |
Maximum nudge value.
#define CPSW_CPTS_HWPUSH_COUNT_MAX ((uint32_t)CPSW_CPTS_HWPUSH_LAST) |
Max number of hardware push instances.
#define CPSW_CPTS_HWPUSH_NORM | ( | x | ) | ((uint32_t)((x) - CPSW_CPTS_HWPUSH_FIRST)) |
Helper macro to normalize CpswCpts_HwPush values.
typedef void(* CpswCpts_EventNotifyCb) (void *eventNotifyCbArg, CpswCpts_Event *eventInfo) |
CPTS event notify callback.
eventNotifyCbArg | Callback argument |
eventInfo | CPTS event information |
typedef void(* CpswCpts_HwPushNotifyCb) (void *hwPushNotifyCbArg, CpswCpts_HwPush hwPushNum) |
CPTS hardware push notify callback/.
hwPushNotifyCbArg | Callback argument |
hwPushNum | CPTS hardware push instance number |
enum CpswCpts_Ioctl |
CPSW CPTS IOCTL commands.
Enumerator | |
---|---|
CPSW_CPTS_IOCTL_REGISTER_STACK | CPTS register stack. IOCTL parameters:
|
CPSW_CPTS_IOCTL_UNREGISTER_STACK | CPTS unregister stack. IOCTL parameters:
|
CPSW_CPTS_IOCTL_REGISTER_HWPUSH_CALLBACK | CPTS register hardware push event callback. IOCTL parameters:
|
CPSW_CPTS_IOCTL_UNREGISTER_HWPUSH_CALLBACK | CPTS unregister hardware push event callback. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_TS_NUDGE | CPTS set timestamp nudge. Sets time nudge value. Nudge value must be within the range of CPSW_CPTS_NUDGE_MIN_VAL and CPSW_CPTS_NUDGE_MAX_VAL. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_COMP | CPTS set compare value. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_COMP_NUDGE | CPTS set compare nudge. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_GENF | CPTS set function generator. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_GENF_NUDGE | CPTS set GenFn stamp nudge. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_ESTF | CPTS set EST function generator. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SET_ESTF_NUDGE | CPTS set ESTFn stamp nudge. IOCTL parameters:
|
CPSW_CPTS_IOCTL_SELECT_TS_OUTPUT_BIT | CPTS TS output bit select. IOCTL parameters:
|
CPSW_CPTS_IOCTL_LOOKUP_EVENT | CPTS lookup event. IOCTL parameters:
|
CPSW_CPTS_IOCTL_LOOKUP_EST_EVENT | CPTS lookup EST event/. IOCTL parameters:
|
enum CpswCpts_RftClkFreq |
CPTS clock frequency add value.
enum CpswCpts_EventType |
CPTS event type.
CPTS time stamp output bit.
enum CpswCpts_HwPush |
CPTS Hardware push instances.
void CpswCpts_initCfg | ( | CpswCpts_Cfg * | cptsCfg | ) |
Initialize CPSW CPTS configuration parameters.
cptsCfg | Configuration parameters to be initialized |