![]() |
PDK API Guide for AM65xx
|
Data Structures | |
| struct | CpswCpts_Event |
| CPTS Event. More... | |
| struct | CpswCpts_EventStats |
| CPTS event statistics. More... | |
| struct | CpswCpts_RegisterStackInArgs |
| CPTS Register Stack InArgs. More... | |
| struct | CpswCpts_RegisterHwPushCbInArgs |
| CPTS Register hardware push callback InArgs. More... | |
| struct | CpswCpts_SetTsPpmInArgs |
| Set time stamp PPM IOCTL inArgs. More... | |
| struct | CpswCpts_SetCompValInArgs |
| Setup Compare Value IOCTL inArgs. More... | |
| struct | CpswCpts_SetFxnGenInArgs |
| Set Function Generator(same data structure for both Generic and Ethernet) IOCTL inArgs. More... | |
| struct | CptsSetFxnGenNudgeInArgs |
| Setup Function generator(same data structure for both Generic and Ethernet) Nudge IOCTL inArgs. More... | |
| struct | CpswCpts_Config |
| CPTS configuration. More... | |
Typedefs | |
| typedef CpswCpts_Event | CpswCpts_LookUpEventInArgs |
| CPTS Lookup event IOCTL inArgs. More... | |
| typedef void(* | CpswCpts_EventNotifyCb) (void *hEventNotifyCbArg, CpswCpts_Event *eventInfo) |
| CPTS Event notify callback type. More... | |
| typedef void(* | CpswCpts_HwPushNotifyCb) (void *pHwPushNotifyCbArg, CpswCpts_HwPush hwPushNum) |
| CPTS hardware push notify callback type. More... | |
| typedef struct CpswCpts_Obj_s * | CpswCpts_Handle |
| CPTS handle. More... | |
Macros | |
| #define | CPSW_CPTS_PUBLIC_IOCTL(x) (CPSW_IOCTL_CPTS_BASE | CPSW_IOCTL_MIN(x)) |
| Helper macro to create IOCTL commands for CPTS submodule. More... | |
| #define | CPSW_CPTS_HW_PUSH_NORMALIZE(x) ((uint32_t)((x) - CPSW_CPTS_HW_PUSH_FIRST)) |
| Helper macro to normalize CpswCpts_HwPush enum. More... | |
| #define | CPSW_CPTS_HW_PUSH_COUNT_MAX ((uint32_t)(CPSW_CPTS_HW_PUSH_LAST)) |
| Max number of hardware push instances. More... | |
| #define CPSW_CPTS_PUBLIC_IOCTL | ( | x | ) | (CPSW_IOCTL_CPTS_BASE | CPSW_IOCTL_MIN(x)) |
Helper macro to create IOCTL commands for CPTS submodule.
| #define CPSW_CPTS_HW_PUSH_NORMALIZE | ( | x | ) | ((uint32_t)((x) - CPSW_CPTS_HW_PUSH_FIRST)) |
Helper macro to normalize CpswCpts_HwPush enum.
| #define CPSW_CPTS_HW_PUSH_COUNT_MAX ((uint32_t)(CPSW_CPTS_HW_PUSH_LAST)) |
Max number of hardware push instances.
CPTS Lookup event IOCTL inArgs.
| typedef void(* CpswCpts_EventNotifyCb) (void *hEventNotifyCbArg, CpswCpts_Event *eventInfo) |
CPTS Event notify callback type.
| hEventNotifyCbArg | [IN] Callback argument |
| eventInfo | [IN] CPTS event information |
| typedef void(* CpswCpts_HwPushNotifyCb) (void *pHwPushNotifyCbArg, CpswCpts_HwPush hwPushNum) |
CPTS hardware push notify callback type.
| pHwPushNotifyCbArg | [IN] Callback argument |
| hwPushNum | [IN] CPTS hardware push instance number |
| typedef struct CpswCpts_Obj_s* CpswCpts_Handle |
CPTS handle.
CPTS submodule opaque handle.
| enum CpswCpts_Ioctl_e |
CPTS module IOCTL commands.
| Enumerator | |
|---|---|
| CPSW_CPTS_IOCTL_GET_VERSION |
Get the hardware version of the CPTS submodule. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_REGISTER_STACK |
CPTS register stack. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_UNREGISTER_STACK |
CPTS unregister stack. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_REGISTER_HW_PUSH_CALLBACK |
CPTS register hardware push event callback. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_UNREGISTER_HW_PUSH_CALLBACK |
CPTS unregister stack. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_PUSH_TIMESTAMP_EVENT |
CPTS time stamp push. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_LOAD_TIMESTAMP |
CPTS time stamp load. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_SET_TS_NUDGE |
CPTS set time stamp nudge. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_SET_TS_PPM |
CPTS set time stamp PPM. 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_CLEAR_ALL_EVENTS |
CPTS clear all events. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_PRINT_REGS |
Print CPTS registers. IOCTL parameters:
|
| CPSW_CPTS_IOCTL_PRINT_STATS |
Print CPTS event statistics. IOCTL parameters:
|
| enum CpswCpts_RftClkFreq |
CPTS clock frequency add value enumeration.
| enum CpswCpts_EventType |
CPTS event type enumeration.
| enum CpswCpts_MsgType |
CPTS Ethernet message type enumeration.
CPTS time stamp output bit enumeration.
| enum CpswCpts_PpmMode |
| enum CpswCpts_PpmDir |
| enum CpswCpts_HwPush |
CPTS Hardware push instances Enumeration.