AM263x MCU+ SDK  10.00.00

Introduction

This module contains APIs to program and use the ECAP module.

Functions

static void ECAP_setEventPrescaler (uint32_t base, uint16_t preScalerValue)
 
static void ECAP_setEventPolarity (uint32_t base, ECAP_Events event, ECAP_EventPolarity polarity)
 
static void ECAP_setCaptureMode (uint32_t base, ECAP_CaptureMode mode, ECAP_Events event)
 
static void ECAP_reArm (uint32_t base)
 
static void ECAP_enableInterrupt (uint32_t base, uint16_t intFlags)
 
static void ECAP_disableInterrupt (uint32_t base, uint16_t intFlags)
 
static uint16_t ECAP_getInterruptSource (uint32_t base)
 
static bool ECAP_getGlobalInterruptStatus (uint32_t base)
 
static void ECAP_clearInterrupt (uint32_t base, uint16_t intFlags)
 
static void ECAP_clearGlobalInterrupt (uint32_t base)
 
static void ECAP_forceInterrupt (uint32_t base, uint16_t intFlags)
 
static void ECAP_enableCaptureMode (uint32_t base)
 
static void ECAP_enableAPWMMode (uint32_t base)
 
static void ECAP_enableCounterResetOnEvent (uint32_t base, ECAP_Events event)
 
static void ECAP_disableCounterResetOnEvent (uint32_t base, ECAP_Events event)
 
static void ECAP_enableTimeStampCapture (uint32_t base)
 
static void ECAP_disableTimeStampCapture (uint32_t base)
 
static void ECAP_setPhaseShiftCount (uint32_t base, uint32_t shiftCount)
 
static void ECAP_setSyncInPulseSource (uint32_t base, ECAP_SyncInPulseSource source)
 
static void ECAP_enableLoadCounter (uint32_t base)
 
static void ECAP_disableLoadCounter (uint32_t base)
 
static void ECAP_loadCounter (uint32_t base)
 
static void ECAP_setSyncOutMode (uint32_t base, ECAP_SyncOutMode mode)
 
static void ECAP_stopCounter (uint32_t base)
 
static void ECAP_startCounter (uint32_t base)
 
static void ECAP_setAPWMPolarity (uint32_t base, ECAP_APWMPolarity polarity)
 
static void ECAP_setAPWMPeriod (uint32_t base, uint32_t periodCount)
 
static void ECAP_setAPWMCompare (uint32_t base, uint32_t compareCount)
 
static void ECAP_setAPWMShadowPeriod (uint32_t base, uint32_t periodCount)
 
static void ECAP_setAPWMShadowCompare (uint32_t base, uint32_t compareCount)
 
static uint32_t ECAP_getTimeBaseCounter (uint32_t base)
 
static uint32_t ECAP_getEventTimeStamp (uint32_t base, ECAP_Events event)
 
static void ECAP_selectECAPInput (uint32_t base, ECAP_InputCaptureSignals input)
 
static void ECAP_selectQualPeriod (uint32_t base, ECAP_QualPeriodSelect width)
 
static void ECAP_selectSocTriggerSource (uint32_t base, ECAP_SocTriggerSource triggersource)
 
static void ECAP_resetCounters (uint32_t base)
 
static void ECAP_setDMASource (uint32_t base, ECAP_DmaTriggerSource triggersource)
 
static ECAP_Events ECAP_getModuloCounterStatus (uint32_t base)
 
static void ECAP_enableSignalMonitoringUnit (uint32_t base, uint32_t munit)
 
static void ECAP_disableSignalMonitoringUnit (uint32_t base, uint32_t munit)
 
static void ECAP_enableDebugRange (uint32_t base, uint32_t munit)
 
static void ECAP_disableDebugRange (uint32_t base, uint32_t munit)
 
static void ECAP_selectMonitoringType (uint32_t base, uint32_t munit, ECAP_MonitoringTypeSelect monSel)
 
static void ECAP_selectTripSignal (uint32_t base, ECAP_MunitTripInputSelect tripSel)
 
static void ECAP_selectGlobalLoadStrobe (uint32_t base, ECAP_MunitGlobalStrobeSelect strobe)
 
static void ECAP_enableShadowMinMaxRegisters (uint32_t base, uint32_t munit)
 
static void ECAP_disableShadowMinMaxRegisters (uint32_t base, uint32_t munit)
 
static void ECAP_enableSoftwareSync (uint32_t base, uint32_t munit)
 
static void ECAP_selectShadowLoadMode (uint32_t base, uint32_t munit, uint32_t loadMode)
 
static void ECAP_configureMinValue (uint32_t base, uint32_t munit, uint32_t minValue)
 
static void ECAP_configureMaxValue (uint32_t base, uint32_t munit, uint32_t maxValue)
 
static void ECAP_configureShadowMinValue (uint32_t base, uint32_t munit, uint32_t minValue)
 
static void ECAP_configureShadowMaxValue (uint32_t base, uint32_t munit, uint32_t maxValue)
 
static uint32_t ECAP_observedMinValue (uint32_t base, uint32_t munit)
 
static uint32_t ECAP_observedMaxValue (uint32_t base, uint32_t munit)
 
void ECAP_setEmulationMode (uint32_t base, ECAP_EmulationMode mode)
 

Enumerations

enum  ECAP_EmulationMode { ECAP_EMULATION_STOP = 0x0U, ECAP_EMULATION_RUN_TO_ZERO = 0x1U, ECAP_EMULATION_FREE_RUN = 0x2U }
 
enum  ECAP_CaptureMode { ECAP_CONTINUOUS_CAPTURE_MODE = 0U, ECAP_ONE_SHOT_CAPTURE_MODE = 1U }
 
enum  ECAP_Events { ECAP_EVENT_1 = 0U, ECAP_EVENT_2 = 1U, ECAP_EVENT_3 = 2U, ECAP_EVENT_4 = 3U }
 
enum  ECAP_SyncOutMode { ECAP_SYNC_OUT_SYNCI = 0x00, ECAP_SYNC_OUT_COUNTER_PRD = 0x40, ECAP_SYNC_OUT_DISABLED = 0x80 }
 
enum  ECAP_APWMPolarity { ECAP_APWM_ACTIVE_HIGH = 0x000, ECAP_APWM_ACTIVE_LOW = 0x400 }
 
enum  ECAP_EventPolarity { ECAP_EVNT_RISING_EDGE = 0U, ECAP_EVNT_FALLING_EDGE = 1U }
 
