5.11. CDD_ECAP

5.11.1. Types

Base type

Type Name

Brief

enum

Cdd_Ecap_HrCap_CalibrationClockSource

This type defines clock sources for HR mode.

enum

Cdd_Ecap_HrCap_ContinuousCalibrationMode

This type defines continuous calibration mode enabled or not.

enum

Cdd_Ecap_HrCap_CalStatus

This type defines the source of interrupt.

enum

Cdd_Ecap_ModeType

This type defines the source of interrupt.

enum

Cdd_Ecap_InputStateType

This type defines a input state of CDD_ECAP driver.

enum

Cdd_Ecap_ActivationType

This type defines Activation range.

enum

Cdd_Ecap_EmulationMode

This defines the available emulation modes.

enum

Cdd_Ecap_IntrCapSelect

This type defines the source of interrupt.

enum

Cdd_Ecap_MeasurementModeType

This type defines available measurement modes.

enum

Cdd_Ecap_SignalMeasurementPropertyType

This type defines Signal Measurement Property range.

enum

Cdd_Ecap_TimestampBufferType

This type defines TimeStamp Property range.

enum

Cdd_Ecap_StartLevelType

This type defines the edge to start the edge capturing.

enum

Cdd_Ecap_InputSelect

This type defines Xbar input to select.

typedef uint32

Cdd_Ecap_ValueType

This type defines Value type.

typedef uint32

Cdd_Ecap_IndexType

This type defines return value Cdd_Ecap_GetTimeStampIndex.

typedef uint32

Cdd_Ecap_EdgeNumberType

This type defines return value of Cdd_Ecap_GetEdgeNumbers.

typedef uint8

Cdd_Ecap_ChannelType

This type defines Channel type.

typedef uint8

Cdd_Ecap_ChannelPrescalerType

This type defines Prescaler type.

typedef float32

Cdd_Ecap_ChannelHrScaleType

This type defines the scale-factor type for HR mode.

typedef uint16

Cdd_Ecap_ChannelHrInterruptType

This type defines the interrupt flags type for HR mode.

typedef void(*)(void)

Cdd_Ecap_NotifyFuncType

Notification callback function pointer

5.11.1.1. enum Cdd_Ecap_HrCap_CalibrationClockSource

Enumerator

Value

Description

CDD_ECAP_HRCAP_CALIBRATION_CLOCK_SYSCLK

0x0

Use SYSCLK for period match.

CDD_ECAP_HRCAP_CALIBRATION_CLOCK_HRCLK

0x4

Use HRCLK for period match.

Brief: This type defines clock sources for HR mode.

5.11.1.2. enum Cdd_Ecap_HrCap_ContinuousCalibrationMode

Enumerator

Value

Description

CDD_ECAP_HRCAP_CONTINUOUS_CALIBRATION_DISABLED

0x00

Continuous calibration disabled.

CDD_ECAP_HRCAP_CONTINUOUS_CALIBRATION_ENABLED

0x20

Continuous calibration enabled.

Brief: This type defines continuous calibration mode enabled or not.

5.11.1.3. enum Cdd_Ecap_HrCap_CalStatus

Enumerator

Value

Description

CDD_ECAP_HRCAP_HRCALCAL_STATUS_DONE_ISR

=

    ( (0x2U) \| (0x1U) )| Calibration status done flag.   |

| CDD_ECAP_HRCAP_HRCALCAL_STATUS_PERIOD_OVERFLOW_ISR | = ( (0x2U) | (0x1U) | (0x4U) )| Calibration period overflow flag. | | CDD_ECAP_HRCAP_HRCALCAL_CALIBRATION_FLAGS | = ( (0x2U) | (0x4U) )| Calibration status done flag and period overflow flag. |

Brief: This type defines the source of interrupt.

5.11.1.4. enum Cdd_Ecap_ModeType

Enumerator

Value

Description

CDD_ECAP_MODE_NORMAL

Normal Mode.

CDD_ECAP_MODE_SLEEP

Sleep Mode.

Brief: This type defines the source of interrupt.

5.11.1.5. enum Cdd_Ecap_InputStateType

Enumerator

Value

Description

CDD_ECAP_ACTIVE

Module is in active state.

CDD_ECAP_IDLE

Module is in idle state.

Brief: This type defines a input state of CDD_ECAP driver.

5.11.1.6. enum Cdd_Ecap_ActivationType

Enumerator

Value

Description

CDD_ECAP_RISING_EDGE

Rising Edge Activation type.

CDD_ECAP_FALLING_EDGE

Falling Edge Activation type.

CDD_ECAP_BOTH_EDGES

Both Edge Activation type.

Brief: This type defines Activation range.

5.11.1.7. enum Cdd_Ecap_EmulationMode

Enumerator

Value

Description

CDD_ECAP_EMULATION_STOP

0x0U

TSCTR is stopped on emulation suspension.

CDD_ECAP_EMULATION_RUN_TO_ZERO

0x1U

runs until 0 before stopping on emulation suspension

CDD_ECAP_EMULATION_FREE_RUN

0x2U

is not affected by emulation suspension

Brief: This defines the available emulation modes.

5.11.1.8. enum Cdd_Ecap_IntrCapSelect

Enumerator

Value

Description

CDD_ECAP_CEVT1_INT

(0x2U)

CDD_ECAP_CEVT2_INT

(0x4U)

CDD_ECAP_CEVT3_INT

(0x8U)

CDD_ECAP_CEVT4_INT

(0x10U)

CDD_ECAP_CEVT1_CEVT2_INT

(0x2U) | (0x4U)

CDD_ECAP_CEVT1_CEVT3_INT

(0x2U) | (0x8U)

CDD_ECAP_CEVT1_CEVT4_INT

(0x2U) | (0x10U)

CDD_ECAP_CEVT2_CEVT3_INT

(0x4U) | (0x8U)

CDD_ECAP_CEVT2_CEVT4_INT

(0x4U) | (0x10U)

CDD_ECAP_CEVT3_CEVT4_INT

(0x8U) | (0x10U)

CDD_ECAP_CEVT1_CEVT2_CEVT3_INT

(0x2U) | (0x4U) | (0x8U)

CDD_ECAP_CEVT1_CEVT2_CEVT4_INT

(0x2U) | (0x4U) | (0x10U)

CDD_ECAP_CEVT1_CEVT3_CEVT4_INT

(0x2U) | (0x8U) | (0x10U)

CDD_ECAP_CEVT2_CEVT3_CEVT4_INT

(0x4U) | (0x8U) | (0x10U)

CDD_ECAP_INT_ALL

(0x2U) | (0x4U) | (0x8U) | (0x10U)

