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

◆ CSL_CPTS_EVENTTYPE_TS_PUSH

#define CSL_CPTS_EVENTTYPE_TS_PUSH   0

Defines CPTS event types.

Time stamp push event

◆ CSL_CPTS_EVENTTYPE_TS_ROLLOVER

#define CSL_CPTS_EVENTTYPE_TS_ROLLOVER   1

Time stamp rollover event (32-bit mode only)

◆ CSL_CPTS_EVENTTYPE_TS_HALFROLLOVER

#define CSL_CPTS_EVENTTYPE_TS_HALFROLLOVER   2

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

◆ CSL_CPTS_EVENTTYPE_HW_TS_PUSH

#define CSL_CPTS_EVENTTYPE_HW_TS_PUSH   3

Hardware Time stamp push event

◆ CSL_CPTS_EVENTTYPE_ETH_RECEIVE

#define CSL_CPTS_EVENTTYPE_ETH_RECEIVE   4

Ethernet receive event

◆ CSL_CPTS_EVENTTYPE_ETH_TRANSMIT

#define CSL_CPTS_EVENTTYPE_ETH_TRANSMIT   5

Ethernet Transmit event

◆ CSL_CPTS_EVENTTYPE_TS_COMP

#define CSL_CPTS_EVENTTYPE_TS_COMP   6

Time stamp compare event (non-toggle mode only)

◆ CSL_CPTS_EVENTTYPE_HOST

#define CSL_CPTS_EVENTTYPE_HOST   7

Host event

◆ CPTS_TS_OUTPUT_BIT_DISABLED

#define CPTS_TS_OUTPUT_BIT_DISABLED   ((uint32_t) 0U)

◆ CPTS_TS_OUTPUT_BIT_17

#define CPTS_TS_OUTPUT_BIT_17   ((uint32_t) 1U)

◆ CPTS_TS_OUTPUT_BIT_18

#define CPTS_TS_OUTPUT_BIT_18   ((uint32_t) 2U)

◆ CPTS_TS_OUTPUT_BIT_19

#define CPTS_TS_OUTPUT_BIT_19   ((uint32_t) 3U)

◆ CPTS_TS_OUTPUT_BIT_20

#define CPTS_TS_OUTPUT_BIT_20   ((uint32_t) 4U)

◆ CPTS_TS_OUTPUT_BIT_21

#define CPTS_TS_OUTPUT_BIT_21   ((uint32_t) 5U)

◆ CPTS_TS_OUTPUT_BIT_22

#define CPTS_TS_OUTPUT_BIT_22   ((uint32_t) 6U)

◆ CPTS_TS_OUTPUT_BIT_23

#define CPTS_TS_OUTPUT_BIT_23   ((uint32_t) 7U)

◆ CPTS_TS_OUTPUT_BIT_24

#define CPTS_TS_OUTPUT_BIT_24   ((uint32_t) 8U)

◆ CPTS_TS_OUTPUT_BIT_25

#define CPTS_TS_OUTPUT_BIT_25   ((uint32_t) 9U)

◆ CPTS_TS_OUTPUT_BIT_26

#define CPTS_TS_OUTPUT_BIT_26   ((uint32_t) 10U)

◆ CPTS_TS_OUTPUT_BIT_27

#define CPTS_TS_OUTPUT_BIT_27   ((uint32_t) 11U)

◆ CPTS_TS_OUTPUT_BIT_28

#define CPTS_TS_OUTPUT_BIT_28   ((uint32_t) 12U)

◆ CPTS_TS_OUTPUT_BIT_29

#define CPTS_TS_OUTPUT_BIT_29   ((uint32_t) 13U)

◆ CPTS_TS_OUTPUT_BIT_30

#define CPTS_TS_OUTPUT_BIT_30   ((uint32_t) 14U)

◆ CPTS_TS_OUTPUT_BIT_31

#define CPTS_TS_OUTPUT_BIT_31   ((uint32_t) 15U)

◆ CSL_CPTS_TS_PPM_DIR_INCREASE

#define CSL_CPTS_TS_PPM_DIR_INCREASE   ((uint32_t) 0U)

◆ CSL_CPTS_TS_PPM_DIR_DECREASE

#define CSL_CPTS_TS_PPM_DIR_DECREASE   ((uint32_t) 1U)

Typedef Documentation

◆ CSL_CPTS_TS_OUTPUT_BIT

typedef uint32_t CSL_CPTS_TS_OUTPUT_BIT

Defines CPTS timestamp output bits.

◆ CSL_CPTS_TS_PPM_DIR

typedef uint32_t CSL_CPTS_TS_PPM_DIR

Defines PPM Correction Direction.