enum  ECAP_InputCaptureSignals {
  ECAP_INPUT_FSI_RX0_TRIG_0 = 0, ECAP_INPUT_FSI_RX0_TRIG_1 = 1, ECAP_INPUT_FSI_RX0_TRIG_2 = 2, ECAP_INPUT_FSI_RX0_TRIG_3 = 3,
  ECAP_INPUT_FSI_RX1_TRIG_0 = 4, ECAP_INPUT_FSI_RX1_TRIG_1 = 5, ECAP_INPUT_FSI_RX1_TRIG_2 = 6, ECAP_INPUT_FSI_RX1_TRIG_3 = 7,
  ECAP_INPUT_FSI_RX2_TRIG_0 = 8, ECAP_INPUT_FSI_RX2_TRIG_1 = 9, ECAP_INPUT_FSI_RX2_TRIG_2 = 10, ECAP_INPUT_FSI_RX2_TRIG_3 = 11,
  ECAP_INPUT_FSI_RX3_TRIG_0 = 12, ECAP_INPUT_FSI_RX3_TRIG_1 = 13, ECAP_INPUT_FSI_RX3_TRIG_2 = 14, ECAP_INPUT_FSI_RX3_TRIG_3 = 15,
  ECAP_INPUT_EQEP0_QI = 16, ECAP_INPUT_EQEP0_QS = 17, ECAP_INPUT_EQEP1_QI = 18, ECAP_INPUT_EQEP1_QS = 19,
  ECAP_INPUT_EQEP2_QI = 20, ECAP_INPUT_EQEP2_QS = 21, ECAP_INPUT_EPWM0_DELACTIVE = 22, ECAP_INPUT_EPWM1_DELACTIVE = 23,
  ECAP_INPUT_EPWM2_DELACTIVE = 24, ECAP_INPUT_EPWM3_DELACTIVE = 25, ECAP_INPUT_EPWM4_DELACTIVE = 26, ECAP_INPUT_EPWM5_DELACTIVE = 27,
  ECAP_INPUT_EPWM6_DELACTIVE = 28, ECAP_INPUT_EPWM7_DELACTIVE = 29, ECAP_INPUT_EPWM8_DELACTIVE = 30, ECAP_INPUT_EPWM9_DELACTIVE = 31,
  ECAP_INPUT_EPWM10_DELACTIVE = 32, ECAP_INPUT_EPWM11_DELACTIVE = 33, ECAP_INPUT_EPWM12_DELACTIVE = 34, ECAP_INPUT_EPWM13_DELACTIVE = 35,
  ECAP_INPUT_EPWM14_DELACTIVE = 36, ECAP_INPUT_EPWM15_DELACTIVE = 37, ECAP_INPUT_EPWM16_DELACTIVE = 38, ECAP_INPUT_EPWM17_DELACTIVE = 39,
  ECAP_INPUT_EPWM18_DELACTIVE = 40, ECAP_INPUT_EPWM19_DELACTIVE = 41, ECAP_INPUT_EPWM20_DELACTIVE = 42, ECAP_INPUT_EPWM21_DELACTIVE = 43,
  ECAP_INPUT_EPWM22_DELACTIVE = 44, ECAP_INPUT_EPWM23_DELACTIVE = 45, ECAP_INPUT_EPWM24_DELACTIVE = 46, ECAP_INPUT_EPWM25_DELACTIVE = 47,
  ECAP_INPUT_EPWM26_DELACTIVE = 48, ECAP_INPUT_EPWM27_DELACTIVE = 49, ECAP_INPUT_EPWM28_DELACTIVE = 50, ECAP_INPUT_EPWM29_DELACTIVE = 51,
  ECAP_INPUT_EPWM30_DELACTIVE = 52, ECAP_INPUT_EPWM31_DELACTIVE = 53, ECAP_INPUT_EPWM0_SOCA = 54, ECAP_INPUT_EPWM1_SOCA = 55,
  ECAP_INPUT_EPWM2_SOCA = 56, ECAP_INPUT_EPWM3_SOCA = 57, ECAP_INPUT_EPWM4_SOCA = 58, ECAP_INPUT_EPWM5_SOCA = 59,
  ECAP_INPUT_EPWM6_SOCA = 60, ECAP_INPUT_EPWM7_SOCA = 61, ECAP_INPUT_EPWM8_SOCA = 62, ECAP_INPUT_EPWM9_SOCA = 63,
  ECAP_INPUT_EPWM10_SOCA = 64, ECAP_INPUT_EPWM11_SOCA = 65, ECAP_INPUT_EPWM12_SOCA = 66, ECAP_INPUT_EPWM13_SOCA = 67,
  ECAP_INPUT_EPWM14_SOCA = 68, ECAP_INPUT_EPWM15_SOCA = 69, ECAP_INPUT_EPWM16_SOCA = 70, ECAP_INPUT_EPWM17_SOCA = 71,
  ECAP_INPUT_EPWM18_SOCA = 72, ECAP_INPUT_EPWM19_SOCA = 73, ECAP_INPUT_EPWM20_SOCA = 74, ECAP_INPUT_EPWM21_SOCA = 75,
  ECAP_INPUT_EPWM22_SOCA = 76, ECAP_INPUT_EPWM23_SOCA = 77, ECAP_INPUT_EPWM24_SOCA = 78, ECAP_INPUT_EPWM25_SOCA = 79,
  ECAP_INPUT_EPWM26_SOCA = 80, ECAP_INPUT_EPWM27_SOCA = 81, ECAP_INPUT_EPWM28_SOCA = 82, ECAP_INPUT_EPWM29_SOCA = 83,
  ECAP_INPUT_EPWM30_SOCA = 84, ECAP_INPUT_EPWM31_SOCA = 85, ECAP_INPUT_EPWM0_SOCB = 86, ECAP_INPUT_EPWM1_SOCB = 87,
  ECAP_INPUT_EPWM2_SOCB = 88, ECAP_INPUT_EPWM3_SOCB = 89, ECAP_INPUT_EPWM4_SOCB = 90, ECAP_INPUT_EPWM5_SOCB = 91,
  ECAP_INPUT_EPWM6_SOCB = 92, ECAP_INPUT_EPWM7_SOCB = 93, ECAP_INPUT_EPWM8_SOCB = 94, ECAP_INPUT_EPWM9_SOCB = 95,
  ECAP_INPUT_EPWM10_SOCB = 96, ECAP_INPUT_EPWM11_SOCB = 97, ECAP_INPUT_EPWM12_SOCB = 98, ECAP_INPUT_EPWM13_SOCB = 99,
  ECAP_INPUT_EPWM14_SOCB = 100, ECAP_INPUT_EPWM15_SOCB = 101, ECAP_INPUT_EPWM16_SOCB = 102, ECAP_INPUT_EPWM17_SOCB = 103,
  ECAP_INPUT_EPWM18_SOCB = 104, ECAP_INPUT_EPWM19_SOCB = 105, ECAP_INPUT_EPWM20_SOCB = 106, ECAP_INPUT_EPWM21_SOCB = 107,
  ECAP_INPUT_EPWM22_SOCB = 108, ECAP_INPUT_EPWM23_SOCB = 109, ECAP_INPUT_EPWM24_SOCB = 110, ECAP_INPUT_EPWM25_SOCB = 111,
  ECAP_INPUT_EPWM26_SOCB = 112, ECAP_INPUT_EPWM27_SOCB = 113, ECAP_INPUT_EPWM28_SOCB = 114, ECAP_INPUT_EPWM29_SOCB = 115,
  ECAP_INPUT_EPWM30_SOCB = 116, ECAP_INPUT_EPWM31_SOCB = 117, ECAP_INPUT_SDFM0_COMPARE1_HIGH = 118, ECAP_INPUT_SDFM0_COMPARE1_LOW = 119,
  ECAP_INPUT_SDFM0_COMPARE_Z1 = 120, ECAP_INPUT_SDFM0_COMPARE2_HIGH = 121, ECAP_INPUT_SDFM0_COMPARE2_LOW = 122, ECAP_INPUT_SDFM0_COMPARE_Z2 = 123,
  ECAP_INPUT_SDFM0_COMPARE3_HIGH = 124, ECAP_INPUT_SDFM0_COMPARE3_LOW = 125, ECAP_INPUT_SDFM0_COMPARE_Z3 = 126, ECAP_INPUT_SDFM0_COMPARE4_HIGH = 127,
  ECAP_INPUT_SDFM0_COMPARE4_LOW = 128, ECAP_INPUT_SDFM0_COMPARE_Z4 = 129, ECAP_INPUT_SDFM1_COMPARE1_HIGH = 130, ECAP_INPUT_SDFM1_COMPARE1_LOW = 131,
  ECAP_INPUT_SDFM1_COMPARE_Z1 = 132, ECAP_INPUT_SDFM1_COMPARE2_HIGH = 133, ECAP_INPUT_SDFM1_COMPARE2_LOW = 134, ECAP_INPUT_SDFM1_COMPARE_Z2 = 135,
  ECAP_INPUT_SDFM1_COMPARE3_HIGH = 136, ECAP_INPUT_SDFM1_COMPARE3_LOW = 137, ECAP_INPUT_SDFM1_COMPARE_Z3 = 138, ECAP_INPUT_SDFM1_COMPARE4_HIGH = 139,
  ECAP_INPUT_SDFM1_COMPARE4_LOW = 140, ECAP_INPUT_SDFM1_COMPARE_Z4 = 141, ECAP_INPUT_CMPSSA0_CTRIP_LOW = 142, ECAP_INPUT_CMPSSA0_CTRIP_HIGH = 143,
  ECAP_INPUT_CMPSSA1_CTRIP_LOW = 144, ECAP_INPUT_CMPSSA1_CTRIP_HIGH = 145, ECAP_INPUT_CMPSSA2_CTRIP_LOW = 146, ECAP_INPUT_CMPSSA2_CTRIP_HIGH = 147,
  ECAP_INPUT_CMPSSA3_CTRIP_LOW = 148, ECAP_INPUT_CMPSSA3_CTRIP_HIGH = 149, ECAP_INPUT_CMPSSA4_CTRIP_LOW = 150, ECAP_INPUT_CMPSSA4_CTRIP_HIGH = 151,
  ECAP_INPUT_CMPSSA5_CTRIP_LOW = 152, ECAP_INPUT_CMPSSA5_CTRIP_HIGH = 153, ECAP_INPUT_CMPSSA6_CTRIP_LOW = 154, ECAP_INPUT_CMPSSA6_CTRIP_HIGH = 155,
  ECAP_INPUT_CMPSSA7_CTRIP_LOW = 156, ECAP_INPUT_CMPSSA7_CTRIP_HIGH = 157, ECAP_INPUT_CMPSSA8_CTRIP_LOW = 158, ECAP_INPUT_CMPSSA8_CTRIP_HIGH = 159,
  ECAP_INPUT_CMPSSA9_CTRIP_LOW = 160, ECAP_INPUT_CMPSSA9_CTRIP_HIGH = 161, ECAP_INPUT_CMPSSB0_CTRIP_LOW = 162, ECAP_INPUT_CMPSSB0_CTRIP_HIGH = 163,
  ECAP_INPUT_CMPSSB1_CTRIP_LOW = 164, ECAP_INPUT_CMPSSB1_CTRIP_HIGH = 165, ECAP_INPUT_CMPSSB2_CTRIP_LOW = 166, ECAP_INPUT_CMPSSB2_CTRIP_HIGH = 167,
  ECAP_INPUT_CMPSSB3_CTRIP_LOW = 168, ECAP_INPUT_CMPSSB3_CTRIP_HIGH = 169, ECAP_INPUT_CMPSSB4_CTRIP_LOW = 170, ECAP_INPUT_CMPSSB4_CTRIP_HIGH = 171,
  ECAP_INPUT_CMPSSB5_CTRIP_LOW = 172, ECAP_INPUT_CMPSSB5_CTRIP_HIGH = 173, ECAP_INPUT_CMPSSB6_CTRIP_LOW = 174, ECAP_INPUT_CMPSSB6_CTRIP_HIGH = 175,
  ECAP_INPUT_CMPSSB7_CTRIP_LOW = 176, ECAP_INPUT_CMPSSB7_CTRIP_HIGH = 177, ECAP_INPUT_CMPSSB8_CTRIP_LOW = 178, ECAP_INPUT_CMPSSB8_CTRIP_HIGH = 179,
  ECAP_INPUT_CMPSSB9_CTRIP_LOW = 180, ECAP_INPUT_CMPSSB9_CTRIP_HIGH = 181, ECAP_INPUT_ADC0_EVT0 = 182, ECAP_INPUT_ADC0_EVT1 = 183,
  ECAP_INPUT_ADC0_EVT2 = 184, ECAP_INPUT_ADC0_EVT3 = 185, ECAP_INPUT_ADC1_EVT0 = 186, ECAP_INPUT_ADC1_EVT1 = 187,
  ECAP_INPUT_ADC1_EVT2 = 188, ECAP_INPUT_ADC1_EVT3 = 189, ECAP_INPUT_ADC2_EVT0 = 190, ECAP_INPUT_ADC2_EVT1 = 191,
  ECAP_INPUT_ADC2_EVT2 = 192, ECAP_INPUT_ADC2_EVT3 = 193, ECAP_INPUT_ADC3_EVT0 = 194, ECAP_INPUT_ADC3_EVT1 = 195,
  ECAP_INPUT_ADC3_EVT2 = 196, ECAP_INPUT_ADC3_EVT3 = 197, ECAP_INPUT_ADC4_EVT0 = 198, ECAP_INPUT_ADC4_EVT1 = 199,
  ECAP_INPUT_ADC4_EVT2 = 200, ECAP_INPUT_ADC4_EVT3 = 201, ECAP_INPUT_INPUTXBAR0 = 202, ECAP_INPUT_INPUTXBAR1 = 203,
  ECAP_INPUT_INPUTXBAR2 = 204, ECAP_INPUT_INPUTXBAR3 = 205, ECAP_INPUT_INPUTXBAR4 = 206, ECAP_INPUT_INPUTXBAR5 = 207,
  ECAP_INPUT_INPUTXBAR6 = 208, ECAP_INPUT_INPUTXBAR7 = 209, ECAP_INPUT_INPUTXBAR8 = 210, ECAP_INPUT_INPUTXBAR9 = 211,
  ECAP_INPUT_INPUTXBAR10 = 212, ECAP_INPUT_INPUTXBAR11 = 213, ECAP_INPUT_INPUTXBAR12 = 214, ECAP_INPUT_INPUTXBAR13 = 215,
  ECAP_INPUT_INPUTXBAR14 = 216, ECAP_INPUT_INPUTXBAR15 = 217, ECAP_INPUT_INPUTXBAR16 = 218, ECAP_INPUT_INPUTXBAR17 = 219,
  ECAP_INPUT_INPUTXBAR18 = 220, ECAP_INPUT_INPUTXBAR19 = 221, ECAP_INPUT_INPUTXBAR20 = 222, ECAP_INPUT_INPUTXBAR21 = 223,
  ECAP_INPUT_INPUTXBAR22 = 224, ECAP_INPUT_INPUTXBAR23 = 225, ECAP_INPUT_INPUTXBAR24 = 226, ECAP_INPUT_INPUTXBAR25 = 227,
  ECAP_INPUT_INPUTXBAR26 = 228, ECAP_INPUT_INPUTXBAR27 = 229, ECAP_INPUT_INPUTXBAR28 = 230, ECAP_INPUT_INPUTXBAR29 = 231,
  ECAP_INPUT_INPUTXBAR30 = 232, ECAP_INPUT_INPUTXBAR31 = 233
}
 
enum  ECAP_QualPeriodSelect {
  ECAP_PULSE_WIDTH_FILTER_BYPASS = 0x0, ECAP_PULSE_WIDTH_FILTER_CYCLE1 = 0x1, ECAP_PULSE_WIDTH_FILTER_CYCLE2 = 0x2, ECAP_PULSE_WIDTH_FILTER_CYCLE3 = 0x3,
  ECAP_PULSE_WIDTH_FILTER_CYCLE4 = 0x4, ECAP_PULSE_WIDTH_FILTER_CYCLE5 = 0x5, ECAP_PULSE_WIDTH_FILTER_CYCLE6 = 0x6, ECAP_PULSE_WIDTH_FILTER_CYCLE7 = 0x7,
  ECAP_PULSE_WIDTH_FILTER_CYCLE8 = 0x8, ECAP_PULSE_WIDTH_FILTER_CYCLE9 = 0x9, ECAP_PULSE_WIDTH_FILTER_CYCLE10 = 0xA, ECAP_PULSE_WIDTH_FILTER_CYCLE11 = 0xB,
  ECAP_PULSE_WIDTH_FILTER_CYCLE12 = 0xC, ECAP_PULSE_WIDTH_FILTER_CYCLE13 = 0xD, ECAP_PULSE_WIDTH_FILTER_CYCLE14 = 0xE, ECAP_PULSE_WIDTH_FILTER_CYCLE15 = 0xF
}
 
enum  ECAP_DmaTriggerSource {
  ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1 = 0, ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2 = 1, ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3 = 2, ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4 = 3,
  ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1, ECAP_APWM_MODE_DMA_TRIGGER_SRC_CMP = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2, ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD_CMP = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3, ECAP_APWM_MODE_DMA_TRIGGER_SRC_DISABLED = ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4
}
 
enum  ECAP_SocTriggerSource {
  ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1 = 0, ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2 = 1, ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3 = 2, ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4 = 3,
  ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1, ECAP_APWM_MODE_SOC_TRIGGER_SRC_CMP = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2, ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD_CMP = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3, ECAP_APWM_MODE_SOC_TRIGGER_SRC_DISABLED = ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4
}
 
enum  ECAP_SyncInPulseSource {
  ECAP_SYNC_IN_PULSE_SRC_DISABLE = 0x0, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0 = 0x1, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1 = 0x2, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2 = 0x3,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3 = 0x4, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4 = 0x5, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5 = 0x6, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6 = 0x7,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7 = 0x8, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8 = 0x9, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9 = 0xA, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10 = 0xB,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11 = 0xC, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12 = 0xD, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13 = 0xE, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14 = 0xF,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15 = 0x10, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16 = 0x11, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17 = 0x12, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18 = 0x13,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19 = 0x14, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20 = 0x15, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21 = 0x16, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22 = 0x17,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23 = 0x18, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24 = 0x19, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25 = 0x1A, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26 = 0x1B,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27 = 0x1C, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28 = 0x1D, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29 = 0x1E, ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30 = 0x1F,
  ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31 = 0x20
}
 
enum  ECAP_MonitoringTypeSelect {
  ECAP_MUNIT_HIGH_PULSE_WIDTH = 0U, ECAP_MUNIT_LOW_PULSE_WIDTH = 1U, ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE = 2U, ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL = 3U,
  ECAP_MUNIT_MONITOR_RISE_EDGE = 4U, ECAP_MUNIT_MONITOR_FALL_EDGE = 5U
}
 