Brief: This type defines the source of interrupt.

5.11.1.9. enum Cdd_Ecap_MeasurementModeType

Enumerator

Value

Description

CDD_ECAP_MODE_SIGNAL_EDGE_DETECT

Signal Edge Detect Mode.

CDD_ECAP_MODE_SIGNAL_MEASUREMENT

Signal measurement Mode.

CDD_ECAP_MODE_TIMESTAMP

Signal Timestamp Mode.

CDD_ECAP_MODE_EDGE_COUNTER

Signal Edge counter Mode.

Brief: This type defines available measurement modes.

5.11.1.10. enum Cdd_Ecap_SignalMeasurementPropertyType

Enumerator

Value

Description

CDD_ECAP_LOW_TIME

Signal Low time.

CDD_ECAP_HIGH_TIME

Signal High time.

CDD_ECAP_PERIOD_TIME

Signal Period time.

Brief: This type defines Signal Measurement Property range.

5.11.1.11. enum Cdd_Ecap_TimestampBufferType

Enumerator

Value

Description

CDD_ECAP_LINEAR_BUFFER

Linear Buffer to be used in Timestamp.

CDD_ECAP_CIRCULAR_BUFFER

Circular Buffer to be used in Timestamp.

Brief: This type defines TimeStamp Property range.

5.11.1.12. enum Cdd_Ecap_StartLevelType

Enumerator

Value

Description

CDD_ECAP_START_LEVEL_RISING_EDGE

Rising Edge Activation type.

CDD_ECAP_START_LEVEL_FALLING_EDGE

Falling Edge Activation type.

Brief: This type defines the edge to start the edge capturing.

5.11.1.13. enum Cdd_Ecap_InputSelect

Enumerator

Value

Description

CDD_ECAP_INPUT_INPUTXBAR1

0

CDD_ECAP_INPUT_INPUTXBAR2

1

GPIO Input Crossbar output signal-1.

CDD_ECAP_INPUT_INPUTXBAR3

2

GPIO Input Crossbar output signal-2.

CDD_ECAP_INPUT_INPUTXBAR4

3

GPIO Input Crossbar output signal-3.

CDD_ECAP_INPUT_INPUTXBAR5

4

GPIO Input Crossbar output signal-4.

CDD_ECAP_INPUT_INPUTXBAR6

5

GPIO Input Crossbar output signal-5.

CDD_ECAP_INPUT_INPUTXBAR7

6

GPIO Input Crossbar output signal-6.

CDD_ECAP_INPUT_INPUTXBAR8

7

GPIO Input Crossbar output signal-7.

CDD_ECAP_INPUT_INPUTXBAR9

8

GPIO Input Crossbar output signal-8.

CDD_ECAP_INPUT_INPUTXBAR10

9

GPIO Input Crossbar output signal-9.

CDD_ECAP_INPUT_INPUTXBAR11

10

GPIO Input Crossbar output signal-10.

CDD_ECAP_INPUT_INPUTXBAR12

11

GPIO Input Crossbar output signal-11.

CDD_ECAP_INPUT_INPUTXBAR13

12

GPIO Input Crossbar output signal-12.

CDD_ECAP_INPUT_INPUTXBAR14

13

GPIO Input Crossbar output signal-13.

CDD_ECAP_INPUT_INPUTXBAR15

14

GPIO Input Crossbar output signal-14.

CDD_ECAP_INPUT_INPUTXBAR16

15

GPIO Input Crossbar output signal-15.

CDD_ECAP_INPUT_ECAP1_CLB1_OUT14

16

GPIO Input Crossbar output signal-16.

CDD_ECAP_INPUT_ECAP2_CLB1_OUT14

16

CLB1 OUT14.

CDD_ECAP_INPUT_ECAP1_CLB1_OUT15

17

CLB1 OUT14.

CDD_ECAP_INPUT_ECAP2_CLB1_OUT15

17

CLB1 OUT15.

CDD_ECAP_INPUT_ECAP3_CLB2_OUT14

16

CLB1 OUT15.

CDD_ECAP_INPUT_ECAP4_CLB2_OUT14

16

CLB2 OUT14.

CDD_ECAP_INPUT_ECAP5_CLB2_OUT14

16

CLB2 OUT14.

CDD_ECAP_INPUT_ECAP3_CLB2_OUT15

17

CLB2 OUT14.

CDD_ECAP_INPUT_ECAP4_CLB2_OUT15

17

CLB2 OUT15.

CDD_ECAP_INPUT_ECAP5_CLB2_OUT15

17

CLB2 OUT15.

CDD_ECAP_INPUT_ECAP6_CLB3_OUT14

16

CLB2 OUT15.

CDD_ECAP_INPUT_ECAP6_CLB3_OUT15

17

CLB3 OUT14.

CDD_ECAP_INPUT_ECAP6_CLB4_OUT14

18

CLB3 OUT15.

CDD_ECAP_INPUT_ECAP6_CLB4_OUT15

19

CLB4 OUT14.

CDD_ECAP_INPUT_ECAP1_CLB5_OUT14

18

CLB4 OUT15.

CDD_ECAP_INPUT_ECAP2_CLB5_OUT14

18

CLB5 OUT14.

CDD_ECAP_INPUT_ECAP1_CLB5_OUT15

19

CLB5 OUT14.

CDD_ECAP_INPUT_ECAP2_CLB5_OUT15

19

CLB5 OUT15.

CDD_ECAP_INPUT_ECAP3_CLB6_OUT14

18

CLB5 OUT15.

CDD_ECAP_INPUT_ECAP4_CLB6_OUT14

18

CLB6 OUT14.

CDD_ECAP_INPUT_ECAP5_CLB6_OUT14

18

CLB6 OUT14.

CDD_ECAP_INPUT_ECAP3_CLB6_OUT15

19

CLB6 OUT14.

CDD_ECAP_INPUT_ECAP4_CLB6_OUT15

19

CLB6 OUT15.

CDD_ECAP_INPUT_ECAP5_CLB6_OUT15

19

CLB6 OUT15.

CDD_ECAP_INPUT_OUTPUTXBAR1

20

CLB6 OUT15.

CDD_ECAP_INPUT_OUTPUTXBAR2

21

Output Xbar Output-1.

CDD_ECAP_INPUT_OUTPUTXBAR3

22

Output Xbar Output-2.

CDD_ECAP_INPUT_OUTPUTXBAR4

23

Output Xbar Output-3.

CDD_ECAP_INPUT_OUTPUTXBAR5

24

Output Xbar Output-4.

CDD_ECAP_INPUT_OUTPUTXBAR6

25

Output Xbar Output-5.

