PDK API Guide for J721E
CPTS Data Structures

Introduction

Data Structures

struct  CSL_CPTS_VERSION
 Holds the Time sync submodule's version info. More...
 
struct  CSL_CPTS_EVENTINFO
 Holds Time sync event info contents. More...
 
struct  CSL_CPTS_CONTROL
 Holds the CPTS control register info. More...
 

Typedefs

typedef uint32_t CSL_CPTS_TS_OUTPUT_BIT
 Defines CPTS timestamp output bits. More...
 
typedef uint32_t CSL_CPTS_TS_PPM_DIR
 Defines PPM Correction Direction. More...
 

Macros

#define CSL_CPTS_EVENTTYPE_TS_PUSH   0
 Defines CPTS event types. More...
 
#define CSL_CPTS_EVENTTYPE_TS_ROLLOVER   1
 
#define CSL_CPTS_EVENTTYPE_TS_HALFROLLOVER   2
 
#define CSL_CPTS_EVENTTYPE_HW_TS_PUSH   3
 
#define CSL_CPTS_EVENTTYPE_ETH_RECEIVE   4
 
#define CSL_CPTS_EVENTTYPE_ETH_TRANSMIT   5
 
#define CSL_CPTS_EVENTTYPE_TS_COMP   6
 
#define CSL_CPTS_EVENTTYPE_HOST   7
 
#define CPTS_TS_OUTPUT_BIT_DISABLED   ((uint32_t) 0U)
 
#define CPTS_TS_OUTPUT_BIT_17   ((uint32_t) 1U)
 
#define CPTS_TS_OUTPUT_BIT_18   ((uint32_t) 2U)
 
#define CPTS_TS_OUTPUT_BIT_19   ((uint32_t) 3U)
 
#define CPTS_TS_OUTPUT_BIT_20   ((uint32_t) 4U)
 
#define CPTS_TS_OUTPUT_BIT_21   ((uint32_t) 5U)
 
#define CPTS_TS_OUTPUT_BIT_22   ((uint32_t) 6U)
 
#define CPTS_TS_OUTPUT_BIT_23   ((uint32_t) 7U)
 
#define CPTS_TS_OUTPUT_BIT_24   ((uint32_t) 8U)
 
#define CPTS_TS_OUTPUT_BIT_25   ((uint32_t) 9U)
 
#define CPTS_TS_OUTPUT_BIT_26   ((uint32_t) 10U)
 
#define CPTS_TS_OUTPUT_BIT_27   ((uint32_t) 11U)
 
#define CPTS_TS_OUTPUT_BIT_28   ((uint32_t) 12U)
 
#define CPTS_TS_OUTPUT_BIT_29   ((uint32_t) 13U)
 
#define CPTS_TS_OUTPUT_BIT_30   ((uint32_t) 14U)
 
#define CPTS_TS_OUTPUT_BIT_31   ((uint32_t) 15U)
 
#define CSL_CPTS_TS_PPM_DIR_INCREASE   ((uint32_t) 0U)
 
#define CSL_CPTS_TS_PPM_DIR_DECREASE   ((uint32_t) 1U)
 

Macro Definition Documentation

#define CSL_CPTS_EVENTTYPE_TS_PUSH   0

Defines CPTS event types.

Time stamp push event

#define CSL_CPTS_EVENTTYPE_TS_ROLLOVER   1

Time stamp rollover event (32-bit mode only)

#define CSL_CPTS_EVENTTYPE_TS_HALFROLLOVER   2

Time stamp Half Rollover event (32-bit mode only)

#define CSL_CPTS_EVENTTYPE_HW_TS_PUSH   3

Hardware Time stamp push event

#define CSL_CPTS_EVENTTYPE_ETH_RECEIVE   4

Ethernet receive event

#define CSL_CPTS_EVENTTYPE_ETH_TRANSMIT   5

Ethernet Transmit event

#define CSL_CPTS_EVENTTYPE_TS_COMP   6

Time stamp compare event (non-toggle mode only)

#define CSL_CPTS_EVENTTYPE_HOST   7

Host event

#define CPTS_TS_OUTPUT_BIT_DISABLED   ((uint32_t) 0U)
#define CPTS_TS_OUTPUT_BIT_17   ((uint32_t) 1U)
#define CPTS_TS_OUTPUT_BIT_18   ((uint32_t) 2U)
#define CPTS_TS_OUTPUT_BIT_19   ((uint32_t) 3U)
#define CPTS_TS_OUTPUT_BIT_20   ((uint32_t) 4U)
#define CPTS_TS_OUTPUT_BIT_21   ((uint32_t) 5U)
#define CPTS_TS_OUTPUT_BIT_22   ((uint32_t) 6U)
#define CPTS_TS_OUTPUT_BIT_23   ((uint32_t) 7U)
#define CPTS_TS_OUTPUT_BIT_24   ((uint32_t) 8U)
#define CPTS_TS_OUTPUT_BIT_25   ((uint32_t) 9U)
#define CPTS_TS_OUTPUT_BIT_26   ((uint32_t) 10U)
#define CPTS_TS_OUTPUT_BIT_27   ((uint32_t) 11U)
#define CPTS_TS_OUTPUT_BIT_28   ((uint32_t) 12U)
#define CPTS_TS_OUTPUT_BIT_29   ((uint32_t) 13U)
#define CPTS_TS_OUTPUT_BIT_30   ((uint32_t) 14U)
#define CPTS_TS_OUTPUT_BIT_31   ((uint32_t) 15U)
#define CSL_CPTS_TS_PPM_DIR_INCREASE   ((uint32_t) 0U)
#define CSL_CPTS_TS_PPM_DIR_DECREASE   ((uint32_t) 1U)

Typedef Documentation

typedef uint32_t CSL_CPTS_TS_OUTPUT_BIT

Defines CPTS timestamp output bits.

typedef uint32_t CSL_CPTS_TS_PPM_DIR

Defines PPM Correction Direction.