enum  ECAP_MunitTripInputSelect {
  ECAP_MUNIT_TRIP_DISABLED = 0U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT0 = 1U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT1 = 2U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT2 = 3U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT3 = 4U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT4 = 5U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT5 = 6U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT6 = 7U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT7 = 8U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT8 = 9U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT9 = 10U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT10 = 11U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT11 = 12U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT12 = 13U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT13 = 14U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT14 = 15U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT15 = 16U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT16 = 17U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT17 = 18U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT18 = 19U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT19 = 20U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT20 = 21U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT21 = 22U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT22 = 23U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT23 = 24U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT24 = 25U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT25 = 26U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT26 = 27U,
  ECAP_MUNIT_TRIP_EPWM_XBAR_OUT27 = 28U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT28 = 29U, ECAP_MUNIT_TRIP_EPWM_XBAR_OUT29 = 30U, ECAP_MUNIT_TRIP_EPWM0_TRIPOUT = 32U,
  ECAP_MUNIT_TRIP_EPWM1_TRIPOUT = 33U, ECAP_MUNIT_TRIP_EPWM2_TRIPOUT = 34U, ECAP_MUNIT_TRIP_EPWM3_TRIPOUT = 35U, ECAP_MUNIT_TRIP_EPWM4_TRIPOUT = 36U,
  ECAP_MUNIT_TRIP_EPWM5_TRIPOUT = 37U, ECAP_MUNIT_TRIP_EPWM6_TRIPOUT = 38U, ECAP_MUNIT_TRIP_EPWM7_TRIPOUT = 39U, ECAP_MUNIT_TRIP_EPWM8_TRIPOUT = 40U,
  ECAP_MUNIT_TRIP_EPWM9_TRIPOUT = 41U, ECAP_MUNIT_TRIP_EPWM10_TRIPOUT = 42U, ECAP_MUNIT_TRIP_EPWM11_TRIPOUT = 43U, ECAP_MUNIT_TRIP_EPWM12_TRIPOUT = 44U,
  ECAP_MUNIT_TRIP_EPWM13_TRIPOUT = 45U, ECAP_MUNIT_TRIP_EPWM14_TRIPOUT = 46U, ECAP_MUNIT_TRIP_EPWM15_TRIPOUT = 47U, ECAP_MUNIT_TRIP_EPWM16_TRIPOUT = 48U,
  ECAP_MUNIT_TRIP_EPWM17_TRIPOUT = 49U, ECAP_MUNIT_TRIP_EPWM18_TRIPOUT = 50U, ECAP_MUNIT_TRIP_EPWM19_TRIPOUT = 51U, ECAP_MUNIT_TRIP_EPWM20_TRIPOUT = 52U,
  ECAP_MUNIT_TRIP_EPWM21_TRIPOUT = 53U, ECAP_MUNIT_TRIP_EPWM22_TRIPOUT = 54U, ECAP_MUNIT_TRIP_EPWM23_TRIPOUT = 55U, ECAP_MUNIT_TRIP_EPWM24_TRIPOUT = 56U,
  ECAP_MUNIT_TRIP_EPWM25_TRIPOUT = 57U, ECAP_MUNIT_TRIP_EPWM26_TRIPOUT = 58U, ECAP_MUNIT_TRIP_EPWM27_TRIPOUT = 59U, ECAP_MUNIT_TRIP_EPWM28_TRIPOUT = 60U,
  ECAP_MUNIT_TRIP_EPWM29_TRIPOUT = 61U, ECAP_MUNIT_TRIP_EPWM30_TRIPOUT = 62U, ECAP_MUNIT_TRIP_EPWM31_TRIPOUT = 63U
}
 Values that can be passed to ECAP_selectTripSignal() as the tripSel. More...
 
enum  ECAP_MunitGlobalStrobeSelect {
  ECAP_MUNIT_GLDSTRB_DISABLED = 0U, ECAP_MUNIT_GLDSTRB_EPWM0 = 1U, ECAP_MUNIT_GLDSTRB_EPWM1 = 2U, ECAP_MUNIT_GLDSTRB_EPWM2 = 3U,
  ECAP_MUNIT_GLDSTRB_EPWM3 = 4U, ECAP_MUNIT_GLDSTRB_EPWM4 = 5U, ECAP_MUNIT_GLDSTRB_EPWM5 = 6U, ECAP_MUNIT_GLDSTRB_EPWM6 = 7U,
  ECAP_MUNIT_GLDSTRB_EPWM7 = 8U, ECAP_MUNIT_GLDSTRB_EPWM8 = 9U, ECAP_MUNIT_GLDSTRB_EPWM9 = 10U, ECAP_MUNIT_GLDSTRB_EPWM10 = 11U,
  ECAP_MUNIT_GLDSTRB_EPWM11 = 12U, ECAP_MUNIT_GLDSTRB_EPWM12 = 13U, ECAP_MUNIT_GLDSTRB_EPWM13 = 14U, ECAP_MUNIT_GLDSTRB_EPWM14 = 15U,
  ECAP_MUNIT_GLDSTRB_EPWM15 = 16U, ECAP_MUNIT_GLDSTRB_EPWM16 = 17U, ECAP_MUNIT_GLDSTRB_EPWM17 = 18U, ECAP_MUNIT_GLDSTRB_EPWM18 = 19U,
  ECAP_MUNIT_GLDSTRB_EPWM19 = 20U, ECAP_MUNIT_GLDSTRB_EPWM20 = 21U, ECAP_MUNIT_GLDSTRB_EPWM21 = 22U, ECAP_MUNIT_GLDSTRB_EPWM22 = 23U,
  ECAP_MUNIT_GLDSTRB_EPWM23 = 24U, ECAP_MUNIT_GLDSTRB_EPWM24 = 25U, ECAP_MUNIT_GLDSTRB_EPWM25 = 26U, ECAP_MUNIT_GLDSTRB_EPWM26 = 27U,
  ECAP_MUNIT_GLDSTRB_EPWM27 = 28U, ECAP_MUNIT_GLDSTRB_EPWM28 = 29U, ECAP_MUNIT_GLDSTRB_EPWM29 = 30U, ECAP_MUNIT_GLDSTRB_EPWM30 = 31U,
  ECAP_MUNIT_GLDSTRB_EPWM31 = 32U
}
 Values that can be passed to ECAP_selectGlobalLoadStrobe() as the strobe. More...
 

Macros

#define ECAP_MUNIT_STEP   (CSL_ECAP_MUNIT_2_CTL - CSL_ECAP_MUNIT_1_CTL)
 Header Files. More...
 
#define ECAP_MAX_PRESCALER_VALUE   (32U)
 
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_1   (0x2U)
 Event 1 ISR source. More...
 
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_2   (0x4U)
 Event 2 ISR source. More...
 
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_3   (0x8U)
 Event 3 ISR source. More...
 
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_4   (0x10U)
 Event 4 ISR source. More...
 
#define ECAP_ISR_SOURCE_COUNTER_OVERFLOW   (0x20U)
 Counter overflow ISR source. More...
 
#define ECAP_ISR_SOURCE_COUNTER_PERIOD   (0x40U)
 Counter equals period ISR source. More...
 
#define ECAP_ISR_SOURCE_COUNTER_COMPARE   (0x80U)
 Counter equals compare ISR source. More...
 
#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1   (0x200U)
 Monitoring unit 1 error event 1 ISR source. More...
 
#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2   (0x400U)
 Monitoring unit 1 error event 2 ISR source. More...
 
#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1   (0x800U)
 Monitoring unit 2 error event 1 ISR source. More...
 
#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2   (0x1000U)
 Monitoring unit 2 error event 2 ISR source. More...
 
#define ECAP_ISR_SOURCE_ALL
 All ISR source. More...
 
#define ECAP_MONITORING_UNIT_1   0U
 ECAP Monitoring Unit 1. More...
 
#define ECAP_MONITORING_UNIT_2   1U
 ECAP Monitoring Unit 2. More...
 
#define ECAP_ACTIVE_LOAD_SYNC_EVT   0U
 Load on next sync event. More...
 
#define ECAP_ACTIVE_LOAD_GLDLCSTRB_EVT   1U
 Load on EPWM GLDLCSTRB event. More...
 

Macro Definition Documentation

◆ ECAP_MUNIT_STEP

#define ECAP_MUNIT_STEP   (CSL_ECAP_MUNIT_2_CTL - CSL_ECAP_MUNIT_1_CTL)

Header Files.

◆ ECAP_MAX_PRESCALER_VALUE

#define ECAP_MAX_PRESCALER_VALUE   (32U)

◆ ECAP_ISR_SOURCE_CAPTURE_EVENT_1

#define ECAP_ISR_SOURCE_CAPTURE_EVENT_1   (0x2U)

Event 1 ISR source.

◆ ECAP_ISR_SOURCE_CAPTURE_EVENT_2

#define ECAP_ISR_SOURCE_CAPTURE_EVENT_2   (0x4U)

Event 2 ISR source.

◆ ECAP_ISR_SOURCE_CAPTURE_EVENT_3

#define ECAP_ISR_SOURCE_CAPTURE_EVENT_3   (0x8U)

Event 3 ISR source.

◆ ECAP_ISR_SOURCE_CAPTURE_EVENT_4

#define ECAP_ISR_SOURCE_CAPTURE_EVENT_4   (0x10U)

Event 4 ISR source.

◆ ECAP_ISR_SOURCE_COUNTER_OVERFLOW

#define ECAP_ISR_SOURCE_COUNTER_OVERFLOW   (0x20U)

Counter overflow ISR source.

◆ ECAP_ISR_SOURCE_COUNTER_PERIOD

#define ECAP_ISR_SOURCE_COUNTER_PERIOD   (0x40U)

Counter equals period ISR source.

◆ ECAP_ISR_SOURCE_COUNTER_COMPARE

#define ECAP_ISR_SOURCE_COUNTER_COMPARE   (0x80U)

Counter equals compare ISR source.

◆ ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1

#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1   (0x200U)

Monitoring unit 1 error event 1 ISR source.

◆ ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2

#define ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2   (0x400U)

Monitoring unit 1 error event 2 ISR source.

◆ ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1

#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1   (0x800U)

Monitoring unit 2 error event 1 ISR source.

◆ ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2

#define ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2   (0x1000U)

Monitoring unit 2 error event 2 ISR source.

◆ ECAP_ISR_SOURCE_ALL

#define ECAP_ISR_SOURCE_ALL
Value:
ECAP_ISR_SOURCE_CAPTURE_EVENT_2 |\
ECAP_ISR_SOURCE_CAPTURE_EVENT_3 |\
ECAP_ISR_SOURCE_CAPTURE_EVENT_4 |\
ECAP_ISR_SOURCE_COUNTER_OVERFLOW |\
ECAP_ISR_SOURCE_COUNTER_PERIOD |\
ECAP_ISR_SOURCE_COUNTER_COMPARE |\
ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 |\
ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 |\
ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 |\
ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2)

All ISR source.

◆ ECAP_MONITORING_UNIT_1

#define ECAP_MONITORING_UNIT_1   0U

ECAP Monitoring Unit 1.

◆ ECAP_MONITORING_UNIT_2

#define ECAP_MONITORING_UNIT_2   1U

ECAP Monitoring Unit 2.

◆ ECAP_ACTIVE_LOAD_SYNC_EVT

#define ECAP_ACTIVE_LOAD_SYNC_EVT   0U

Load on next sync event.

Values that can be passed to ECAP_selectShadowLoadMode() as the loadMode parameter.

◆ ECAP_ACTIVE_LOAD_GLDLCSTRB_EVT

#define ECAP_ACTIVE_LOAD_GLDLCSTRB_EVT   1U

Load on EPWM GLDLCSTRB event.

Enumeration Type Documentation

◆ ECAP_EmulationMode

Values that can be passed to ECAP_setEmulationMode() as the mode parameter.

Enumerator
ECAP_EMULATION_STOP 

TSCTR is stopped on emulation suspension.

ECAP_EMULATION_RUN_TO_ZERO 

TSCTR runs until 0 before stopping on emulation suspension.

ECAP_EMULATION_FREE_RUN 

TSCTR is not affected by emulation suspension.

◆ ECAP_CaptureMode

Values that can be passed to ECAP_setCaptureMode() as the mode parameter.

Enumerator
ECAP_CONTINUOUS_CAPTURE_MODE 

eCAP operates in continuous capture mode

ECAP_ONE_SHOT_CAPTURE_MODE 

eCAP operates in one shot capture mode

◆ ECAP_Events

Values that can be passed to ECAP_setEventPolarity(),ECAP_setCaptureMode(), ECAP_enableCounterResetOnEvent(),ECAP_disableCounterResetOnEvent(), ECAP_getEventTimeStamp() as the event parameter.

Enumerator
ECAP_EVENT_1 

eCAP event 1 in capture mode

ECAP_EVENT_2 

eCAP event 2 in capture mode

ECAP_EVENT_3 

eCAP event 3 in capture mode

ECAP_EVENT_4 

eCAP event 4

◆ ECAP_SyncOutMode

Values that can be passed to ECAP_setSyncOutMode() as the mode parameter.

Enumerator
ECAP_SYNC_OUT_SYNCI 

sync out on the sync in signal and software force

ECAP_SYNC_OUT_COUNTER_PRD 

sync out on counter equals period

ECAP_SYNC_OUT_DISABLED 

Disable sync out signal.

◆ ECAP_APWMPolarity

Values that can be passed to ECAP_setAPWMPolarity() as the polarity parameter.

Enumerator
ECAP_APWM_ACTIVE_HIGH 

APWM is active high.

ECAP_APWM_ACTIVE_LOW 

APWM is active low.

◆ ECAP_EventPolarity

Values that can be passed to ECAP_setEventPolarity() as the polarity parameter.

Enumerator
ECAP_EVNT_RISING_EDGE 

Rising edge polarity.

ECAP_EVNT_FALLING_EDGE 

Falling edge polarity.

◆ ECAP_InputCaptureSignals

Values that can be passed to ECAP_selectECAPInput() as the input parameter.