CDD_ECAP_INPUT_OUTPUTXBAR7

26

Output Xbar Output-6.

CDD_ECAP_INPUT_OUTPUTXBAR8

27

Output Xbar Output-7.

CDD_ECAP_INPUT_ADC_E_EVENT4

28

Output Xbar Output-8.

CDD_ECAP_INPUT_ADC_E_EVENT3

29

ADCE Event4.

CDD_ECAP_INPUT_ADC_E_EVENT2

30

ADCE Event3.

CDD_ECAP_INPUT_ADC_E_EVENT1

31

ADCE Event2.

CDD_ECAP_INPUT_ADC_D_EVENT4

32

ADCE Event1.

CDD_ECAP_INPUT_ADC_D_EVENT3

33

ADCD Event4.

CDD_ECAP_INPUT_ADC_D_EVENT2

34

ADCD Event3.

CDD_ECAP_INPUT_ADC_D_EVENT1

35

ADCD Event2.

CDD_ECAP_INPUT_ADC_C_EVENT4

36

ADCD Event1.

CDD_ECAP_INPUT_ADC_C_EVENT3

37

ADCC Event4.

CDD_ECAP_INPUT_ADC_C_EVENT2

38

ADCC Event3.

CDD_ECAP_INPUT_ADC_C_EVENT1

39

ADCC Event2.

CDD_ECAP_INPUT_ADC_B_EVENT4

40

ADCC Event1.

CDD_ECAP_INPUT_ADC_B_EVENT3

41

ADCB Event4.

CDD_ECAP_INPUT_ADC_B_EVENT2

42

ADCB Event3.

CDD_ECAP_INPUT_ADC_B_EVENT1

43

ADCB Event2.

CDD_ECAP_INPUT_ADC_A_EVENT4

44

ADCB Event1.

CDD_ECAP_INPUT_ADC_A_EVENT3

45

ADCA Event4.

CDD_ECAP_INPUT_ADC_A_EVENT2

46

ADCA Event3.

CDD_ECAP_INPUT_ADC_A_EVENT1

47

ADCA Event2.

CDD_ECAP_INPUT_FSIA_RX_MSR_LINE

48

ADCA Event1.

CDD_ECAP_INPUT_FSIA_RX_MSR_LINE_RISE

49

FSIA Rx MSR Line.

CDD_ECAP_INPUT_FSIA_RX_MSR_LINE_FALL

50

FSIA Rx MSR Line Rise.

CDD_ECAP_INPUT_FSIB_RX_MSR_LINE

51

FSIA Rx MSR Line Fall.

CDD_ECAP_INPUT_FSIB_RX_MSR_LINE_RISE

52

FSIB Rx MSR Line.

CDD_ECAP_INPUT_FSIB_RX_MSR_LINE_FALL

53

FSIB Rx MSR Line Rise.

CDD_ECAP_INPUT_FSIC_RX_MSR_LINE

54

FSIB Rx MSR Line Fall.

CDD_ECAP_INPUT_FSIC_RX_MSR_LINE_RISE

55

FSIC Rx MSR Line.

CDD_ECAP_INPUT_FSIC_RX_MSR_LINE_FALL

56

FSIC Rx MSR Line Rise.

CDD_ECAP_INPUT_FSID_RX_MSR_LINE

57

FSIC Rx MSR Line Fall.

CDD_ECAP_INPUT_FSID_RX_MSR_LINE_RISE

58

FSID Rx MSR Line.

CDD_ECAP_INPUT_FSID_RX_MSR_LINE_FALL

59

FSID Rx MSR Line Rise.

CDD_ECAP_INPUT_SDFM2_FLT1_COMPARE_LOW

60

FSID Rx MSR Line Fall.

CDD_ECAP_INPUT_SDFM2_FLT2_COMPARE_LOW

61

SDFM-2 Filter-1 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT3_COMPARE_LOW

62

SDFM-2 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT4_COMPARE_LOW

63

SDFM-2 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT1_COMPARE_LOW

64

SDFM-2 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT2_COMPARE_LOW

65

SDFM-1 Filter-1 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT3_COMPARE_LOW

66

SDFM-1 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT4_COMPARE_LOW

67

SDFM-1 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT1_COMPARE_Z

68

SDFM-1 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT2_COMPARE_Z

69

SDFM-2 Filter-1 Compare Z Trip.

CDD_ECAP_INPUT_SDFM2_FLT3_COMPARE_Z

70

SDFM-2 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT4_COMPARE_Z

71

SDFM-2 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT1_COMPARE_Z

72

SDFM-2 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT2_COMPARE_Z

73

SDFM-1 Filter-1 Compare Z Trip.

CDD_ECAP_INPUT_SDFM1_FLT3_COMPARE_Z

74

SDFM-1 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT4_COMPARE_Z

75

SDFM-1 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT1_COMPARE_HIGH

76

SDFM-1 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT2_COMPARE_HIGH

77

SDFM-2 Filter-1 Compare High Trip.

CDD_ECAP_INPUT_SDFM2_FLT3_COMPARE_HIGH

78

SDFM-2 Filter-2 Compare High Trip.

CDD_ECAP_INPUT_SDFM2_FLT4_COMPARE_HIGH

79

SDFM-2 Filter-3 Compare High Trip.

CDD_ECAP_INPUT_SDFM1_FLT1_COMPARE_HIGH

80

SDFM-2 Filter-4 Compare High Trip.

CDD_ECAP_INPUT_SDFM1_FLT2_COMPARE_HIGH

81

SDFM-1 Filter-1 Compare High Trip.

CDD_ECAP_INPUT_SDFM1_FLT3_COMPARE_HIGH

82

SDFM-1 Filter-2 Compare High Trip.

CDD_ECAP_INPUT_SDFM1_FLT4_COMPARE_HIGH

83

SDFM-1 Filter-3 Compare High Trip.

CDD_ECAP_INPUT_SDFM2_FLT1_COMPARE_HIGH_OR_LOW

84

SDFM-1 Filter-4 Compare High Trip.

CDD_ECAP_INPUT_SDFM2_FLT2_COMPARE_HIGH_OR_LOW

85

SDFM-2 Filter-1 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT3_COMPARE_HIGH_OR_LOW

86

SDFM-2 Filter-2 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM2_FLT4_COMPARE_HIGH_OR_LOW

87

SDFM-2 Filter-3 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT1_COMPARE_HIGH_OR_LOW

88

SDFM-2 Filter-4 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT2_COMPARE_HIGH_OR_LOW

89

SDFM-1 Filter-1 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT3_COMPARE_HIGH_OR_LOW

90