Enumerator
ECAP_INPUT_FSI_RX0_TRIG_0 

Capture input is FSI_RX0 Trigger 0.

ECAP_INPUT_FSI_RX0_TRIG_1 

Capture input is FSI_RX0 Trigger 1.

ECAP_INPUT_FSI_RX0_TRIG_2 

Capture input is FSI_RX0 Trigger 2.

ECAP_INPUT_FSI_RX0_TRIG_3 

Capture input is FSI_RX0 Trigger 3.

ECAP_INPUT_FSI_RX1_TRIG_0 

Capture input is FSI_RX1 Trigger 0.

ECAP_INPUT_FSI_RX1_TRIG_1 

Capture input is FSI_RX1 Trigger 1.

ECAP_INPUT_FSI_RX1_TRIG_2 

Capture input is FSI_RX1 Trigger 2.

ECAP_INPUT_FSI_RX1_TRIG_3 

Capture input is FSI_RX1 Trigger 3.

ECAP_INPUT_FSI_RX2_TRIG_0 

Capture input is FSI_RX2 Trigger 0.

ECAP_INPUT_FSI_RX2_TRIG_1 

Capture input is FSI_RX2 Trigger 1.

ECAP_INPUT_FSI_RX2_TRIG_2 

Capture input is FSI_RX2 Trigger 2.

ECAP_INPUT_FSI_RX2_TRIG_3 

Capture input is FSI_RX2 Trigger 3.

ECAP_INPUT_FSI_RX3_TRIG_0 

Capture input is FSI_RX3 Trigger 0.

ECAP_INPUT_FSI_RX3_TRIG_1 

Capture input is FSI_RX3 Trigger 1.

ECAP_INPUT_FSI_RX3_TRIG_2 

Capture input is FSI_RX3 Trigger 2.

ECAP_INPUT_FSI_RX3_TRIG_3 

Capture input is FSI_RX3 Trigger 3.

ECAP_INPUT_EQEP0_QI 

Capture input is EQEP0 QI Signal.

ECAP_INPUT_EQEP0_QS 

Capture input is EQEP0 QS Signal.

ECAP_INPUT_EQEP1_QI 

Capture input is EQEP1 QI Signal.

ECAP_INPUT_EQEP1_QS 

Capture input is EQEP1 QS Signal.

ECAP_INPUT_EQEP2_QI 

Capture input is EQEP2 QI Signal.

ECAP_INPUT_EQEP2_QS 

Capture input is EQEP2 QS Signal.

ECAP_INPUT_EPWM0_DELACTIVE 

Capture input is EPWM0 DEL ACTIVE Signal.

ECAP_INPUT_EPWM1_DELACTIVE 

Capture input is EPWM1 DEL ACTIVE Signal.

ECAP_INPUT_EPWM2_DELACTIVE 

Capture input is EPWM2 DEL ACTIVE Signal.

ECAP_INPUT_EPWM3_DELACTIVE 

Capture input is EPWM3 DEL ACTIVE Signal.

ECAP_INPUT_EPWM4_DELACTIVE 

Capture input is EPWM4 DEL ACTIVE Signal.

ECAP_INPUT_EPWM5_DELACTIVE 

Capture input is EPWM5 DEL ACTIVE Signal.

ECAP_INPUT_EPWM6_DELACTIVE 

Capture input is EPWM6 DEL ACTIVE Signal.

ECAP_INPUT_EPWM7_DELACTIVE 

Capture input is EPWM7 DEL ACTIVE Signal.

ECAP_INPUT_EPWM8_DELACTIVE 

Capture input is EPWM8 DEL ACTIVE Signal.

ECAP_INPUT_EPWM9_DELACTIVE 

Capture input is EPWM9 DEL ACTIVE Signal.

ECAP_INPUT_EPWM10_DELACTIVE 

Capture input is EPWM10 DEL ACTIVE Signal.

ECAP_INPUT_EPWM11_DELACTIVE 

Capture input is EPWM11 DEL ACTIVE Signal.

ECAP_INPUT_EPWM12_DELACTIVE 

Capture input is EPWM12 DEL ACTIVE Signal.

ECAP_INPUT_EPWM13_DELACTIVE 

Capture input is EPWM13 DEL ACTIVE Signal.

ECAP_INPUT_EPWM14_DELACTIVE 

Capture input is EPWM14 DEL ACTIVE Signal.

ECAP_INPUT_EPWM15_DELACTIVE 

Capture input is EPWM15 DEL ACTIVE Signal.

ECAP_INPUT_EPWM16_DELACTIVE 

Capture input is EPWM16 DEL ACTIVE Signal.

ECAP_INPUT_EPWM17_DELACTIVE 

Capture input is EPWM17 DEL ACTIVE Signal.

ECAP_INPUT_EPWM18_DELACTIVE 

Capture input is EPWM18 DEL ACTIVE Signal.

ECAP_INPUT_EPWM19_DELACTIVE 

Capture input is EPWM19 DEL ACTIVE Signal.

ECAP_INPUT_EPWM20_DELACTIVE 

Capture input is EPWM20 DEL ACTIVE Signal.

ECAP_INPUT_EPWM21_DELACTIVE 

Capture input is EPWM21 DEL ACTIVE Signal.

ECAP_INPUT_EPWM22_DELACTIVE 

Capture input is EPWM22 DEL ACTIVE Signal.

ECAP_INPUT_EPWM23_DELACTIVE 

Capture input is EPWM23 DEL ACTIVE Signal.

ECAP_INPUT_EPWM24_DELACTIVE 

Capture input is EPWM24 DEL ACTIVE Signal.

ECAP_INPUT_EPWM25_DELACTIVE 

Capture input is EPWM25 DEL ACTIVE Signal.

ECAP_INPUT_EPWM26_DELACTIVE 

Capture input is EPWM26 DEL ACTIVE Signal.

ECAP_INPUT_EPWM27_DELACTIVE 

Capture input is EPWM27 DEL ACTIVE Signal.

ECAP_INPUT_EPWM28_DELACTIVE 

Capture input is EPWM28 DEL ACTIVE Signal.

ECAP_INPUT_EPWM29_DELACTIVE 

Capture input is EPWM29 DEL ACTIVE Signal.

ECAP_INPUT_EPWM30_DELACTIVE 

Capture input is EPWM30 DEL ACTIVE Signal.

ECAP_INPUT_EPWM31_DELACTIVE 

Capture input is EPWM31 DEL ACTIVE Signal.

ECAP_INPUT_EPWM0_SOCA 

Capture input is EPWM0 SOC-A Signal.

ECAP_INPUT_EPWM1_SOCA 

Capture input is EPWM1 SOC-A Signal.

ECAP_INPUT_EPWM2_SOCA 

Capture input is EPWM2 SOC-A Signal.

ECAP_INPUT_EPWM3_SOCA 

Capture input is EPWM3 SOC-A Signal.

ECAP_INPUT_EPWM4_SOCA 

Capture input is EPWM4 SOC-A Signal.

ECAP_INPUT_EPWM5_SOCA 

Capture input is EPWM5 SOC-A Signal.

ECAP_INPUT_EPWM6_SOCA 

Capture input is EPWM6 SOC-A Signal.

ECAP_INPUT_EPWM7_SOCA 

Capture input is EPWM7 SOC-A Signal.

ECAP_INPUT_EPWM8_SOCA 

Capture input is EPWM8 SOC-A Signal.

ECAP_INPUT_EPWM9_SOCA 

Capture input is EPWM9 SOC-A Signal.

ECAP_INPUT_EPWM10_SOCA 

Capture input is EPWM10 SOC-A Signal.

ECAP_INPUT_EPWM11_SOCA 

Capture input is EPWM11 SOC-A Signal.

ECAP_INPUT_EPWM12_SOCA 

Capture input is EPWM12 SOC-A Signal.

ECAP_INPUT_EPWM13_SOCA 

Capture input is EPWM13 SOC-A Signal.

ECAP_INPUT_EPWM14_SOCA 

Capture input is EPWM14 SOC-A Signal.

ECAP_INPUT_EPWM15_SOCA 

Capture input is EPWM15 SOC-A Signal.

ECAP_INPUT_EPWM16_SOCA 

Capture input is EPWM16 SOC-A Signal.

ECAP_INPUT_EPWM17_SOCA 

Capture input is EPWM17 SOC-A Signal.

ECAP_INPUT_EPWM18_SOCA 

Capture input is EPWM18 SOC-A Signal.

ECAP_INPUT_EPWM19_SOCA 

Capture input is EPWM19 SOC-A Signal.

ECAP_INPUT_EPWM20_SOCA 

Capture input is EPWM20 SOC-A Signal.

ECAP_INPUT_EPWM21_SOCA 

Capture input is EPWM21 SOC-A Signal.

ECAP_INPUT_EPWM22_SOCA 

Capture input is EPWM22 SOC-A Signal.

ECAP_INPUT_EPWM23_SOCA 

Capture input is EPWM23 SOC-A Signal.

ECAP_INPUT_EPWM24_SOCA 

Capture input is EPWM24 SOC-A Signal.

ECAP_INPUT_EPWM25_SOCA 

Capture input is EPWM25 SOC-A Signal.

ECAP_INPUT_EPWM26_SOCA 

Capture input is EPWM26 SOC-A Signal.

ECAP_INPUT_EPWM27_SOCA 

Capture input is EPWM27 SOC-A Signal.

ECAP_INPUT_EPWM28_SOCA 

Capture input is EPWM28 SOC-A Signal.

ECAP_INPUT_EPWM29_SOCA 

Capture input is EPWM29 SOC-A Signal.

ECAP_INPUT_EPWM30_SOCA 

Capture input is EPWM30 SOC-A Signal.

ECAP_INPUT_EPWM31_SOCA 

Capture input is EPWM31 SOC-A Signal.

ECAP_INPUT_EPWM0_SOCB 

Capture input is EPWM0 SOC-B Signal.

ECAP_INPUT_EPWM1_SOCB 

Capture input is EPWM1 SOC-B Signal.

ECAP_INPUT_EPWM2_SOCB 

Capture input is EPWM2 SOC-B Signal.

ECAP_INPUT_EPWM3_SOCB 

Capture input is EPWM3 SOC-B Signal.

ECAP_INPUT_EPWM4_SOCB 

Capture input is EPWM4 SOC-B Signal.

ECAP_INPUT_EPWM5_SOCB 

Capture input is EPWM5 SOC-B Signal.

ECAP_INPUT_EPWM6_SOCB 

Capture input is EPWM6 SOC-B Signal.

ECAP_INPUT_EPWM7_SOCB 

Capture input is EPWM7 SOC-B Signal.

ECAP_INPUT_EPWM8_SOCB 

Capture input is EPWM8 SOC-B Signal.

ECAP_INPUT_EPWM9_SOCB 

Capture input is EPWM9 SOC-B Signal.

ECAP_INPUT_EPWM10_SOCB 

Capture input is EPWM10 SOC-B Signal.

ECAP_INPUT_EPWM11_SOCB 

Capture input is EPWM11 SOC-B Signal.

ECAP_INPUT_EPWM12_SOCB 

Capture input is EPWM12 SOC-B Signal.

ECAP_INPUT_EPWM13_SOCB 

Capture input is EPWM13 SOC-B Signal.

ECAP_INPUT_EPWM14_SOCB 

Capture input is EPWM14 SOC-B Signal.

ECAP_INPUT_EPWM15_SOCB 

Capture input is EPWM15 SOC-B Signal.

ECAP_INPUT_EPWM16_SOCB 

Capture input is EPWM16 SOC-B Signal.

ECAP_INPUT_EPWM17_SOCB 

Capture input is EPWM17 SOC-B Signal.

ECAP_INPUT_EPWM18_SOCB 

Capture input is EPWM18 SOC-B Signal.

ECAP_INPUT_EPWM19_SOCB 

Capture input is EPWM19 SOC-B Signal.

ECAP_INPUT_EPWM20_SOCB 

Capture input is EPWM20 SOC-B Signal.

ECAP_INPUT_EPWM21_SOCB 

Capture input is EPWM21 SOC-B Signal.

ECAP_INPUT_EPWM22_SOCB 

Capture input is EPWM22 SOC-B Signal.

ECAP_INPUT_EPWM23_SOCB 

Capture input is EPWM23 SOC-B Signal.

ECAP_INPUT_EPWM24_SOCB 

Capture input is EPWM24 SOC-B Signal.

ECAP_INPUT_EPWM25_SOCB 

Capture input is EPWM25 SOC-B Signal.

ECAP_INPUT_EPWM26_SOCB 

Capture input is EPWM26 SOC-B Signal.

ECAP_INPUT_EPWM27_SOCB 

Capture input is EPWM27 SOC-B Signal.

ECAP_INPUT_EPWM28_SOCB 

Capture input is EPWM28 SOC-B Signal.

ECAP_INPUT_EPWM29_SOCB 

Capture input is EPWM29 SOC-B Signal.

ECAP_INPUT_EPWM30_SOCB 

Capture input is EPWM30 SOC-B Signal.

ECAP_INPUT_EPWM31_SOCB 

Capture input is EPWM31 SOC-B Signal.

ECAP_INPUT_SDFM0_COMPARE1_HIGH 