SDFM-1 Filter-2 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM1_FLT4_COMPARE_HIGH_OR_LOW

91

SDFM-1 Filter-3 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_ECAP5_ECAP6_DELAY_CLK

92

SDFM-1 Filter-4 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_ECAP6_ECAP5_DELAY_CLK

93

Delay clock for measurement.

CDD_ECAP_INPUT_ECATSYNC0

94

Delay clock for measurement.

CDD_ECAP_INPUT_ECATSYNC1

95

Ethercat Sync0.

CDD_ECAP_INPUT_CMPSS1_CTRIP_LOW

96

Ethercat Sync1.

CDD_ECAP_INPUT_CMPSS2_CTRIP_LOW

97

Compare Subsystem-1 Low Trip.

CDD_ECAP_INPUT_CMPSS3_CTRIP_LOW

98

Compare Subsystem-2 Low Trip.

CDD_ECAP_INPUT_CMPSS4_CTRIP_LOW

99

Compare Subsystem-3 Low Trip.

CDD_ECAP_INPUT_CMPSS5_CTRIP_LOW

100

Compare Subsystem-4 Low Trip.

CDD_ECAP_INPUT_CMPSS6_CTRIP_LOW

101

Compare Subsystem-5 Low Trip.

CDD_ECAP_INPUT_CMPSS7_CTRIP_LOW

102

Compare Subsystem-6 Low Trip.

CDD_ECAP_INPUT_CMPSS8_CTRIP_LOW

103

Compare Subsystem-7 Low Trip.

CDD_ECAP_INPUT_CMPSS1_CTRIP_HIGH

107

Compare Subsystem-8 Low Trip.

CDD_ECAP_INPUT_CMPSS2_CTRIP_HIGH

108

Compare Subsystem-1 High Trip.

CDD_ECAP_INPUT_CMPSS3_CTRIP_HIGH

109

Compare Subsystem-2 High Trip.

CDD_ECAP_INPUT_CMPSS4_CTRIP_HIGH

110

Compare Subsystem-3 High Trip.

CDD_ECAP_INPUT_CMPSS5_CTRIP_HIGH

111

Compare Subsystem-4 High Trip.

CDD_ECAP_INPUT_CMPSS6_CTRIP_HIGH

112

Compare Subsystem-5 High Trip.

CDD_ECAP_INPUT_CMPSS7_CTRIP_HIGH

113

Compare Subsystem-6 High Trip.

CDD_ECAP_INPUT_CMPSS8_CTRIP_HIGH

114

Compare Subsystem-7 High Trip.

CDD_ECAP_INPUT_GPIO8

115

Compare Subsystem-8 High Trip.

CDD_ECAP_INPUT_GPIO9

116

GPIO8.

CDD_ECAP_INPUT_GPIO22

117

GPIO9.

CDD_ECAP_INPUT_GPIO23

118

GPIO22.

CDD_ECAP_INPUT_CMPSS1_CTRIP_HIGH_OR_LOW

119

GPIO23.

CDD_ECAP_INPUT_CMPSS2_CTRIP_HIGH_OR_LOW

120

Compare Subsystem-1 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS3_CTRIP_HIGH_OR_LOW

121

Compare Subsystem-1 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS4_CTRIP_HIGH_OR_LOW

122

Compare Subsystem-2 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS5_CTRIP_HIGH_OR_LOW

123

Compare Subsystem-3 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS6_CTRIP_HIGH_OR_LOW

124

Compare Subsystem-4 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS7_CTRIP_HIGH_OR_LOW

125

Compare Subsystem-5 High Trip or Low Trip.

CDD_ECAP_INPUT_CMPSS8_CTRIP_HIGH_OR_LOW

126

Compare Subsystem-6 High Trip or Low Trip.

CDD_ECAP_INPUT_ECAP1_INPUTXBAR7

127

Compare Subsystem-7 High Trip or Low Trip.

CDD_ECAP_INPUT_ECAP2_INPUTXBAR8

127

GPIO Input Crossbar output signal-7.

CDD_ECAP_INPUT_ECAP3_INPUTXBAR9

127

GPIO Input Crossbar output signal-8.

CDD_ECAP_INPUT_ECAP4_INPUTXBAR10

127

GPIO Input Crossbar output signal-9.

CDD_ECAP_INPUT_ECAP5_INPUTXBAR11

127

GPIO Input Crossbar output signal-10.

CDD_ECAP_INPUT_ECAP6_INPUTXBAR12

127

GPIO Input Crossbar output signal-11.

CDD_ECAP_INPUT_SDFM4_FLT1_COMPARE_LOW

128

GPIO Input Crossbar output signal-12.

CDD_ECAP_INPUT_SDFM4_FLT2_COMPARE_LOW

129

SDFM-4 Filter-1 Compare Low Trip.

CDD_ECAP_INPUT_SDFM4_FLT3_COMPARE_LOW

130

SDFM-4 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM4_FLT4_COMPARE_LOW

131

SDFM-4 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT1_COMPARE_LOW

132

SDFM-4 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT2_COMPARE_LOW

133

SDFM-3 Filter-1 Compare Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT3_COMPARE_LOW

134

SDFM-3 Filter-2 Compare Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT4_COMPARE_LOW

135

SDFM-3 Filter-3 Compare Low Trip.

CDD_ECAP_INPUT_SDFM4_FLT4_COMPARE_Z

139

SDFM-3 Filter-4 Compare Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT4_COMPARE_Z

143

SDFM-4 Filter-4 Compare Z Trip.

CDD_ECAP_INPUT_SDFM4_FLT1_COMPARE_HIGH

144

SDFM-3 Filter-4 Compare Z Trip.

CDD_ECAP_INPUT_SDFM4_FLT2_COMPARE_HIGH

145

SDFM-4 Filter-1 Compare High Trip.

CDD_ECAP_INPUT_SDFM4_FLT3_COMPARE_HIGH

146

SDFM-4 Filter-2 Compare High Trip.

CDD_ECAP_INPUT_SDFM4_FLT4_COMPARE_HIGH

147

SDFM-4 Filter-3 Compare High Trip.

CDD_ECAP_INPUT_SDFM3_FLT1_COMPARE_HIGH

148

SDFM-4 Filter-4 Compare High Trip.

CDD_ECAP_INPUT_SDFM3_FLT2_COMPARE_HIGH

149

SDFM-3 Filter-1 Compare High Trip.

CDD_ECAP_INPUT_SDFM3_FLT3_COMPARE_HIGH

150

SDFM-3 Filter-2 Compare High Trip.

CDD_ECAP_INPUT_SDFM3_FLT4_COMPARE_HIGH

151

SDFM-3 Filter-3 Compare High Trip.