Capture input is SDFM0 Compare1 High.

ECAP_INPUT_SDFM0_COMPARE1_LOW 

Capture input is SDFM0 Compare1 Low.

ECAP_INPUT_SDFM0_COMPARE_Z1 

Capture input is SDFM0 Compare Z1.

ECAP_INPUT_SDFM0_COMPARE2_HIGH 

Capture input is SDFM0 Compare2 High.

ECAP_INPUT_SDFM0_COMPARE2_LOW 

Capture input is SDFM0 Compare2 Low.

ECAP_INPUT_SDFM0_COMPARE_Z2 

Capture input is SDFM0 Compare Z2.

ECAP_INPUT_SDFM0_COMPARE3_HIGH 

Capture input is SDFM0 Compare3 High.

ECAP_INPUT_SDFM0_COMPARE3_LOW 

Capture input is SDFM0 Compare3 Low.

ECAP_INPUT_SDFM0_COMPARE_Z3 

Capture input is SDFM0 Compare Z3.

ECAP_INPUT_SDFM0_COMPARE4_HIGH 

Capture input is SDFM0 Compare4 High.

ECAP_INPUT_SDFM0_COMPARE4_LOW 

Capture input is SDFM0 Compare4 Low.

ECAP_INPUT_SDFM0_COMPARE_Z4 

Capture input is SDFM0 Compare Z4.

ECAP_INPUT_SDFM1_COMPARE1_HIGH 

Capture input is SDFM1 Compare1 High.

ECAP_INPUT_SDFM1_COMPARE1_LOW 

Capture input is SDFM1 Compare1 Low.

ECAP_INPUT_SDFM1_COMPARE_Z1 

Capture input is SDFM1 Compare Z1.

ECAP_INPUT_SDFM1_COMPARE2_HIGH 

Capture input is SDFM1 Compare2 High.

ECAP_INPUT_SDFM1_COMPARE2_LOW 

Capture input is SDFM1 Compare2 Low.

ECAP_INPUT_SDFM1_COMPARE_Z2 

Capture input is SDFM1 Compare Z2.

ECAP_INPUT_SDFM1_COMPARE3_HIGH 

Capture input is SDFM1 Compare3 High.

ECAP_INPUT_SDFM1_COMPARE3_LOW 

Capture input is SDFM1 Compare3 Low.

ECAP_INPUT_SDFM1_COMPARE_Z3 

Capture input is SDFM1 Compare Z3.

ECAP_INPUT_SDFM1_COMPARE4_HIGH 

Capture input is SDFM1 Compare4 High.

ECAP_INPUT_SDFM1_COMPARE4_LOW 

Capture input is SDFM1 Compare4 Low.

ECAP_INPUT_SDFM1_COMPARE_Z4 

Capture input is SDFM1 Compare Z4.

ECAP_INPUT_CMPSSA0_CTRIP_LOW 

Capture input is CMPSSA0 CTRIP_LOW.

ECAP_INPUT_CMPSSA0_CTRIP_HIGH 

Capture input is CMPSSA0 CTRIP_HIGH.

ECAP_INPUT_CMPSSA1_CTRIP_LOW 

Capture input is CMPSSA1 CTRIP_LOW.

ECAP_INPUT_CMPSSA1_CTRIP_HIGH 

Capture input is CMPSSA1 CTRIP_HIGH.

ECAP_INPUT_CMPSSA2_CTRIP_LOW 

Capture input is CMPSSA2 CTRIP_LOW.

ECAP_INPUT_CMPSSA2_CTRIP_HIGH 

Capture input is CMPSSA2 CTRIP_HIGH.

ECAP_INPUT_CMPSSA3_CTRIP_LOW 

Capture input is CMPSSA3 CTRIP_LOW.

ECAP_INPUT_CMPSSA3_CTRIP_HIGH 

Capture input is CMPSSA3 CTRIP_HIGH.

ECAP_INPUT_CMPSSA4_CTRIP_LOW 

Capture input is CMPSSA4 CTRIP_LOW.

ECAP_INPUT_CMPSSA4_CTRIP_HIGH 

Capture input is CMPSSA4 CTRIP_HIGH.

ECAP_INPUT_CMPSSA5_CTRIP_LOW 

Capture input is CMPSSA5 CTRIP_LOW.

ECAP_INPUT_CMPSSA5_CTRIP_HIGH 

Capture input is CMPSSA5 CTRIP_HIGH.

ECAP_INPUT_CMPSSA6_CTRIP_LOW 

Capture input is CMPSSA6 CTRIP_LOW.

ECAP_INPUT_CMPSSA6_CTRIP_HIGH 

Capture input is CMPSSA6 CTRIP_HIGH.

ECAP_INPUT_CMPSSA7_CTRIP_LOW 

Capture input is CMPSSA7 CTRIP_LOW.

ECAP_INPUT_CMPSSA7_CTRIP_HIGH 

Capture input is CMPSSA7 CTRIP_HIGH.

ECAP_INPUT_CMPSSA8_CTRIP_LOW 

Capture input is CMPSSA8 CTRIP_LOW.

ECAP_INPUT_CMPSSA8_CTRIP_HIGH 

Capture input is CMPSSA8 CTRIP_HIGH.

ECAP_INPUT_CMPSSA9_CTRIP_LOW 

Capture input is CMPSSA9 CTRIP_LOW.

ECAP_INPUT_CMPSSA9_CTRIP_HIGH 

Capture input is CMPSSA9 CTRIP_HIGH.

ECAP_INPUT_CMPSSB0_CTRIP_LOW 

Capture input is CMPSSB0 CTRIP_LOW.

ECAP_INPUT_CMPSSB0_CTRIP_HIGH 

Capture input is CMPSSB0 CTRIP_HIGH.

ECAP_INPUT_CMPSSB1_CTRIP_LOW 

Capture input is CMPSSB1 CTRIP_LOW.

ECAP_INPUT_CMPSSB1_CTRIP_HIGH 

Capture input is CMPSSB1 CTRIP_HIGH.

ECAP_INPUT_CMPSSB2_CTRIP_LOW 

Capture input is CMPSSB2 CTRIP_LOW.

ECAP_INPUT_CMPSSB2_CTRIP_HIGH 

Capture input is CMPSSB2 CTRIP_HIGH.

ECAP_INPUT_CMPSSB3_CTRIP_LOW 

Capture input is CMPSSB3 CTRIP_LOW.

ECAP_INPUT_CMPSSB3_CTRIP_HIGH 

Capture input is CMPSSB3 CTRIP_HIGH.

ECAP_INPUT_CMPSSB4_CTRIP_LOW 

Capture input is CMPSSB4 CTRIP_LOW.

ECAP_INPUT_CMPSSB4_CTRIP_HIGH 

Capture input is CMPSSB4 CTRIP_HIGH.

ECAP_INPUT_CMPSSB5_CTRIP_LOW 

Capture input is CMPSSB5 CTRIP_LOW.

ECAP_INPUT_CMPSSB5_CTRIP_HIGH 

Capture input is CMPSSB5 CTRIP_HIGH.

ECAP_INPUT_CMPSSB6_CTRIP_LOW 

Capture input is CMPSSB6 CTRIP_LOW.

ECAP_INPUT_CMPSSB6_CTRIP_HIGH 

Capture input is CMPSSB6 CTRIP_HIGH.

ECAP_INPUT_CMPSSB7_CTRIP_LOW 

Capture input is CMPSSB7 CTRIP_LOW.

ECAP_INPUT_CMPSSB7_CTRIP_HIGH 

Capture input is CMPSSB7 CTRIP_HIGH.

ECAP_INPUT_CMPSSB8_CTRIP_LOW 

Capture input is CMPSSB8 CTRIP_LOW.

ECAP_INPUT_CMPSSB8_CTRIP_HIGH 

Capture input is CMPSSB8 CTRIP_HIGH.

ECAP_INPUT_CMPSSB9_CTRIP_LOW 

Capture input is CMPSSB9 CTRIP_LOW.

ECAP_INPUT_CMPSSB9_CTRIP_HIGH 

Capture input is CMPSSB9 CTRIP_HIGH.

ECAP_INPUT_ADC0_EVT0 

Capture input is ADC0 Event 0.

ECAP_INPUT_ADC0_EVT1 

Capture input is ADC0 Event 1.

ECAP_INPUT_ADC0_EVT2 

Capture input is ADC0 Event 2.

ECAP_INPUT_ADC0_EVT3 

Capture input is ADC0 Event 3.

ECAP_INPUT_ADC1_EVT0 

Capture input is ADC1 Event 0.

ECAP_INPUT_ADC1_EVT1 

Capture input is ADC1 Event 1.

ECAP_INPUT_ADC1_EVT2 

Capture input is ADC1 Event 2.

ECAP_INPUT_ADC1_EVT3 

Capture input is ADC1 Event 3.

ECAP_INPUT_ADC2_EVT0 

Capture input is ADC2 Event 0.

ECAP_INPUT_ADC2_EVT1 

Capture input is ADC2 Event 1.

ECAP_INPUT_ADC2_EVT2 

Capture input is ADC2 Event 2.

ECAP_INPUT_ADC2_EVT3 

Capture input is ADC2 Event 3.

ECAP_INPUT_ADC3_EVT0 

Capture input is ADC3 Event 0.

ECAP_INPUT_ADC3_EVT1 

Capture input is ADC3 Event 1.

ECAP_INPUT_ADC3_EVT2 

Capture input is ADC3 Event 2.

ECAP_INPUT_ADC3_EVT3 

Capture input is ADC3 Event 3.

ECAP_INPUT_ADC4_EVT0 

Capture input is ADC4 Event 0.

ECAP_INPUT_ADC4_EVT1 

Capture input is ADC4 Event 1.

ECAP_INPUT_ADC4_EVT2 

Capture input is ADC4 Event 2.

ECAP_INPUT_ADC4_EVT3 

Capture input is ADC4 Event 3.

ECAP_INPUT_INPUTXBAR0 

Capture input is InputXBar Output 0.

ECAP_INPUT_INPUTXBAR1 

Capture input is InputXBar Output 1.

ECAP_INPUT_INPUTXBAR2 

Capture input is InputXBar Output 2.

ECAP_INPUT_INPUTXBAR3 

Capture input is InputXBar Output 3.

ECAP_INPUT_INPUTXBAR4 

Capture input is InputXBar Output 4.

ECAP_INPUT_INPUTXBAR5 

Capture input is InputXBar Output 5.

ECAP_INPUT_INPUTXBAR6 

Capture input is InputXBar Output 6.

ECAP_INPUT_INPUTXBAR7 

Capture input is InputXBar Output 7.

ECAP_INPUT_INPUTXBAR8 

Capture input is InputXBar Output 8.

ECAP_INPUT_INPUTXBAR9 

Capture input is InputXBar Output 9.

ECAP_INPUT_INPUTXBAR10 

Capture input is InputXBar Output 10.

ECAP_INPUT_INPUTXBAR11 

Capture input is InputXBar Output 11.

ECAP_INPUT_INPUTXBAR12 

Capture input is InputXBar Output 12.

ECAP_INPUT_INPUTXBAR13 

Capture input is InputXBar Output 13.

ECAP_INPUT_INPUTXBAR14 

Capture input is InputXBar Output 14.

ECAP_INPUT_INPUTXBAR15 

Capture input is InputXBar Output 15.

ECAP_INPUT_INPUTXBAR16 

Capture input is InputXBar Output 16.

ECAP_INPUT_INPUTXBAR17 

Capture input is InputXBar Output 17.

ECAP_INPUT_INPUTXBAR18 

Capture input is InputXBar Output 18.

ECAP_INPUT_INPUTXBAR19 

Capture input is InputXBar Output 19.

ECAP_INPUT_INPUTXBAR20 

Capture input is InputXBar Output 20.

ECAP_INPUT_INPUTXBAR21 

Capture input is InputXBar Output 21.

ECAP_INPUT_INPUTXBAR22 

Capture input is InputXBar Output 22.

ECAP_INPUT_INPUTXBAR23 

Capture input is InputXBar Output 23.

ECAP_INPUT_INPUTXBAR24 

Capture input is InputXBar Output 24.

ECAP_INPUT_INPUTXBAR25 

Capture input is InputXBar Output 25.

ECAP_INPUT_INPUTXBAR26 

Capture input is InputXBar Output 26.

ECAP_INPUT_INPUTXBAR27 

Capture input is InputXBar Output 27.

ECAP_INPUT_INPUTXBAR28 

Capture input is InputXBar Output 28.

ECAP_INPUT_INPUTXBAR29 

Capture input is InputXBar Output 29.

ECAP_INPUT_INPUTXBAR30 

Capture input is InputXBar Output 30.

ECAP_INPUT_INPUTXBAR31 

Capture input is InputXBar Output 31.

◆ ECAP_QualPeriodSelect

Values that can be passed to ECAP_selectQualPeriod() as the mode parameter.

Enumerator
ECAP_PULSE_WIDTH_FILTER_BYPASS 

Bypass.

ECAP_PULSE_WIDTH_FILTER_CYCLE1 

Pulse width less than 1 cycle.

ECAP_PULSE_WIDTH_FILTER_CYCLE2 