CDD_ECAP_INPUT_SDFM4_FLT1_COMPARE_HIGH_OR_LOW

152

SDFM-3 Filter-4 Compare High Trip.

CDD_ECAP_INPUT_SDFM4_FLT2_COMPARE_HIGH_OR_LOW

153

SDFM-4 Filter-1 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM4_FLT3_COMPARE_HIGH_OR_LOW

154

SDFM-4 Filter-2 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM4_FLT4_COMPARE_HIGH_OR_LOW

155

SDFM-4 Filter-3 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT1_COMPARE_HIGH_OR_LOW

156

SDFM-4 Filter-4 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT2_COMPARE_HIGH_OR_LOW

157

SDFM-3 Filter-1 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT3_COMPARE_HIGH_OR_LOW

158

SDFM-3 Filter-2 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_SDFM3_FLT4_COMPARE_HIGH_OR_LOW

159

SDFM-3 Filter-3 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_EPWM18_DEL_ACTIVE

160

SDFM-3 Filter-4 Compare High Trip or Low Trip.

CDD_ECAP_INPUT_EPWM17_DEL_ACTIVE

161

EPWM-18 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM16_DEL_ACTIVE

162

EPWM-17 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM15_DEL_ACTIVE

163

EPWM-16 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM14_DEL_ACTIVE

164

EPWM-15 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM13_DEL_ACTIVE

165

EPWM-14 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM12_DEL_ACTIVE

166

EPWM-13 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM11_DEL_ACTIVE

167

EPWM-12 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM10_DEL_ACTIVE

168

EPWM-11 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM9_DEL_ACTIVE

169

EPWM-10 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM8_DEL_ACTIVE

170

EPWM-9 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM7_DEL_ACTIVE

171

EPWM-8 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM6_DEL_ACTIVE

172

EPWM-7 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM5_DEL_ACTIVE

173

EPWM-6 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM4_DEL_ACTIVE

174

EPWM-5 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM3_DEL_ACTIVE

175

EPWM-4 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM2_DEL_ACTIVE

176

EPWM-3 Diode Emulation Logic Active.

CDD_ECAP_INPUT_EPWM1_DEL_ACTIVE

177

EPWM-2 Diode Emulation Logic Active.

CDD_ECAP_INPUT_GPIO11

251

EPWM-1 Diode Emulation Logic Active.

CDD_ECAP_INPUT_GPIO12

252

GPIO11.

CDD_ECAP_INPUT_GPIO13

253

GPIO12.

CDD_ECAP_INPUT_GPIO14

254

GPIO13.

CDD_ECAP_INPUT_ECAP1_EPG1_DATAOUT49

255

GPIO14.

CDD_ECAP_INPUT_ECAP2_EPG1_DATAOUT50

255

EPG-1 Data Output-49 Connection.

CDD_ECAP_INPUT_ECAP3_EPG1_DATAOUT51

255

EPG-1 Data Output-50 Connection.

CDD_ECAP_INPUT_ECAP4_EPG1_DATAOUT52

255

EPG-1 Data Output-51 Connection.

CDD_ECAP_INPUT_ECAP5_EPG1_DATAOUT53

255

EPG-1 Data Output-52 Connection.

CDD_ECAP_INPUT_ECAP6_EPG1_DATAOUT54

255

EPG-1 Data Output-53 Connection.

Brief: This type defines Xbar input to select.

5.11.1.14. typedef Cdd_Ecap_ValueType

typedef uint32 Cdd_Ecap_ValueType;

Brief: This type defines Value type.

5.11.1.15. typedef Cdd_Ecap_IndexType

typedef uint32 Cdd_Ecap_IndexType;

Brief: This type defines return value Cdd_Ecap_GetTimeStampIndex.

5.11.1.16. typedef Cdd_Ecap_EdgeNumberType

typedef uint32 Cdd_Ecap_EdgeNumberType;

Brief: This type defines return value of Cdd_Ecap_GetEdgeNumbers.

5.11.1.17. typedef Cdd_Ecap_ChannelType

typedef uint8 Cdd_Ecap_ChannelType;

Brief: This type defines Channel type.

5.11.1.18. typedef Cdd_Ecap_ChannelPrescalerType

typedef uint8 Cdd_Ecap_ChannelPrescalerType;

Brief: This type defines Prescaler type.

5.11.1.19. typedef Cdd_Ecap_ChannelHrScaleType

typedef float32 Cdd_Ecap_ChannelHrScaleType;

Brief: This type defines the scale-factor type for HR mode.

5.11.1.20. typedef Cdd_Ecap_ChannelHrInterruptType

typedef uint16 Cdd_Ecap_ChannelHrInterruptType;

Brief: This type defines the interrupt flags type for HR mode.

5.11.1.21. typedef Cdd_Ecap_NotifyFuncType

typedef void(* Cdd_Ecap_NotifyFuncType) (void);

Brief: Notification callback function pointer

5.11.2. Structures

Name

Brief

Cdd_Ecap_DutyCycleType

This type defines Duty Cycle struct.

Cdd_Ecap_ChannelConfigType

CDD_ECAP Channel Config Structure.

Cdd_Ecap_ConfigType

CDD_ECAP Config Structure.

Cdd_Ecap_PeriodicReadBackDataType

CDD_ECAP periodic readback register definition.

5.11.3. Defines

Name

Brief

CDD_ECAP_INIT_ID

Cdd_Ecap_Init() API Service ID.

CDD_ECAP_DEINIT_ID

Cdd_Ecap_DeInit() API Service ID.

CDD_ECAP_SETMODE_ID

Cdd_Ecap_SetMode() API Service ID.

CDD_ECAP_SETACTIVATIONCONDITION_ID

Cdd_Ecap_SetActivationCondition() API Service ID.

CDD_ECAP_DISABLENOTIFICATION_ID

Cdd_Ecap_DisableNotification() API Service ID.

CDD_ECAP_ENABLENOTIFICATION_ID

Cdd_Ecap_EnableNotification() API Service ID.

CDD_ECAP_GETINPUTSTATE_ID

Cdd_Ecap_GetInputState() API Service ID.

CDD_ECAP_STARTTIMESTAMP_ID

Cdd_Ecap_StartTimestamp() API Service ID.

CDD_ECAP_STOPTIMESTAMP_ID

Cdd_Ecap_StopTimestamp() API Service ID.

CDD_ECAP_GETTIMESTAMPINDEX_ID

Cdd_Ecap_GetTimeStampIndex() API Service ID.

CDD_ECAP_RESETEDGECOUNT_ID

Cdd_Ecap_ResetEdgeCount() API Service ID.

CDD_ECAP_ENABLEEDGECOUNT_ID

Cdd_Ecap_EnableEdgeCount() API Service ID.

CDD_ECAP_DISABLEEDGECOUNT_ID

Cdd_Ecap_DisableEdgeCount() API Service ID.

CDD_ECAP_GETEDGENUMBERS_ID

Cdd_Ecap_GetEdgeNumbers() API Service ID.

CDD_ECAP_GETTIMEELAPSED_ID

Cdd_Ecap_GetTimeElapsed() API Service ID.

CDD_ECAP_GETDUTYCYCLEVALUES_ID

Cdd_Ecap_GetDutyCycleValues() API Service ID.

CDD_ECAP_GETVERSIONINFO_ID

Cdd_Ecap_GetVersionInfo() API Service ID.

CDD_ECAP_STARTSIGNALMEASUREMENT_ID

Cdd_Ecap_StartSignalMeasurement() API Service ID.

CDD_ECAP_STOPSIGNALMEASUREMENT_ID

Cdd_Ecap_StopSignalMeasurement() API Service ID.

CDD_ECAP_ENABLEEDGEDETECTION_ID

Cdd_Ecap_EnableEdgeDetection() API Service ID.

CDD_ECAP_DISABLEEDGEDETECTION_ID

Cdd_Ecap_DisableEdgeDetection() API Service ID.

CDD_ECAP_SETSTARTLEVELCONDITION_ID

Cdd_Ecap_SetStartLevelCondition() API Service ID.

CDD_ECAP_HRSCALEFACTOR_ID

Cdd_Ecap_GetHrScaleFactor API Service ID.

CDD_ECAP_HRTIMESTAMP_ID

Cdd_Ecap_GetHrScaleFactor API Service ID.

CDD_ECAP_READBACK_ID

Cdd_Ecap_PeriodicReadback() API Service ID.

CDD_ECAP_E_PARAM_POINTER

API service called with invalid pointer.

CDD_ECAP_E_PARAM_CHANNEL

API service called with invalid channel identifier or channel not configured.

CDD_ECAP_E_PARAM_ACTIVATION

API service called with an invalid or not feasible activation.

CDD_ECAP_E_INIT_FAILED

Init Function Failed.

CDD_ECAP_E_PARAM_BUFFER_SIZE

API service used with invalid Buffer size.

CDD_ECAP_E_PARAM_MODE

API service called with invalid mode.

CDD_ECAP_E_UNINIT

API service called without module initialisation.

CDD_ECAP_E_NOT_STARTED

Cdd_Ecap_StopTimestamp called on channel not started or already stopped.

CDD_ECAP_E_BUSY_OPERATION

API service called while a running operation.

CDD_ECAP_E_ALREADY_INITIALIZED

API service Cdd_Ecap_Init called when module already initialized.

CDD_ECAP_E_PARAM_NOTIFY_INTERVAL

API service called when notify interval is invalid.

CDD_ECAP_E_PARAM_VINFO

API service Cdd_Ecap_GetVersionInfo called and parameter is invalid.

CDD_ECAP_E_PARAM_START_LEVEL

API service called with an invalid or not feasible start level.

CDD_ECAP_E_HR_CHANNEL

API service called with an invalid channel in the HR mode.

CDD_ECAP_STATUS_UNINIT

CDD_ECAP driver Status uninitialized.

CDD_ECAP_STATUS_INIT

CDD_ECAP driver Status Initialized.

CDD_ECAP_SF_NOTREADY

CDD_ECAP Scalefactor is not ready.

CDD_ECAP_ECEINT_CEVT1

Capture Event 1 Interrupt Enable.

CDD_ECAP_ECEINT_CEVT2

Capture Event 2 Interrupt Enable.

CDD_ECAP_ECEINT_CEVT3

Capture Event 3 Interrupt Enable.

CDD_ECAP_ECEINT_CEVT4

Capture Event 4 Interrupt Enable.

CDD_ECAP_HRCAP_GLOBAL_CALIBRATION_INTERRUPT

Global calibration interrupt flag.

CDD_ECAP_HRCAP_CALIBRATION_DONE

Calibration done flag.

CDD_ECAP_HRCAP_CALIBRATION_PERIOD_OVERFLOW

Calibration period overflow flag.

CDD_ECAP_VENDOR_ID

Texas Instruments Vendor ID.

CDD_ECAP_MODULE_ID

CDD ECAP Driver Module ID.

CDD_ECAP_INSTANCE_ID

CDD ECAP Driver Instance ID.

CDD_ECAP_SW_MAJOR_VERSION

Driver Implementation Major Version.

CDD_ECAP_SW_MINOR_VERSION

Driver Implementation Minor Version.

CDD_ECAP_SW_PATCH_VERSION

Driver Implementation Patch Version.

CDD_ECAP_AR_RELEASE_MAJOR_VERSION

AUTOSAR Major version specification implemented by CDD_ECAP Driver.

CDD_ECAP_AR_RELEASE_MINOR_VERSION

AUTOSAR Minor version specification implemented by CDD_ECAP Driver.

CDD_ECAP_AR_RELEASE_REVISION_VERSION

AUTOSAR Patch version specification implemented by CDD_ECAP Driver.

CDD_ECAP_HRCAP_HRCAPCAL_OVERFLOW

CDD_ECAP_HRCAP_HRCAPCAL_INV_OVERFLOW

CDD_ECAP_CFG_MAJOR_VERSION

CDD_ECAP_CFG_MINOR_VERSION

CDD_ECAP_CFG_PATCH_VERSION

CDD_ECAP_HW_CNT

CDD_ECAP_DE_INIT_API

Enable/Disable Cdd_Ecap DeInit API.

CDD_ECAP_EDGE_COUNT_API

Enable/Disable Edge Count API.

CDD_ECAP_EDGE_DETECT_API

Enable/Disable Edge Detect API.

CDD_ECAP_GET_DUTY_CYCLE_VALUES_API

Enable/Disable Get Duty Cycle Values API.

CDD_ECAP_GET_INPUT_STATE_API

Enable/Disable Get Input State API.

CDD_ECAP_GET_TIME_ELAPSED_API

Enable/Disable Get Time Elapsed API.

CDD_ECAP_GET_VERSION_INFO_API

Enable/Disable Get Version Info API.

CDD_ECAP_SIGNAL_MEASUREMENT_API

Enable/Disable Signal Measurement API.

CDD_ECAP_TIMESTAMP_API

Enable/Disable Timestamp API.

CDD_ECAP_HR_API

Enable/Disable High Resolution API.

CDD_ECAP_DEV_ERROR_DETECT

Enable/Disable Development error detet.