Pulse width less than 2 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE3 

Pulse width less than 3 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE4 

Pulse width less than 4 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE5 

Pulse width less than 5 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE6 

Pulse width less than 6 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE7 

Pulse width less than 7 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE8 

Pulse width less than 8 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE9 

Pulse width less than 9 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE10 

Pulse width less than 10 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE11 

Pulse width less than 11 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE12 

Pulse width less than 12 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE13 

Pulse width less than 13 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE14 

Pulse width less than 14 cycles.

ECAP_PULSE_WIDTH_FILTER_CYCLE15 

Pulse width less than 15 cycles.

◆ ECAP_DmaTriggerSource

Values that can be passed to ECAP_setDMASource() as the triggersource parameter.

Enumerator
ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT1 

eCAP event 1 as DMA trigger source in capture mode

ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT2 

eCAP event 2 as DMA trigger source in capture mode

ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT3 

eCAP event 3 as DMA trigger source in capture mode

ECAP_CAP_MODE_DMA_TRIGGER_SRC_CEVT4 

eCAP event 4 as DMA trigger source in capture mode

ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD 

eCAP PRD match as DMA trigger source in APWM mode

ECAP_APWM_MODE_DMA_TRIGGER_SRC_CMP 

eCAP CMP match as DMA trigger source in APWM mode

ECAP_APWM_MODE_DMA_TRIGGER_SRC_PRD_CMP 

eCAP PRD or CMP match as DMA trigger source in APWM mode

ECAP_APWM_MODE_DMA_TRIGGER_SRC_DISABLED 

eCAP DMA trigger source disabled in APWM mode

◆ ECAP_SocTriggerSource

Values that can be passed to ECAP_selectSocTriggerSource() as the triggersource parameter.

Enumerator
ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT1 

eCAP event 1 as ADC SOC trigger source in capture mode

ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT2 

eCAP event 2 as ADC SOC trigger source in capture mode

ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT3 

eCAP event 3 as ADC SOC trigger source in capture mode

ECAP_CAP_MODE_SOC_TRIGGER_SRC_CEVT4 

eCAP event 4 as ADC SOC trigger source in capture mode

ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD 

eCAP PRD match as ADC SOC trigger source in APWM mode

ECAP_APWM_MODE_SOC_TRIGGER_SRC_CMP 

eCAP CMP match as ADC SOC trigger source in APWM mode

ECAP_APWM_MODE_SOC_TRIGGER_SRC_PRD_CMP 

eCAP PRD or CMP match as ADC SOC trigger source in APWM mode

ECAP_APWM_MODE_SOC_TRIGGER_SRC_DISABLED 

eCAP ADC SOC trigger source disabled in APWM mode

◆ ECAP_SyncInPulseSource

Values that can be passed to ECAP_setSyncInPulseSource() as the mode parameter.

Enumerator
ECAP_SYNC_IN_PULSE_SRC_DISABLE 

Disable Sync-in.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0 

Sync-in source is EPWM0 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1 

Sync-in source is EPWM1 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2 

Sync-in source is EPWM2 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3 

Sync-in source is EPWM3 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4 

Sync-in source is EPWM4 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5 

Sync-in source is EPWM5 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6 

Sync-in source is EPWM6 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7 

Sync-in source is EPWM7 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8 

Sync-in source is EPWM8 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9 

Sync-in source is EPWM9 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10 

Sync-in source is EPWM10 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11 

Sync-in source is EPWM11 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12 

Sync-in source is EPWM12 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13 

Sync-in source is EPWM13 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14 

Sync-in source is EPWM14 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15 

Sync-in source is EPWM15 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16 

Sync-in source is EPWM16 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17 

Sync-in source is EPWM17 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18 

Sync-in source is EPWM18 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19 

Sync-in source is EPWM19 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20 

Sync-in source is EPWM20 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21 

Sync-in source is EPWM21 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22 

Sync-in source is EPWM22 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23 

Sync-in source is EPWM23 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24 

Sync-in source is EPWM24 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25 

Sync-in source is EPWM25 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26 

Sync-in source is EPWM26 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27 

Sync-in source is EPWM27 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28 

Sync-in source is EPWM28 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29 

Sync-in source is EPWM29 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30 

Sync-in source is EPWM30 sync-out signal.

ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31 

Sync-in source is EPWM31 sync-out signal.

◆ ECAP_MonitoringTypeSelect

Values that can be passed to ECAP_selectMonitoringType() as the monSel parameter.

Enumerator
ECAP_MUNIT_HIGH_PULSE_WIDTH 

High Pulse Width.

ECAP_MUNIT_LOW_PULSE_WIDTH 

Low Pulse Width.

ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE 

Period width from rise to rise.

ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL 

Period width from fall to fall.

ECAP_MUNIT_MONITOR_RISE_EDGE 

Monitor rise edge.

ECAP_MUNIT_MONITOR_FALL_EDGE 

Monitor fall edge.

◆ ECAP_MunitTripInputSelect

Values that can be passed to ECAP_selectTripSignal() as the tripSel.

Enumerator
ECAP_MUNIT_TRIP_DISABLED 

Disabled.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT0 

MUNIT trip source is PWMXBAR output 0.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT1 

MUNIT trip source is PWMXBAR output 1.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT2 

MUNIT trip source is PWMXBAR output 2.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT3 

MUNIT trip source is PWMXBAR output 3.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT4 

MUNIT trip source is PWMXBAR output 4.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT5 

MUNIT trip source is PWMXBAR output 5.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT6 

MUNIT trip source is PWMXBAR output 6.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT7 

MUNIT trip source is PWMXBAR output 7.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT8 

MUNIT trip source is PWMXBAR output 8.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT9 

MUNIT trip source is PWMXBAR output 9.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT10 

MUNIT trip source is PWMXBAR output 10.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT11 

MUNIT trip source is PWMXBAR output 11.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT12 

MUNIT trip source is PWMXBAR output 12.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT13 

MUNIT trip source is PWMXBAR output 13.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT14 

MUNIT trip source is PWMXBAR output 14.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT15 

MUNIT trip source is PWMXBAR output 15.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT16 

MUNIT trip source is PWMXBAR output 16.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT17 

MUNIT trip source is PWMXBAR output 17.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT18 

MUNIT trip source is PWMXBAR output 18.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT19 

MUNIT trip source is PWMXBAR output 19.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT20 

MUNIT trip source is PWMXBAR output 20.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT21 

MUNIT trip source is PWMXBAR output 21.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT22 

MUNIT trip source is PWMXBAR output 22.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT23 

MUNIT trip source is PWMXBAR output 23.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT24 

MUNIT trip source is PWMXBAR output 24.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT25 

MUNIT trip source is PWMXBAR output 25.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT26 

MUNIT trip source is PWMXBAR output 26.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT27 

MUNIT trip source is PWMXBAR output 27.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT28 

MUNIT trip source is PWMXBAR output 28.

ECAP_MUNIT_TRIP_EPWM_XBAR_OUT29 

MUNIT trip source is PWMXBAR output 29.

ECAP_MUNIT_TRIP_EPWM0_TRIPOUT 

MUNIT trip source is EPWM0 trip out signal.

ECAP_MUNIT_TRIP_EPWM1_TRIPOUT 

MUNIT trip source is EPWM1 trip out signal.

ECAP_MUNIT_TRIP_EPWM2_TRIPOUT 

MUNIT trip source is EPWM2 trip out signal.

ECAP_MUNIT_TRIP_EPWM3_TRIPOUT 

MUNIT trip source is EPWM3 trip out signal.

ECAP_MUNIT_TRIP_EPWM4_TRIPOUT 

MUNIT trip source is EPWM4 trip out signal.

ECAP_MUNIT_TRIP_EPWM5_TRIPOUT 

MUNIT trip source is EPWM5 trip out signal.

ECAP_MUNIT_TRIP_EPWM6_TRIPOUT 

MUNIT trip source is EPWM6 trip out signal.

ECAP_MUNIT_TRIP_EPWM7_TRIPOUT 

MUNIT trip source is EPWM7 trip out signal.

ECAP_MUNIT_TRIP_EPWM8_TRIPOUT 

MUNIT trip source is EPWM8 trip out signal.

ECAP_MUNIT_TRIP_EPWM9_TRIPOUT 

MUNIT trip source is EPWM9 trip out signal.

ECAP_MUNIT_TRIP_EPWM10_TRIPOUT 

MUNIT trip source is EPWM10 trip out signal.

ECAP_MUNIT_TRIP_EPWM11_TRIPOUT 

MUNIT trip source is EPWM11 trip out signal.

ECAP_MUNIT_TRIP_EPWM12_TRIPOUT 

MUNIT trip source is EPWM12 trip out signal.

ECAP_MUNIT_TRIP_EPWM13_TRIPOUT 

MUNIT trip source is EPWM13 trip out signal.

ECAP_MUNIT_TRIP_EPWM14_TRIPOUT 

MUNIT trip source is EPWM14 trip out signal.

ECAP_MUNIT_TRIP_EPWM15_TRIPOUT 

MUNIT trip source is EPWM15 trip out signal.

ECAP_MUNIT_TRIP_EPWM16_TRIPOUT 

MUNIT trip source is EPWM16 trip out signal.

ECAP_MUNIT_TRIP_EPWM17_TRIPOUT 

MUNIT trip source is EPWM17 trip out signal.

ECAP_MUNIT_TRIP_EPWM18_TRIPOUT 

MUNIT trip source is EPWM18 trip out signal.

ECAP_MUNIT_TRIP_EPWM19_TRIPOUT 

MUNIT trip source is EPWM19 trip out signal.

ECAP_MUNIT_TRIP_EPWM20_TRIPOUT 

MUNIT trip source is EPWM20 trip out signal.

ECAP_MUNIT_TRIP_EPWM21_TRIPOUT 

MUNIT trip source is EPWM21 trip out signal.

ECAP_MUNIT_TRIP_EPWM22_TRIPOUT 

MUNIT trip source is EPWM22 trip out signal.

ECAP_MUNIT_TRIP_EPWM23_TRIPOUT 

MUNIT trip source is EPWM23 trip out signal.

ECAP_MUNIT_TRIP_EPWM24_TRIPOUT 

MUNIT trip source is EPWM24 trip out signal.

ECAP_MUNIT_TRIP_EPWM25_TRIPOUT 

MUNIT trip source is EPWM25 trip out signal.

ECAP_MUNIT_TRIP_EPWM26_TRIPOUT 

MUNIT trip source is EPWM26 trip out signal.

ECAP_MUNIT_TRIP_EPWM27_TRIPOUT 

MUNIT trip source is EPWM27 trip out signal.

ECAP_MUNIT_TRIP_EPWM28_TRIPOUT 

MUNIT trip source is EPWM28 trip out signal.

ECAP_MUNIT_TRIP_EPWM29_TRIPOUT 

MUNIT trip source is EPWM29 trip out signal.

ECAP_MUNIT_TRIP_EPWM30_TRIPOUT 

MUNIT trip source is EPWM30 trip out signal.

ECAP_MUNIT_TRIP_EPWM31_TRIPOUT 

MUNIT trip source is EPWM31 trip out signal.

◆ ECAP_MunitGlobalStrobeSelect

Values that can be passed to ECAP_selectGlobalLoadStrobe() as the strobe.

Enumerator
ECAP_MUNIT_GLDSTRB_DISABLED 

Disabled.

ECAP_MUNIT_GLDSTRB_EPWM0 

MUNIT global load strobe is EPWM0's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM1 

MUNIT global load strobe is EPWM1's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM2 

MUNIT global load strobe is EPWM2's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM3 

MUNIT global load strobe is EPWM3's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM4 

MUNIT global load strobe is EPWM4's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM5 

MUNIT global load strobe is EPWM5's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM6 

MUNIT global load strobe is EPWM6's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM7 

MUNIT global load strobe is EPWM7's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM8 

MUNIT global load strobe is EPWM8's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM9 

MUNIT global load strobe is EPWM9's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM10 

MUNIT global load strobe is EPWM10's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM11 

MUNIT global load strobe is EPWM11's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM12 

MUNIT global load strobe is EPWM12's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM13 

MUNIT global load strobe is EPWM13's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM14 

MUNIT global load strobe is EPWM14's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM15 

MUNIT global load strobe is EPWM15's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM16 

MUNIT global load strobe is EPWM16's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM17 

MUNIT global load strobe is EPWM17's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM18 

MUNIT global load strobe is EPWM18's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM19 

MUNIT global load strobe is EPWM19's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM20 

MUNIT global load strobe is EPWM20's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM21 

MUNIT global load strobe is EPWM21's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM22 

MUNIT global load strobe is EPWM22's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM23 

MUNIT global load strobe is EPWM23's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM24 

MUNIT global load strobe is EPWM24's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM25 

MUNIT global load strobe is EPWM25's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM26 

MUNIT global load strobe is EPWM26's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM27 

MUNIT global load strobe is EPWM27's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM28 

MUNIT global load strobe is EPWM28's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM29 

MUNIT global load strobe is EPWM29's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM30 

MUNIT global load strobe is EPWM30's global load strobe.

ECAP_MUNIT_GLDSTRB_EPWM31 

MUNIT global load strobe is EPWM31's global load strobe.