CDD_ECAP_MAX_NUM_CHANNELS

Maximum number of Cdd_Ecap channels.

CDD_ECAP_INIT_CONFIG_PC

Pre Compile config macro name.

CddEcapConf_CddEcapChannel_CddEcapChannel_0

Channel ID Symbolic Names Configured channel ID(s)

CddEcapConf_CddEcapChannel_CddEcapChannel_1

Channel identifiers.

CddEcapConf_CddEcapChannel_CddEcapChannel_2

Channel identifiers.

CddEcapConf_CddEcapChannel_CddEcapChannel_3

Channel identifiers.

CDD_ECAP_CHANNEL0

Channel identifiers.

CDD_ECAP_CHANNEL1

ECAP Channel 1, in MAIN DOMAIN.

CDD_ECAP_CHANNEL2

ECAP Channel 2, in MAIN DOMAIN.

CDD_ECAP_CHANNEL3

ECAP Channel 3, in MAIN DOMAIN.

CDD_ECAP_CHANNEL0_INT_ENABLE

CDD_ECAP_CHANNEL0_INT_ISR_CAT1_INT

CDD_ECAP_CHANNEL1_INT_ENABLE

CDD_ECAP_CHANNEL1_INT_ISR_CAT1_INT

CDD_ECAP_CHANNEL2_INT_ENABLE

CDD_ECAP_CHANNEL2_INT_ISR_CAT1_INT

CDD_ECAP_CHANNEL3_INT_ENABLE

CDD_ECAP_CHANNEL3_INT_ISR_CAT1_INT

5.11.4. Functions

Return type

Function Name

Brief

void

Cdd_Ecap_Init(const Cdd_Ecap_ConfigType * ConfigPtr)

Service to initialize Cdd Ecap driver.

void

Cdd_Ecap_DeInit(void )

Service to De-initialize Cdd Ecap driver.

void

Cdd_Ecap_SetActivationCondition(Cdd_Ecap_ChannelType Channel, Cdd_Ecap_ActivationType Activation)

Service for setting the activation condition.

void

Cdd_Ecap_SetStartLevelCondition(Cdd_Ecap_ChannelType Channel, Cdd_Ecap_StartLevelType StartLevel)

Service for setting the start level condition.

void

Cdd_Ecap_DisableNotification(Cdd_Ecap_ChannelType Channel)

Service for disabling the notification.

void

Cdd_Ecap_EnableNotification(Cdd_Ecap_ChannelType Channel)

Service for enabling the notification.

Cdd_Ecap_InputStateType

Cdd_Ecap_GetInputState(Cdd_Ecap_ChannelType Channel)

Service for getting the input state of CDD_ECAP channel.

void

Cdd_Ecap_StartTimestamp(Cdd_Ecap_ChannelType Channel, Cdd_Ecap_ValueType * BufferPtr, uint16 BufferSize, uint16 NotifyInterval)

Service for starting the timestamp measurement.

void

Cdd_Ecap_StopTimestamp(Cdd_Ecap_ChannelType Channel)

Service for stopping the timestamp measurement.

Cdd_Ecap_IndexType

Cdd_Ecap_GetTimestampIndex(Cdd_Ecap_ChannelType Channel)

Service for reading the index of the timestamp measurement.

void

Cdd_Ecap_ResetEdgeCount(Cdd_Ecap_ChannelType Channel)

Service resets the edge count value to 0.

void

Cdd_Ecap_EnableEdgeCount(Cdd_Ecap_ChannelType Channel)

Service for enabling the counting of edges of the given channel.

void

Cdd_Ecap_DisableEdgeCount(Cdd_Ecap_ChannelType Channel)

Service for disabling the counting of edges of the given channel.

Cdd_Ecap_EdgeNumberType

Cdd_Ecap_GetEdgeNumbers(Cdd_Ecap_ChannelType Channel)

Service for getting the count of edges of the given channel.

void

Cdd_Ecap_EnableEdgeDetection(Cdd_Ecap_ChannelType Channel)

Service for enabling the detection of edges of the given channel.

void

Cdd_Ecap_DisableEdgeDetection(Cdd_Ecap_ChannelType Channel)

Service for disabling the detection of edges of the given channel.

void

Cdd_Ecap_StartSignalMeasurement(Cdd_Ecap_ChannelType Channel)

Service for starting the measurement of signals for a given channel.

void

Cdd_Ecap_StopSignalMeasurement(Cdd_Ecap_ChannelType Channel)

Service for stopping the measurement of signals for a given channel.

Cdd_Ecap_ValueType

Cdd_Ecap_GetTimeElapsed(Cdd_Ecap_ChannelType Channel)

Service for reading the time elapsed between the edges of a channel.

void

Cdd_Ecap_GetDutyCycleValues(Cdd_Ecap_ChannelType Channel, Cdd_Ecap_DutyCycleType * DutyCycleValues)

Service for reading the active time and period.

void

Cdd_Ecap_GetVersionInfo(Std_VersionInfoType * VersionInfoPtr)

service that returns the version information of the module.

void

Cdd_Ecap_PeriodicReadback(Cdd_Ecap_ChannelType Channel, Cdd_Ecap_PeriodicReadBackDataType * ReadBackRegisterdata)

This service shall read all the statically configured registers.

Cdd_Ecap_ChannelHrScaleType

Cdd_Ecap_GetHrScaleFactor(Cdd_Ecap_ChannelType Channel)

Service to retrieve the scale factor for high resolution capability.

Cdd_Ecap_ChannelHrScaleType

Cdd_Ecap_ConvertHrTimeStampToEcapTimeStamp(Cdd_Ecap_ChannelType Channel, uint32 timeStamp)

Service to convert the event timestamp to nanoseconds for high resolution capability.

void

Cdd_Ecap_TimeStampNotify(void )

void

Cdd_Ecap_SignalNotify(void )

5.11.4.1. function Cdd_Ecap_Init

void Cdd_Ecap_Init(
    const Cdd_Ecap_ConfigType * ConfigPtr
)

Brief: Service to initialize Cdd Ecap driver.

This service initializes all the ECAP HW units.

Parameters:

  • ConfigPtr Pointer to configuration set (Varaint PC requires a NULL_PTR)

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.2. function Cdd_Ecap_DeInit

void Cdd_Ecap_DeInit(
    void 
)

Brief: Service to De-initialize Cdd Ecap driver.

This service De-initializes all the ECAP HW units.

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.3. function Cdd_Ecap_SetActivationCondition

void Cdd_Ecap_SetActivationCondition(
    Cdd_Ecap_ChannelType Channel,
    Cdd_Ecap_ActivationType Activation
)