Function Documentation

◆ ECAP_setEventPrescaler()

static void ECAP_setEventPrescaler ( uint32_t  base,
uint16_t  preScalerValue 
)
inlinestatic

Sets the input prescaler.

Parameters
baseis the base address of the ECAP module.
preScalerValueis the pre scaler value for ECAP input

This function divides the ECAP input scaler. The pre scale value is doubled inside the module. For example a preScalerValue of 5 will divide the scaler by 10. Use a value of 0 to divide the pre scaler by 1. The value of preScalerValue should be less than ECAP_MAX_PRESCALER_VALUE.

Returns
None.

◆ ECAP_setEventPolarity()

static void ECAP_setEventPolarity ( uint32_t  base,
ECAP_Events  event,
ECAP_EventPolarity  polarity 
)
inlinestatic

Sets the Capture event polarity.

Parameters
baseis the base address of the ECAP module.
eventis the event number.
polarityis the polarity of the event.

This function sets the polarity of a given event. The value of event is between ECAP_EVENT_1 and ECAP_EVENT_4 inclusive corresponding to the four available events.For each event the polarity value determines the edge on which the capture is activated. For a rising edge use a polarity value of ECAP_EVNT_RISING_EDGE and for a falling edge use a polarity of ECAP_EVNT_FALLING_EDGE.

Returns
None.

◆ ECAP_setCaptureMode()

static void ECAP_setCaptureMode ( uint32_t  base,
ECAP_CaptureMode  mode,
ECAP_Events  event 
)
inlinestatic

Sets the capture mode.

Parameters
baseis the base address of the ECAP module.
modeis the capture mode.
eventis the event number at which the counter stops or wraps.

This function sets the eCAP module to a continuous or one-shot mode. The value of mode should be either ECAP_CONTINUOUS_CAPTURE_MODE or ECAP_ONE_SHOT_CAPTURE_MODE corresponding to continuous or one-shot mode respectively.

The value of event determines the event number at which the counter stops (in one-shot mode) or the counter wraps (in continuous mode). The value of event should be between ECAP_EVENT_1 and ECAP_EVENT_4 corresponding to the valid event numbers.

Returns
None.

◆ ECAP_reArm()

static void ECAP_reArm ( uint32_t  base)
inlinestatic

Re-arms the eCAP module.

Parameters
baseis the base address of the ECAP module.

This function re-arms the eCAP module.

Returns
None.

◆ ECAP_enableInterrupt()

static void ECAP_enableInterrupt ( uint32_t  base,
uint16_t  intFlags 
)
inlinestatic

Enables interrupt source.

Parameters
baseis the base address of the ECAP module.
intFlagsis the interrupt source to be enabled.

This function sets and enables eCAP interrupt source. The following are valid interrupt sources.

  • ECAP_ISR_SOURCE_CAPTURE_EVENT_1 - Enables Event 1 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_2 - Enables Event 2 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_3 - Enables Event 3 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_4 - Enables Event 4 generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_OVERFLOW - Enables Counter overflow generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_PERIOD - Enables Counter equal period generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Enables Counter equal compare generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 - Enables Monitoring unit 1 error event 1 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 - Enables Monitoring unit 1 error event 2 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 - Enables Monitoring unit 2 error event 1 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 - Enables Monitoring unit 2 error event 2 generating interrupt
Returns
None.

◆ ECAP_disableInterrupt()

static void ECAP_disableInterrupt ( uint32_t  base,
uint16_t  intFlags 
)
inlinestatic

Disables interrupt source.

Parameters
baseis the base address of the ECAP module.
intFlagsis the interrupt source to be disabled.

This function clears and disables eCAP interrupt source. The following are valid interrupt sources.

  • ECAP_ISR_SOURCE_CAPTURE_EVENT_1 - Disables Event 1 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_2 - Disables Event 2 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_3 - Disables Event 3 generating interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_4 - Disables Event 4 generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_OVERFLOW - Disables Counter overflow generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_PERIOD - Disables Counter equal period generating interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Disables Counter equal compare generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 - Disables Monitoring unit 1 error event 1 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 - Disables Monitoring unit 1 error event 2 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 - Disables Monitoring unit 2 error event 1 generating interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 - Disables Monitoring unit 2 error event 2 generating interrupt
Returns
None.

◆ ECAP_getInterruptSource()

static uint16_t ECAP_getInterruptSource ( uint32_t  base)
inlinestatic

Returns the interrupt flag.

Parameters
baseis the base address of the ECAP module.

This function returns the eCAP interrupt flag. The following are valid interrupt sources corresponding to the eCAP interrupt flag.

Returns
Returns the eCAP interrupt that has occurred. The following are valid return values.
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_1 - Event 1 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_2 - Event 2 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_3 - Event 3 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_4 - Event 4 generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_OVERFLOW - Counter overflow generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_PERIOD - Counter equal period generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Counter equal compare generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Counter equal compare generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 - Monitoring unit 1 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 - Monitoring unit 1 error event 2 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 - Monitoring unit 2 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 - Monitoring unit 2 error event 2 generates interrupt
Note
- User can check if a combination of various interrupts have occurred by ORing the above return values.

◆ ECAP_getGlobalInterruptStatus()

static bool ECAP_getGlobalInterruptStatus ( uint32_t  base)
inlinestatic

Returns the Global interrupt flag.

Parameters
baseis the base address of the ECAP module.

This function returns the eCAP Global interrupt flag.

Returns
Returns true if there is a global eCAP interrupt, false otherwise.

◆ ECAP_clearInterrupt()

static void ECAP_clearInterrupt ( uint32_t  base,
uint16_t  intFlags 
)
inlinestatic

Clears interrupt flag.

Parameters
baseis the base address of the ECAP module.
intFlagsis the interrupt source.

This function clears eCAP interrupt flags. The following are valid interrupt sources.

  • ECAP_ISR_SOURCE_CAPTURE_EVENT_1 - Event 1 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_2 - Event 2 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_3 - Event 3 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_4 - Event 4 generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_OVERFLOW - Counter overflow generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_PERIOD - Counter equal period generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Counter equal compare generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 - Monitoring unit 1 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 - Monitoring unit 1 error event 2 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 - Monitoring unit 2 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 - Monitoring unit 2 error event 2 generates interrupt
Returns
None.

◆ ECAP_clearGlobalInterrupt()

static void ECAP_clearGlobalInterrupt ( uint32_t  base)
inlinestatic

Clears global interrupt flag

Parameters
baseis the base address of the ECAP module.

This function clears the global interrupt bit.

Returns
None.

◆ ECAP_forceInterrupt()

static void ECAP_forceInterrupt ( uint32_t  base,
uint16_t  intFlags 
)
inlinestatic

Forces interrupt source.

Parameters
baseis the base address of the ECAP module.
intFlagsis the interrupt source.

This function forces and enables eCAP interrupt source. The following are valid interrupt sources.

  • ECAP_ISR_SOURCE_CAPTURE_EVENT_1 - Event 1 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_2 - Event 2 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_3 - Event 3 generates interrupt
  • ECAP_ISR_SOURCE_CAPTURE_EVENT_4 - Event 4 generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_OVERFLOW - Counter overflow generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_PERIOD - Counter equal period generates interrupt
  • ECAP_ISR_SOURCE_COUNTER_COMPARE - Counter equal compare generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT1 - Monitoring unit 1 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_1_ERROR_EVT2 - Monitoring unit 1 error event 2 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT1 - Monitoring unit 2 error event 1 generates interrupt
  • ECAP_ISR_SOURCE_MUNIT_2_ERROR_EVT2 - Monitoring unit 2 error event 2 generates interrupt
Returns
None.

◆ ECAP_enableCaptureMode()

static void ECAP_enableCaptureMode ( uint32_t  base)
inlinestatic

Sets eCAP in Capture mode.

Parameters
baseis the base address of the ECAP module.

This function sets the eCAP module to operate in Capture mode.

Returns
None.

◆ ECAP_enableAPWMMode()

static void ECAP_enableAPWMMode ( uint32_t  base)
inlinestatic

Sets eCAP in APWM mode.

Parameters
baseis the base address of the ECAP module.

This function sets the eCAP module to operate in APWM mode.

Returns
None.

◆ ECAP_enableCounterResetOnEvent()

static void ECAP_enableCounterResetOnEvent ( uint32_t  base,
ECAP_Events  event 
)
inlinestatic

Enables counter reset on an event.

Parameters
baseis the base address of the ECAP module.
eventis the event number the time base gets reset.

This function enables the base timer, TSCTR, to be reset on capture event provided by the variable event. Valid inputs for event are ECAP_EVENT_1 to ECAP_EVENT_4.

Returns
None.

◆ ECAP_disableCounterResetOnEvent()

static void ECAP_disableCounterResetOnEvent ( uint32_t  base,
ECAP_Events  event 
)
inlinestatic

Disables counter reset on events.

Parameters
baseis the base address of the ECAP module.
eventis the event number the time base gets reset.

This function disables the base timer, TSCTR, from being reset on capture event provided by the variable event. Valid inputs for event are ECAP_EVENT_1 to ECAP_EVENT_4.

Returns
None.

◆ ECAP_enableTimeStampCapture()

static void ECAP_enableTimeStampCapture ( uint32_t  base)
inlinestatic

Enables time stamp capture.

Parameters
baseis the base address of the ECAP module.

This function enables time stamp count to be captured

Returns
None.

◆ ECAP_disableTimeStampCapture()

static void ECAP_disableTimeStampCapture ( uint32_t  base)
inlinestatic

Disables time stamp capture.

Parameters
baseis the base address of the ECAP module.

This function disables time stamp count to be captured

Returns
None.

◆ ECAP_setPhaseShiftCount()

static void ECAP_setPhaseShiftCount ( uint32_t  base,
uint32_t  shiftCount 
)
inlinestatic

Sets a phase shift value count.

Parameters
baseis the base address of the ECAP module.
shiftCountis the phase shift value.

This function writes a phase shift value to be loaded into the main time stamp counter.

Returns
None.

◆ ECAP_setSyncInPulseSource()

static void ECAP_setSyncInPulseSource ( uint32_t  base,
ECAP_SyncInPulseSource  source 
)
inlinestatic

Set up the source for sync-in pulse.

Parameters
baseis the base address of the ECAP module.
sourceis the sync-in pulse source.

This function set the sync out pulse mode. Valid values for mode are:

  • ECAP_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0-31 - sync-in pulse source can be any of the EPWM0-31 sync-out signal
    Returns
    None.

◆ ECAP_enableLoadCounter()

static void ECAP_enableLoadCounter ( uint32_t  base)
inlinestatic

Enable counter loading with phase shift value.

Parameters
baseis the base address of the ECAP module.

This function enables loading of the counter with the value present in the phase shift counter as defined by the ECAP_setPhaseShiftCount() function.

Returns
None.

◆ ECAP_disableLoadCounter()

static void ECAP_disableLoadCounter ( uint32_t  base)
inlinestatic

Disable counter loading with phase shift value.

Parameters
baseis the base address of the ECAP module.

This function disables loading of the counter with the value present in the phase shift counter as defined by the ECAP_setPhaseShiftCount() function.

Returns
None.

◆ ECAP_loadCounter()

static void ECAP_loadCounter ( uint32_t  base)
inlinestatic

Load time stamp counter

Parameters
baseis the base address of the ECAP module.

This function forces the value in the phase shift counter register to be loaded into Time stamp counter register. Make sure to enable loading of Time stamp counter by calling ECAP_enableLoadCounter() function before calling this function.

Returns
None.

◆ ECAP_setSyncOutMode()

static void ECAP_setSyncOutMode ( uint32_t  base,
ECAP_SyncOutMode  mode 
)
inlinestatic

Configures Sync out signal mode.

Parameters
baseis the base address of the ECAP module.
modeis the sync out mode.

This function sets the sync out mode. Valid parameters for mode are:

  • ECAP_SYNC_OUT_SYNCI - Trigger sync out on sync-in event.
  • ECAP_SYNC_OUT_COUNTER_PRD - Trigger sync out when counter equals period.
  • ECAP_SYNC_OUT_DISABLED - Disable sync out.
Returns
None.

◆ ECAP_stopCounter()

static void ECAP_stopCounter ( uint32_t  base)
inlinestatic

Stops Time stamp counter.

Parameters
baseis the base address of the ECAP module.

This function stops the time stamp counter.

Returns
None.

◆ ECAP_startCounter()

static void ECAP_startCounter ( uint32_t  base)
inlinestatic

Starts Time stamp counter.

Parameters
baseis the base address of the ECAP module.

This function starts the time stamp counter.

Returns
None.

◆ ECAP_setAPWMPolarity()

static void ECAP_setAPWMPolarity ( uint32_t  base,
ECAP_APWMPolarity  polarity 
)
inlinestatic

Set eCAP APWM polarity.

Parameters
baseis the base address of the ECAP module.
polarityis the polarity of APWM

This function sets the polarity of the eCAP in APWM mode. Valid inputs for polarity are:

  • ECAP_APWM_ACTIVE_HIGH - For active high.
  • ECAP_APWM_ACTIVE_LOW - For active low.