Brief: Service for setting the activation condition.

This service sets the activation condition of a channel(Rising, Falling or Both Edges).

Parameters:

  • Channel CDD_ECAP Channel in use

  • Activation Activation condition or Edge to be selected

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.4. function Cdd_Ecap_SetStartLevelCondition

void Cdd_Ecap_SetStartLevelCondition(
    Cdd_Ecap_ChannelType Channel,
    Cdd_Ecap_StartLevelType StartLevel
)

Brief: Service for setting the start level condition.

This service sets the start level condition of a channel (Rising or Falling). In case of both edge detection, this parameter selects the start edge from which to start counting the edges.

Parameters:

  • Channel CDD_ECAP Channel in use

  • StartLevel Start level condition or Edge to be selected

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.5. function Cdd_Ecap_DisableNotification

void Cdd_Ecap_DisableNotification(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for disabling the notification.

This service disables the notification function of a channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.6. function Cdd_Ecap_EnableNotification

void Cdd_Ecap_EnableNotification(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for enabling the notification.

This service enables the notification function of a channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.7. function Cdd_Ecap_GetInputState

Cdd_Ecap_InputStateType Cdd_Ecap_GetInputState(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for getting the input state of CDD_ECAP channel.

This service gets the input state of CDD_ECAP channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.8. function Cdd_Ecap_StartTimestamp

void Cdd_Ecap_StartTimestamp(
    Cdd_Ecap_ChannelType Channel,
    Cdd_Ecap_ValueType * BufferPtr,
    uint16 BufferSize,
    uint16 NotifyInterval
)

Brief: Service for starting the timestamp measurement.

This service starts the timestamp measurement on the edges of a given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

  • BufferPtr Pointer which points to timestamp buffer

  • BufferSize Size of the timestamp buffer

  • NotifyInterval Notify Interval

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.9. function Cdd_Ecap_StopTimestamp

void Cdd_Ecap_StopTimestamp(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for stopping the timestamp measurement.

This service stops the timestamp measurement on the edges of a given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.10. function Cdd_Ecap_GetTimestampIndex

Cdd_Ecap_IndexType Cdd_Ecap_GetTimestampIndex(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for reading the index of the timestamp measurement.

This service reads the index of the timestamp measurement.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.11. function Cdd_Ecap_ResetEdgeCount

void Cdd_Ecap_ResetEdgeCount(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service resets the edge count value to 0.

This service resets the edge count value to 0.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.12. function Cdd_Ecap_EnableEdgeCount

void Cdd_Ecap_EnableEdgeCount(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for enabling the counting of edges of the given channel.

This service enables the counting of edges of the given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.13. function Cdd_Ecap_DisableEdgeCount

void Cdd_Ecap_DisableEdgeCount(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for disabling the counting of edges of the given channel.

This service disables the counting of edges of the given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.14. function Cdd_Ecap_GetEdgeNumbers

Cdd_Ecap_EdgeNumberType Cdd_Ecap_GetEdgeNumbers(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for getting the count of edges of the given channel.

This service counts the edges of the given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.15. function Cdd_Ecap_EnableEdgeDetection

void Cdd_Ecap_EnableEdgeDetection(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for enabling the detection of edges of the given channel.

This service enables the edge detection of given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.16. function Cdd_Ecap_DisableEdgeDetection

void Cdd_Ecap_DisableEdgeDetection(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for disabling the detection of edges of the given channel.

This service disables the edge detection of given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.17. function Cdd_Ecap_StartSignalMeasurement

void Cdd_Ecap_StartSignalMeasurement(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for starting the measurement of signals for a given channel.

This service starts the signal measurement of a given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.18. function Cdd_Ecap_StopSignalMeasurement

void Cdd_Ecap_StopSignalMeasurement(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for stopping the measurement of signals for a given channel.

This service stops the signal measurement of a given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.19. function Cdd_Ecap_GetTimeElapsed

Cdd_Ecap_ValueType Cdd_Ecap_GetTimeElapsed(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service for reading the time elapsed between the edges of a channel.

This service reads the time elapsed between the edges of a channel(High time, low time, period and duty).

Parameters:

  • Channel CDD_ECAP Channel in use

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.20. function Cdd_Ecap_GetDutyCycleValues

void Cdd_Ecap_GetDutyCycleValues(
    Cdd_Ecap_ChannelType Channel,
    Cdd_Ecap_DutyCycleType * DutyCycleValues
)

Brief: Service for reading the active time and period.

This service reads the active time and period of a given channel.

Parameters:

  • Channel CDD_ECAP Channel in use

  • DutyCycleValues Duty cycle values

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.21. function Cdd_Ecap_GetVersionInfo

void Cdd_Ecap_GetVersionInfo(
    Std_VersionInfoType * VersionInfoPtr
)

Brief: service that returns the version information of the module.

This service returns the version information of the Cdd Ecap module.

Parameters:

  • VersionInfoPtr Pointer to where to store the version information of this module

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.22. function Cdd_Ecap_PeriodicReadback

void Cdd_Ecap_PeriodicReadback(
    Cdd_Ecap_ChannelType Channel,
    Cdd_Ecap_PeriodicReadBackDataType * ReadBackRegisterdata
)

Brief: This service shall read all the statically configured registers.

Parameters:

  • Channel CDD_ECAP Channel in use

  • ReadBackRegisterdata pointer for the read back registers

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.23. function Cdd_Ecap_GetHrScaleFactor

Cdd_Ecap_ChannelHrScaleType Cdd_Ecap_GetHrScaleFactor(
    Cdd_Ecap_ChannelType Channel
)

Brief: Service to retrieve the scale factor for high resolution capability.

This service retrieves the scale factor for high resolution capability.

Parameters:

  • Channel CDD_ECAP Channel in use.

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.24. function Cdd_Ecap_ConvertHrTimeStampToEcapTimeStamp

Cdd_Ecap_ChannelHrScaleType Cdd_Ecap_ConvertHrTimeStampToEcapTimeStamp(
    Cdd_Ecap_ChannelType Channel,
    uint32 timeStamp
)

Brief: Service to convert the event timestamp to nanoseconds for high resolution capability.

This service converts the event timestamp to nanoseconds for high resolution capability.

Parameters:

  • Channel CDD_ECAP Channel in use

  • timeStamp Event timestamp

Returns:

  • None

Return: None

Precondition: None

Postcondition: None

5.11.4.25. function Cdd_Ecap_TimeStampNotify

void Cdd_Ecap_TimeStampNotify(
    void 
)

5.11.4.26. function Cdd_Ecap_SignalNotify

void Cdd_Ecap_SignalNotify(
    void 
)