Returns
None.

◆ ECAP_setAPWMPeriod()

static void ECAP_setAPWMPeriod ( uint32_t  base,
uint32_t  periodCount 
)
inlinestatic

Set eCAP APWM period.

Parameters
baseis the base address of the ECAP module.
periodCountis the period count for APWM.

This function sets the period count of the APWM waveform. periodCount takes the actual count which is written to the register. The user is responsible for converting the desired frequency or time into the period count.

Returns
None.

◆ ECAP_setAPWMCompare()

static void ECAP_setAPWMCompare ( uint32_t  base,
uint32_t  compareCount 
)
inlinestatic

Set eCAP APWM on or off time count.

Parameters
baseis the base address of the ECAP module.
compareCountis the on or off count for APWM.

This function sets the on or off time count of the APWM waveform depending on the polarity of the output. If the output , as set by ECAP_setAPWMPolarity(), is active high then compareCount determines the on time. If the output is active low then compareCount determines the off time. compareCount takes the actual count which is written to the register. The user is responsible for converting the desired frequency or time into the appropriate count value.

Returns
None.

◆ ECAP_setAPWMShadowPeriod()

static void ECAP_setAPWMShadowPeriod ( uint32_t  base,
uint32_t  periodCount 
)
inlinestatic

Load eCAP APWM shadow period.

Parameters
baseis the base address of the ECAP module.
periodCountis the shadow period count for APWM.

This function sets the shadow period count of the APWM waveform. periodCount takes the actual count which is written to the register. The user is responsible for converting the desired frequency or time into the period count.

Returns
None.

◆ ECAP_setAPWMShadowCompare()

static void ECAP_setAPWMShadowCompare ( uint32_t  base,
uint32_t  compareCount 
)
inlinestatic

Set eCAP APWM shadow on or off time count.

Parameters
baseis the base address of the ECAP module.
compareCountis the on or off count for APWM.

This function sets the shadow on or off time count of the APWM waveform depending on the polarity of the output. If the output , as set by ECAP_setAPWMPolarity() , is active high then compareCount determines the on time. If the output is active low then compareCount determines the off time. compareCount takes the actual count which is written to the register. The user is responsible for converting the desired frequency or time into the appropriate count value.

Returns
None.

◆ ECAP_getTimeBaseCounter()

static uint32_t ECAP_getTimeBaseCounter ( uint32_t  base)
inlinestatic

Returns the time base counter value.

Parameters
baseis the base address of the ECAP module.

This function returns the time base counter value.

Returns
Returns the time base counter value.

◆ ECAP_getEventTimeStamp()

static uint32_t ECAP_getEventTimeStamp ( uint32_t  base,
ECAP_Events  event 
)
inlinestatic

Returns event time stamp.

Parameters
baseis the base address of the ECAP module.
eventis the event number.

This function returns the current time stamp count of the given event in capture and apwm mode. Valid values for event are ECAP_EVENT_1 to ECAP_EVENT_4.

In capture mode of operation - ECAP_EVENT_1 - Read CAP1 register ECAP_EVENT_2 - Read CAP2 register ECAP_EVENT_3 - Read CAP3 register ECAP_EVENT_4 - Read CAP4 register

In APWM mode of operation - ECAP_EVENT_1 - Read PRD ACTIVE register ECAP_EVENT_2 - Read CMP ACTIVE register ECAP_EVENT_3 - Read PRD SHADOW register ECAP_EVENT_4 - Read CMP SHADOW register

Returns
Event time stamp value or 0 if event is invalid.

◆ ECAP_selectECAPInput()

static void ECAP_selectECAPInput ( uint32_t  base,
ECAP_InputCaptureSignals  input 
)
inlinestatic

Select eCAP input.

Parameters
baseis the base address of the ECAP module.
inputis the eCAP input signal.

This function selects the eCAP input signal.

Please refer to the ECAP_InputCaptureSignals Enum for the valid values to be passed to input parameter.

Returns
None.

◆ ECAP_selectQualPeriod()

static void ECAP_selectQualPeriod ( uint32_t  base,
ECAP_QualPeriodSelect  width 
)
inlinestatic

Select qualification period to filter out noise

Parameters
baseis the base address of the ECAP module.
widthis the pulse width below which the pulse will be filtered out.

This function selects the qualification period to filter out pulses with width less than the mentioned number of cycles.

Please refer to the ECAP_QualPeriodSelect Enum for the valid values to be passed to width parameter.

Returns
None.

◆ ECAP_selectSocTriggerSource()

static void ECAP_selectSocTriggerSource ( uint32_t  base,
ECAP_SocTriggerSource  triggersource 
)
inlinestatic

Select ADC SOC event

Parameters
baseis the base address of the ECAP module.
triggersourceis the SOC Trigger source.

This function selects the ecap trigger source for ADC SOC event.

Please refer to the ECAP_SocTriggerSource Enum for the valid values to be passed to triggersource parameter.

Returns
None.

◆ ECAP_resetCounters()

static void ECAP_resetCounters ( uint32_t  base)
inlinestatic

Resets eCAP counters and flags.

Parameters
baseis the base address of the ECAP module.

This function resets the main counter (TSCTR register), event filter, modulo counter, capture events and counter overflow flags

Returns
None.

◆ ECAP_setDMASource()

static void ECAP_setDMASource ( uint32_t  base,
ECAP_DmaTriggerSource  triggersource 
)
inlinestatic

Sets the eCAP DMA source.

Parameters
baseis the base address of the ECAP module.
triggersourceis the eCAP event for the DMA

Please refer to the ECAP_DmaTriggerSource Enum for the valid values to be passed to triggersource parameter.

Returns
None.

◆ ECAP_getModuloCounterStatus()

static ECAP_Events ECAP_getModuloCounterStatus ( uint32_t  base)
inlinestatic

Return the Modulo counter status.

Parameters
baseis the base address of the ECAP module.

This function returns the modulo counter status, indicating which register gets loaded on the next capture event.

Returns
Returns an ECAP_EVENT_n value indicating that CAPn is the register to be loaded on the next event.

◆ ECAP_enableSignalMonitoringUnit()

static void ECAP_enableSignalMonitoringUnit ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Enable eCAP monitoring unit.

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function enables the eCAP signal monitoring unit. Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_disableSignalMonitoringUnit()

static void ECAP_disableSignalMonitoringUnit ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Disable eCAP monitoring unit.

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function disables the eCAP signal monitoring unit. Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_enableDebugRange()

static void ECAP_enableDebugRange ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Enables debug mode to capture range from min to max

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function enables the eCAP debug mode for signal monitoring. Range is captured in DEBUG_RANGE_MAX and DEBUG_RANGE_MIN registers.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_disableDebugRange()

static void ECAP_disableDebugRange ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Disables debug mode to capture range from min to max

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function disables the eCAP debug mode for signal monitoring.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_selectMonitoringType()

static void ECAP_selectMonitoringType ( uint32_t  base,
uint32_t  munit,
ECAP_MonitoringTypeSelect  monSel 
)
inlinestatic

Selects the type of monitoring

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
monSelis the type of monitoring to be selected.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • monSel:
    • ECAP_MUNIT_HIGH_PULSE_WIDTH - High Pulse Width
    • ECAP_MUNIT_LOW_PULSE_WIDTH - Low Pulse Width
    • ECAP_MUNIT_PERIOD_WIDTH_RISE_RISE - Period width from rise to rise
    • ECAP_MUNIT_PERIOD_WIDTH_FALL_FALL - Period width from fall to fall
    • ECAP_MUNIT_MONITOR_RISE_EDGE - Monitor rise edge
    • ECAP_MUNIT_MONITOR_FALL_EDGE - Monitor fall edge
Returns
None.

◆ ECAP_selectTripSignal()

static void ECAP_selectTripSignal ( uint32_t  base,
ECAP_MunitTripInputSelect  tripSel 
)
inlinestatic

Selects the trip signal to disable and enable monitoring automatically.

Parameters
baseis the base address of the ECAP signal monitoring module.
tripSelis the trip signal.

Valid values for the input variables are:

  • tripSel:
    • DISABLED
    • ECAP_MUNIT_TRIP_EPWM_XBAR_OUTn - n is 0-29
    • ECAP_MUNIT_TRIP_EPWMn_TRIPOUT - n is 0-31
Returns
None.

◆ ECAP_selectGlobalLoadStrobe()

static void ECAP_selectGlobalLoadStrobe ( uint32_t  base,
ECAP_MunitGlobalStrobeSelect  strobe 
)
inlinestatic

Selects the global load strobe to enable shadow to active loading

Parameters
baseis the base address of the ECAP signal monitoring module.
strobeis the type of monitoring to be selected.

Valid values for the input variables are:

  • strobe:
    • DISABLED
    • ECAP_MUNIT_GLDSTRB_EPWMn - n is 0-31
Returns
None.

◆ ECAP_enableShadowMinMaxRegisters()

static void ECAP_enableShadowMinMaxRegisters ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Enables shadowing for min and max registers

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function enables the shadowing feature for min and max registers.

Valid values for the input variable:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_disableShadowMinMaxRegisters()

static void ECAP_disableShadowMinMaxRegisters ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Disables shadowing for min and max registers

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function disables the shadowing feature for min and max registers.

Valid values for the input variable:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_enableSoftwareSync()

static void ECAP_enableSoftwareSync ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Enables software sync operation

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function enables the SW Sync to copy min and max values from shadow to active registers immediately if shadowing is enabled.

Valid values for the input variable:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
None.

◆ ECAP_selectShadowLoadMode()

static void ECAP_selectShadowLoadMode ( uint32_t  base,
uint32_t  munit,
uint32_t  loadMode 
)
inlinestatic

Selects the shadow to active load mode

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
loadModeis the shadow to active mode to be selected.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • loadMode:
    • ECAP_ACTIVE_LOAD_SYNC_EVT - Active loaded with shadow on next sync event
    • ECAP_ACTIVE_LOAD_GLDLCSTRB_EVT - Active loaded with shadow on EPWM GLDLCSTRB event
Returns
None.

◆ ECAP_configureMinValue()

static void ECAP_configureMinValue ( uint32_t  base,
uint32_t  munit,
uint32_t  minValue 
)
inlinestatic

Configure minimum value for monitoring

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
minValueis the minimum value for monitoring. Valid values for the input variables are:
  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • minValue:
    • Range from 0x0 to 0xFFFFFFFF
Returns
None.

◆ ECAP_configureMaxValue()

static void ECAP_configureMaxValue ( uint32_t  base,
uint32_t  munit,
uint32_t  maxValue 
)
inlinestatic

Configure maximum value for monitoring

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
maxValueis the maximum value for monitoring.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • maxValue:
    • Range from 0x0 to 0xFFFFFFFF
Returns
None.

◆ ECAP_configureShadowMinValue()

static void ECAP_configureShadowMinValue ( uint32_t  base,
uint32_t  munit,
uint32_t  minValue 
)
inlinestatic

Configure minimum value for shadow register

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
minValueis the minimum value for monitoring. Valid values for the input variables are:
  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • minValue:
    • Range from 0x0 to 0xFFFFFFFF
Returns
None.

◆ ECAP_configureShadowMaxValue()

static void ECAP_configureShadowMaxValue ( uint32_t  base,
uint32_t  munit,
uint32_t  maxValue 
)
inlinestatic

Configure maximum value for shadow register

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.
maxValueis the maximum value for monitoring.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
  • maxValue:
    • Range from 0x0 to 0xFFFFFFFF
Returns
None.

◆ ECAP_observedMinValue()

static uint32_t ECAP_observedMinValue ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Returns observed minimum value

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function returns the observed minimum value when the DEBUG_RANGE_EN bit is set to 1.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
returns the observed minimum value.

◆ ECAP_observedMaxValue()

static uint32_t ECAP_observedMaxValue ( uint32_t  base,
uint32_t  munit 
)
inlinestatic

Returns observed maximum value

Parameters
baseis the base address of the ECAP signal monitoring module.
munitis the monitoring unit, either 1 or 2.

This function returns the observed maximum value when the DEBUG_RANGE_EN bit is set to 1.

Valid values for the input variables are:

  • munit:
    • ECAP_MONITORING_UNIT_1 - ECAP Monitoring Unit 1
    • ECAP_MONITORING_UNIT_2 - ECAP Monitoring Unit 2
Returns
returns the observed maximum value.

◆ ECAP_setEmulationMode()

void ECAP_setEmulationMode ( uint32_t  base,
ECAP_EmulationMode  mode 
)

Configures emulation mode.

Parameters
baseis the base address of the ECAP module.
modeis the emulation mode.

This function configures the eCAP counter, TSCTR, to the desired emulation mode when emulation suspension occurs. Valid inputs for mode are:

  • ECAP_EMULATION_STOP - Counter is stopped immediately.
  • ECAP_EMULATION_RUN_TO_ZERO - Counter runs till it reaches 0.
  • ECAP_EMULATION_FREE_RUN - Counter is not affected.
Returns
None.
ECAP_ISR_SOURCE_CAPTURE_EVENT_1
#define ECAP_ISR_SOURCE_CAPTURE_EVENT_1
Event 1 ISR source.
Definition: ecap/v1/ecap.h:90