# EPWM Module

The ePWM (enhanced Pulse width Modulator) API provides a set of functions for configuring and using the ePWM module. The provided functions provide the capability to generate and alter PWM wave forms by providing access to the following ePWM sub-modules. * Time Base * Counter Compare * Action Qualifier * Dead Band Generator * Trip Zone * Event Trigger * Digital Compare

group `epwm_api`

  Defines

  `EPWM_O_XCMP` 0x0100U
  `EPWM_O_DE` 0x01C0U
  `EPWM_O_MINDB` 0x01E0U
  `EPWM_SYNC_OUT_SOURCE_M` ((uint16_t)EPWM_SYNCOUTEN_SWEN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_ZEROEN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_CMPBEN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_CMPCEN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_CMPDEN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_DCAEVT1EN

  |\

  (uint16_t)

  EPWM_SYNCOUTEN_DCBEVT1EN)
  `EPWM_SYNC_OUT_PULSE_ON_SOFTWARE` EPWM_SYNCOUTEN_SWEN

    Software force generated EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO` EPWM_SYNCOUTEN_ZEROEN

    Counter zero event generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B` EPWM_SYNCOUTEN_CMPBEN

    Counter equal to CMPB event generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C` EPWM_SYNCOUTEN_CMPCEN

    Counter equal to CMPC event generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D` EPWM_SYNCOUTEN_CMPDEN

    Counter equal to CMPD event generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC` EPWM_SYNCOUTEN_DCAEVT1EN

    DCA Event 1 Sync signal generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC` EPWM_SYNCOUTEN_DCBEVT1EN

    DCB Event 1 Sync signal generates EPWM sync-out pulse.

  `EPWM_SYNC_OUT_PULSE_ON_ALL` EPWM_SYNC_OUT_SOURCE_M

    Enable all the above sources.

  `EPWM_TIME_BASE_STATUS_COUNT_UP` 1U

    Time base counter is counting up

  `EPWM_TIME_BASE_STATUS_COUNT_DOWN` 0U

    Time base counter is counting down

  `EPWM_DB_INPUT_EPWMA` 0U

    Input signal is ePWMA

  `EPWM_DB_INPUT_EPWMB` 1U

    Input signal is ePWMB

  `EPWM_DB_INPUT_DB_RED` 2U

    Input signal is the output of Rising Edge delay

  `EPWM_TZ_SIGNAL_CBC1` 0x1U

    TZ1 Cycle By Cycle

  `EPWM_TZ_SIGNAL_CBC2` 0x2U

    TZ2 Cycle By Cycle

  `EPWM_TZ_SIGNAL_CBC3` 0x4U

    TZ3 Cycle By Cycle

  `EPWM_TZ_SIGNAL_CBC4` 0x8U

    TZ4 Cycle By Cycle

  `EPWM_TZ_SIGNAL_CBC5` 0x10U

    TZ5 Cycle By Cycle

  `EPWM_TZ_SIGNAL_CBC6` 0x20U

    TZ6 Cycle By Cycle

  `EPWM_TZ_SIGNAL_DCAEVT2` 0x40U

    DCAEVT2 Cycle By Cycle

  `EPWM_TZ_SIGNAL_DCBEVT2` 0x80U

    DCBEVT2 Cycle By Cycle

  `EPWM_TZ_SIGNAL_OSHT1` 0x100U

    One-shot TZ1

  `EPWM_TZ_SIGNAL_OSHT2` 0x200U

    One-shot TZ2

  `EPWM_TZ_SIGNAL_OSHT3` 0x400U

    One-shot TZ3

  `EPWM_TZ_SIGNAL_OSHT4` 0x800U

    One-shot TZ4

  `EPWM_TZ_SIGNAL_OSHT5` 0x1000U

    One-shot TZ5

  `EPWM_TZ_SIGNAL_OSHT6` 0x2000U

    One-shot TZ6

  `EPWM_TZ_SIGNAL_DCAEVT1` 0x4000U

    One-shot DCAEVT1

  `EPWM_TZ_SIGNAL_DCBEVT1` 0x8000U

    One-shot DCBEVT1

  `EPWM_XCMP_ACTIVE` 0x0U

    < XCMP set = Active

    Values that can be passed to EPWM_setXCMPActionQualifierAction() and EPWM_setXCMPShadowRepeatBufxCount() XCMP set = Shadow 1

  `EPWM_XCMP_SHADOW1` 0x1U

    XCMP set = Shadow 2.

  `EPWM_XCMP_SHADOW2` 0x2U

    XCMP set = Shadow 3.

  `EPWM_XCMP_SHADOW3` 0x3U
  `EPWM_MINDB_BLOCK_A` 0x0U

    Minimum Dead Band Block A.

    Values that can be passed to EPWM_invertMinimumDeadBandSignal(), EPWM_selectMinimumDeadBandAndOrLogic(), EPWM_selectMinimumDeadBandBlockingSignal(), EPWM_selectXbarInput(), EPWM_selectMinimumDeadBandReferenceSignal(), EPWM_getMinDeadBandDelay(), EPWM_setMinDeadBandDelay(), EPWM_enableIllegalComboLogic() and EPWM_setLutDecX() as the block parameter.

  `EPWM_MINDB_BLOCK_B` 0x1U

    Minimum Dead Band Block B.

  `EPWM_MINDB_REF_SIG` 0x0U

    Minimum Dead Band don’t invert reference signal.

    Values that can be passed to EPWM_invertMinimumDeadBandSignal() as the invert parameter.

  `EPWM_MINDB_REF_SIG_INVERT` 0x1U

    Minimum Dead invert reference signal.

  `EPWM_MINDB_POLSEL_INVERT_LOGICAL_AND` 0x0U

    Minimum Dead Band Invert and perform logical AND.

    Values that can be passed to EPWM_selectMinimumDeadBandAndOrLogic() as the logic parameter.

  `EPWM_MINDB_POLSEL_LOGICAL_OR` 0x1U

    Minimum Dead Band Block perform logical OR.

  `EPWM_MINDB_BLOCKING_SIGNAL_BYPASS` 0x0U

    Minimum Dead Band keep blocking signal.

    Values that can be passed to EPWM_selectMinimumDeadBandBlockingSignal() as the blockingSignal parameter.

  `EPWM_MINDB_BLOCKING_SIGNAL_SWAPBLOCK` 0x1U

    Minimum Dead Band swap blocking signal.

  `EPWM_MINDB_SEL_DEPWM` 0x0U

    Minimum Dead Band Reference signal.

    Values that can be passed to EPWM_selectMinimumDeadBandReferenceSignal() as the referenceSignal parameter.

  `EPWM_MINDB_SEL_OUTXBAR_OUT1` 0x1U

    Minimum Dead Band Reference Signal PWM Output Xbar 1.

  `EPWM_MINDB_SEL_OUTXBAR_OUT2` 0x2U

    Minimum Dead Band Reference Signal PWM Output Xbar 2.

  `EPWM_MINDB_SEL_OUTXBAR_OUT3` 0x3U

    Minimum Dead Band Reference Signal PWM Output Xbar 3.

  `EPWM_MINDB_SEL_OUTXBAR_OUT4` 0x4U

    Minimum Dead Band Reference Signal PWM Output Xbar 4.

  `EPWM_MINDB_SEL_OUTXBAR_OUT5` 0x5U

    Minimum Dead Band Reference Signal PWM Output Xbar 5.

  `EPWM_MINDB_SEL_OUTXBAR_OUT6` 0x6U

    Minimum Dead Band Reference Signal PWM Output Xbar 6.

  `EPWM_MINDB_SEL_OUTXBAR_OUT7` 0x7U

    Minimum Dead Band Reference Signal PWM Output Xbar 7.

  `EPWM_MINDB_SEL_OUTXBAR_OUT8` 0x8U

    Minimum Dead Band Reference Signal PWM Output Xbar 8.

  `EPWM_MINDB_SEL_OUTXBAR_OUT9` 0x9U

    Minimum Dead Band Reference Signal PWM Output Xbar 9.

  `EPWM_MINDB_SEL_OUTXBAR_OUT10` 0xAU

    Minimum Dead Band Reference Signal PWM Output Xbar 10.

  `EPWM_MINDB_SEL_OUTXBAR_OUT11` 0xBU

    Minimum Dead Band Reference Signal PWM Output Xbar 11.

  `EPWM_MINDB_SEL_OUTXBAR_OUT12` 0xCU

    Minimum Dead Band Reference Signal PWM Output Xbar 12.

  `EPWM_MINDB_SEL_OUTXBAR_OUT13` 0xDU

    Minimum Dead Band Reference Signal PWM Output Xbar 13.

  `EPWM_MINDB_SEL_OUTXBAR_OUT14` 0xEU

    Minimum Dead Band Reference Signal PWM Output Xbar 14.

  `EPWM_MINDB_SEL_OUTXBAR_OUT15` 0xFU

    Minimum Dead Band Reference Signal PWM Output Xbar 15.

  `EPWM_MINDB_ICL_XBAR_OUT1` 0x0U

    ICL Xbar Out 1.

    Values that can be passed to EPWM_selectXbarInput() as the xbarInput parameter.

  `EPWM_MINDB_ICL_XBAR_OUT2` 0x1U

    ICL Xbar Out 2.

  `EPWM_MINDB_ICL_XBAR_OUT3` 0x2U

    ICL Xbar Out 3.

  `EPWM_MINDB_ICL_XBAR_OUT4` 0x3U

    ICL Xbar Out 4.

  `EPWM_MINDB_ICL_XBAR_OUT5` 0x4U

    ICL Xbar Out 5.

  `EPWM_MINDB_ICL_XBAR_OUT6` 0x5U

    ICL Xbar Out 6.

  `EPWM_MINDB_ICL_XBAR_OUT7` 0x6U

    ICL Xbar Out 7.

  `EPWM_MINDB_ICL_XBAR_OUT8` 0x7U

    ICL Xbar Out 8.

  `EPWM_MINDB_ICL_XBAR_OUT9` 0x8U

    ICL Xbar Out 9.

  `EPWM_MINDB_ICL_XBAR_OUT10` 0x9U

    ICL Xbar Out 10.

  `EPWM_MINDB_ICL_XBAR_OUT11` 0xAU

    ICL Xbar Out 11.

  `EPWM_MINDB_ICL_XBAR_OUT12` 0xBU

    ICL Xbar Out 12.

  `EPWM_MINDB_ICL_XBAR_OUT13` 0xCU

    ICL Xbar Out 13.

  `EPWM_MINDB_ICL_XBAR_OUT14` 0xDU

    ICL Xbar Out 14.

  `EPWM_MINDB_ICL_XBAR_OUT15` 0xEU

    ICL Xbar Out 15.

  `EPWM_MINDB_ICL_XBAR_OUT16` 0xFU

    ICL Xbar Out 16.

  `EPWM_MINDB_ICL_LUT_DEC0` 0

    Values that can be passed to EPWM_setLutDecX() as the decx parameter.

    LUT output PWMA/B value on decoding 0

  `EPWM_MINDB_ICL_LUT_DEC1` 1

    LUT output PWMA/B value on decoding 1.

  `EPWM_MINDB_ICL_LUT_DEC2` 2

    LUT output PWMA/B value on decoding 2.

  `EPWM_MINDB_ICL_LUT_DEC3` 3

    LUT output PWMA/B value on decoding 3.

  `EPWM_MINDB_ICL_LUT_DEC4` 4

    LUT output PWMA/B value on decoding 4.

  `EPWM_MINDB_ICL_LUT_DEC5` 5

    LUT output PWMA/B value on decoding 5.

  `EPWM_MINDB_ICL_LUT_DEC6` 6

    LUT output PWMA/B value on decoding 6.

  `EPWM_MINDB_ICL_LUT_DEC7` 7

    LUT output PWMA/B value on decoding 7.

  `EPWM_DE_SRC_TRIPL` 0x1U

    Diode emulation Trip L.

    Values that can be passed to EPWM_configureDiodeEmulationTripSources() as the tripLorH parameter.

  `EPWM_DE_SRC_TRIPH` 0x0U

    Diode emulation Trip H.

  `EPWM_DE_CHANNEL_A` 0x0U

    Diode emulation channel A.

    Values that can be passed to EPWM_selectDiodeEmulationPWMsignal() and EPWM_selectDiodeEmulationTripSignal() as the signal parameter.

  `EPWM_DE_CHANNEL_B` 0x1U

    Diode emulation channel B.

  `EPWM_DE_COUNT_UP` 0x0U

    Diode emulation count up step size.

    Values that can be passed to EPWM_setDiodeEmulationMonitorModeStep() as the direction parameter.

  `EPWM_DE_COUNT_DOWN` 0x1U

    Diode emulation count down step size.

  `EPWM_TZ_INTERRUPT_CBC` 0x2U

    Trip Zones Cycle By Cycle interrupt

  `EPWM_TZ_INTERRUPT_OST` 0x4U

    Trip Zones One Shot interrupt

  `EPWM_TZ_INTERRUPT_DCAEVT1` 0x8U

    Digital Compare A Event 1 interrupt

  `EPWM_TZ_INTERRUPT_DCAEVT2` 0x10U

    Digital Compare A Event 2 interrupt

  `EPWM_TZ_INTERRUPT_DCBEVT1` 0x20U

    Digital Compare B Event 1 interrupt

  `EPWM_TZ_INTERRUPT_DCBEVT2` 0x40U

    Digital Compare B Event 2 interrupt

  `EPWM_TZ_INTERRUPT_CAPEVT` 0x80U

    Trip Zones Capture Event interrupt

  `EPWM_TZ_FLAG_CBC` 0x2U

    Trip Zones Cycle By Cycle flag

  `EPWM_TZ_FLAG_OST` 0x4U

    Trip Zones One Shot flag

  `EPWM_TZ_FLAG_DCAEVT1` 0x8U

    Digital Compare A Event 1 flag

  `EPWM_TZ_FLAG_DCAEVT2` 0x10U

    Digital Compare A Event 2 flag

  `EPWM_TZ_FLAG_DCBEVT1` 0x20U

    Digital Compare B Event 1 flag

  `EPWM_TZ_FLAG_DCBEVT2` 0x40U

    Digital Compare B Event 2 flag

  `EPWM_TZ_FLAG_CAPEVT` 0x80U

    Trip Zones Capture Event flag

  `EPWM_TZ_INTERRUPT` 0x1U

    Trip Zone interrupt

  `EPWM_TZ_CBC_FLAG_1` 0x1U

    CBC flag 1

  `EPWM_TZ_CBC_FLAG_2` 0x2U

    CBC flag 2

  `EPWM_TZ_CBC_FLAG_3` 0x4U

    CBC flag 3

  `EPWM_TZ_CBC_FLAG_4` 0x8U

    CBC flag 4

  `EPWM_TZ_CBC_FLAG_5` 0x10U

    CBC flag 5

  `EPWM_TZ_CBC_FLAG_6` 0x20U

    CBC flag 6

  `EPWM_TZ_CBC_FLAG_DCAEVT2` 0x40U

    CBC flag Digital compare event A2

  `EPWM_TZ_CBC_FLAG_DCBEVT2` 0x80U

    CBC flag Digital compare event B2

  `EPWM_TZ_CBC_FLAG_CAPEVT` 0x100U

    CBC flag capture event

  `EPWM_TZ_OST_FLAG_OST1` 0x1U

    OST flag OST1

  `EPWM_TZ_OST_FLAG_OST2` 0x2U

    OST flag OST2

  `EPWM_TZ_OST_FLAG_OST3` 0x4U

    OST flag OST3

  `EPWM_TZ_OST_FLAG_OST4` 0x8U

    OST flag OST4

  `EPWM_TZ_OST_FLAG_OST5` 0x10U

    OST flag OST5

  `EPWM_TZ_OST_FLAG_OST6` 0x20U

    OST flag OST6

  `EPWM_TZ_OST_FLAG_DCAEVT1` 0x40U

    OST flag Digital compare event A1

  `EPWM_TZ_OST_FLAG_DCBEVT1` 0x80U

    OST flag Digital compare event B1

  `EPWM_TZ_OST_FLAG_CAPEVT` 0x100U

    OST flag capture event

  `EPWM_TZ_FORCE_EVENT_CBC` 0x2U

    Force Cycle By Cycle trip event

  `EPWM_TZ_FORCE_EVENT_OST` 0x4U

    Force a One-Shot Trip Event

  `EPWM_TZ_FORCE_EVENT_DCAEVT1` 0x8U

    Force Digital Compare Output A Event 1

  `EPWM_TZ_FORCE_EVENT_DCAEVT2` 0x10U

    Force Digital Compare Output A Event 2

  `EPWM_TZ_FORCE_EVENT_DCBEVT1` 0x20U

    Force Digital Compare Output B Event 1

  `EPWM_TZ_FORCE_EVENT_DCBEVT2` 0x40U

    Force Digital Compare Output B Event 2

  `EPWM_TZ_FORCE_EVENT_CAPEVT` 0x80U

    Force a Capture Event

  `EPWM_INT_TBCTR_DISABLED` 0U

    Time-base counter is disabled

  `EPWM_INT_TBCTR_ZERO` 1U

    Time-base counter equal to zero

  `EPWM_INT_TBCTR_PERIOD` 2U

    Time-base counter equal to period

  `EPWM_INT_TBCTR_ETINTMIX` 3U

    Time-base counter based on mixed events (ETINTMIX)

  `EPWM_INT_TBCTR_U_CMPA` 4U

    time-base counter equal to CMPA when the timer is incrementing

  `EPWM_INT_TBCTR_U_CMPC` 8U

    time-base counter equal to CMPC when the timer is incrementing

  `EPWM_INT_TBCTR_D_CMPA` 5U

    time-base counter equal to CMPA when the timer is decrementing

  `EPWM_INT_TBCTR_D_CMPC` 10U

    time-base counter equal to CMPC when the timer is decrementing

  `EPWM_INT_TBCTR_U_CMPB` 6U

    time-base counter equal to CMPB when the timer is incrementing

  `EPWM_INT_TBCTR_U_CMPD` 12U

    time-base counter equal to CMPD when the timer is incrementing

  `EPWM_INT_TBCTR_D_CMPB` 7U

    time-base counter equal to CMPB when the timer is decrementing

  `EPWM_INT_TBCTR_D_CMPD` 14U

    time-base counter equal to CMPD when the timer is decrementing

  `EPWM_DC_COMBINATIONAL_TRIPIN1` 0x1U

    Combinational Trip 1 input

  `EPWM_DC_COMBINATIONAL_TRIPIN2` 0x2U

    Combinational Trip 2 input

  `EPWM_DC_COMBINATIONAL_TRIPIN3` 0x4U

    Combinational Trip 3 input

  `EPWM_DC_COMBINATIONAL_TRIPIN4` 0x8U

    Combinational Trip 4 input

  `EPWM_DC_COMBINATIONAL_TRIPIN5` 0x10U

    Combinational Trip 5 input

  `EPWM_DC_COMBINATIONAL_TRIPIN6` 0x20U

    Combinational Trip 6 input

  `EPWM_DC_COMBINATIONAL_TRIPIN7` 0x40U

    Combinational Trip 7 input

  `EPWM_DC_COMBINATIONAL_TRIPIN8` 0x80U

    Combinational Trip 8 input

  `EPWM_DC_COMBINATIONAL_TRIPIN9` 0x100U

    Combinational Trip 9 input

  `EPWM_DC_COMBINATIONAL_TRIPIN10` 0x200U

    Combinational Trip 10 input

  `EPWM_DC_COMBINATIONAL_TRIPIN11` 0x400U

    Combinational Trip 11 input

  `EPWM_DC_COMBINATIONAL_TRIPIN12` 0x800U

    Combinational Trip 12 input

  `EPWM_DC_COMBINATIONAL_TRIPIN14` 0x2000U

    Combinational Trip 14 input

  `EPWM_DC_COMBINATIONAL_TRIPIN15` 0x4000U

    Combinational Trip 15 input

  `EPWM_GL_REGISTER_TBPRD_TBPRDHR` 0x1U

    Global load TBPRD:TBPRDHR

  `EPWM_GL_REGISTER_CMPA_CMPAHR` 0x2U

    Global load CMPA:CMPAHR

  `EPWM_GL_REGISTER_CMPB_CMPBHR` 0x4U

    Global load CMPB:CMPBHR

  `EPWM_GL_REGISTER_CMPC` 0x8U

    Global load CMPC

  `EPWM_GL_REGISTER_CMPD` 0x10U

    Global load CMPD

  `EPWM_GL_REGISTER_DBRED_DBREDHR` 0x20U

    Global load DBRED:DBREDHR

  `EPWM_GL_REGISTER_DBFED_DBFEDHR` 0x40U

    Global load DBFED:DBFEDHR

  `EPWM_GL_REGISTER_DBCTL` 0x80U

    Global load DBCTL

  `EPWM_GL_REGISTER_AQCTLA_AQCTLA2` 0x100U

    Global load AQCTLA/A2

  `EPWM_GL_REGISTER_AQCTLB_AQCTLB2` 0x200U

    Global load AQCTLB/B2

  `EPWM_GL_REGISTER_AQCSFRC` 0x400U

    Global load AQCSFRC

  `EPWM_setSyncPulseSource` HRPWM_setSyncPulseSource

  Enums

  enum `EPWM_EmulationMode`

    Values that can be passed to EPWM_setEmulationMode() as the emulationMode parameter.

    Values:

    enumerator `EPWM_EMULATION_STOP_AFTER_NEXT_TB` = 0

      Stop after next Time Base counter increment or decrement.

    enumerator `EPWM_EMULATION_STOP_AFTER_FULL_CYCLE` = 1

      Stop when counter completes whole cycle.

    enumerator `EPWM_EMULATION_FREE_RUN` = 2

      Free run.

  enum `EPWM_SyncCountMode`

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

    Values:

    enumerator `EPWM_COUNT_MODE_DOWN_AFTER_SYNC` = 0

      Count down after sync event.

    enumerator `EPWM_COUNT_MODE_UP_AFTER_SYNC` = 1

      Count up after sync event.

  enum `EPWM_ClockDivider`

    Values that can be passed to EPWM_setClockPrescaler() as the prescaler parameter.

    Values:

    enumerator `EPWM_CLOCK_DIVIDER_1` = 0

      Divide clock by 1.

    enumerator `EPWM_CLOCK_DIVIDER_2` = 1

      Divide clock by 2.

    enumerator `EPWM_CLOCK_DIVIDER_4` = 2

      Divide clock by 4.

    enumerator `EPWM_CLOCK_DIVIDER_8` = 3

      Divide clock by 8.

    enumerator `EPWM_CLOCK_DIVIDER_16` = 4

      Divide clock by 16.

    enumerator `EPWM_CLOCK_DIVIDER_32` = 5

      Divide clock by 32.

    enumerator `EPWM_CLOCK_DIVIDER_64` = 6

      Divide clock by 64.

    enumerator `EPWM_CLOCK_DIVIDER_128` = 7

      Divide clock by 128.

  enum `EPWM_HSClockDivider`

    Values that can be passed to EPWM_setClockPrescaler() as the highSpeedPrescaler parameter.

    Values:

    enumerator `EPWM_HSCLOCK_DIVIDER_1` = 0

      Divide clock by 1.

    enumerator `EPWM_HSCLOCK_DIVIDER_2` = 1

      Divide clock by 2.

    enumerator `EPWM_HSCLOCK_DIVIDER_4` = 2

      Divide clock by 4.

    enumerator `EPWM_HSCLOCK_DIVIDER_6` = 3

      Divide clock by 6.

    enumerator `EPWM_HSCLOCK_DIVIDER_8` = 4

      Divide clock by 8.

    enumerator `EPWM_HSCLOCK_DIVIDER_10` = 5

      Divide clock by 10.

    enumerator `EPWM_HSCLOCK_DIVIDER_12` = 6

      Divide clock by 12.

    enumerator `EPWM_HSCLOCK_DIVIDER_14` = 7

      Divide clock by 14.

  enum `EPWM_SyncInPulseSource`

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

    Values:

    enumerator `EPWM_SYNC_IN_PULSE_SRC_DISABLE` = 0x0

      Disable Sync-in.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1` = 0x1

      Sync-in source is EPWM1 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2` = 0x2

      Sync-in source is EPWM2 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3` = 0x3

      Sync-in source is EPWM3 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4` = 0x4

      Sync-in source is EPWM4 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5` = 0x5

      Sync-in source is EPWM5 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6` = 0x6

      Sync-in source is EPWM6 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7` = 0x7

      Sync-in source is EPWM7 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8` = 0x8

      Sync-in source is EPWM8 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9` = 0x9

      Sync-in source is EPWM9 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10` = 0xA

      Sync-in source is EPWM10 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11` = 0xB

      Sync-in source is EPWM11 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12` = 0xC

      Sync-in source is EPWM12 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13` = 0xD

      Sync-in source is EPWM13 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14` = 0xE

      Sync-in source is EPWM14 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15` = 0xF

      Sync-in source is EPWM15 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16` = 0x10

      Sync-in source is EPWM16 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP1` = 0x11

      Sync-in source is ECAP1 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP2` = 0x12

      Sync-in source is ECAP2 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP3` = 0x13

      Sync-in source is ECAP3 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP4` = 0x14

      Sync-in source is ECAP4 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP5` = 0x15

      Sync-in source is ECAP5 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP6` = 0x16

      Sync-in source is ECAP6 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP7` = 0x17

      Sync-in source is ECAP7 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT5` = 0x18

      Sync-in source is Input XBAR out5 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT6` = 0x19

      Sync-in source is Input XBAR out6 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_ETHERCAT_SYNC0` = 0x1A

      Sync-in source is Ethercat sync0 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_ETHERCAT_SYNC1` = 0x1B

      Sync-in source is Ethercat sync1 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17` = 0x1C

      Sync-in source is EPWM17 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18` = 0x1D

      Sync-in source is EPWM18 sync-out signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_FSIRXA_TRIG1` = 0x1E

      Sync-in source is FSI RXA trigger1 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_FSIRXB_TRIG1` = 0x1F

      Sync-in source is FSI RXB trigger1 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_FSIRXC_TRIG1` = 0x20

      Sync-in source is FSI RXC trigger1 signal.

    enumerator `EPWM_SYNC_IN_PULSE_SRC_FSIRXD_TRIG1` = 0x21

      Sync-in source is FSI RXD trigger1 signal.

  enum `EPWM_OneShotSyncOutTrigger`

    Values that can be passed to EPWM_setOneShotSyncOutTrigger() as the trigger parameter.

    Values:

    enumerator `EPWM_OSHT_SYNC_OUT_TRIG_SYNC` = 0x0

      Trigger is OSHT sync.

    enumerator `EPWM_OSHT_SYNC_OUT_TRIG_RELOAD` = 0x1

      Trigger is OSHT reload.

  enum `EPWM_PeriodLoadMode`

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

    Values:

    enumerator `EPWM_PERIOD_SHADOW_LOAD` = 0

      PWM Period register access is through shadow register.

    enumerator `EPWM_PERIOD_DIRECT_LOAD` = 1

      PWM Period register access is directly.

  enum `EPWM_TimeBaseCountMode`

    Values that can be passed to EPWM_setTimeBaseCounterMode() as the counterMode parameter.

    Values:

    enumerator `EPWM_COUNTER_MODE_UP` = 0

      Up - count mode.

    enumerator `EPWM_COUNTER_MODE_DOWN` = 1

      Down - count mode.

    enumerator `EPWM_COUNTER_MODE_UP_DOWN` = 2

      Up - down - count mode.

    enumerator `EPWM_COUNTER_MODE_STOP_FREEZE` = 3

      Stop - Freeze counter.

  enum `EPWM_PeriodShadowLoadMode`

    Values that can be passed to EPWM_selectPeriodLoadEvent() as the shadowLoadMode parameter.

    Values:

    enumerator `EPWM_SHADOW_LOAD_MODE_COUNTER_ZERO` = 0

      Shadow to active load occurs when time base counter reaches 0.

    enumerator `EPWM_SHADOW_LOAD_MODE_COUNTER_SYNC` = 1

      Shadow to active load occurs when time base counter reaches 0 and a SYNC occurs

    enumerator `EPWM_SHADOW_LOAD_MODE_SYNC` = 2

      Shadow to active load occurs only when a SYNC occurs.

  enum `EPWM_CurrentLink`

    Values that can be passed to EPWM_setupEPWMLinks() as the epwmLink parameter.

    Values:

    enumerator `EPWM_LINK_WITH_EPWM_17` = 16

      link current ePWM with ePWM17

    enumerator `EPWM_LINK_WITH_EPWM_18` = 17

      link current ePWM with ePWM18

    enumerator `EPWM_LINK_WITH_EPWM_1` = 0

      link current ePWM with ePWM1

    enumerator `EPWM_LINK_WITH_EPWM_2` = 1

      link current ePWM with ePWM2

    enumerator `EPWM_LINK_WITH_EPWM_3` = 2

      link current ePWM with ePWM3

    enumerator `EPWM_LINK_WITH_EPWM_4` = 3

      link current ePWM with ePWM4

    enumerator `EPWM_LINK_WITH_EPWM_5` = 4

      link current ePWM with ePWM5

    enumerator `EPWM_LINK_WITH_EPWM_6` = 5

      link current ePWM with ePWM6

    enumerator `EPWM_LINK_WITH_EPWM_7` = 6

      link current ePWM with ePWM7

    enumerator `EPWM_LINK_WITH_EPWM_8` = 7

      link current ePWM with ePWM8

    enumerator `EPWM_LINK_WITH_EPWM_9` = 8

      link current ePWM with ePWM9

    enumerator `EPWM_LINK_WITH_EPWM_10` = 9

      link current ePWM with ePWM10

    enumerator `EPWM_LINK_WITH_EPWM_11` = 10

      link current ePWM with ePWM11

    enumerator `EPWM_LINK_WITH_EPWM_12` = 11

      link current ePWM with ePWM12

    enumerator `EPWM_LINK_WITH_EPWM_13` = 12

      link current ePWM with ePWM13

    enumerator `EPWM_LINK_WITH_EPWM_14` = 13

      link current ePWM with ePWM14

    enumerator `EPWM_LINK_WITH_EPWM_15` = 14

      link current ePWM with ePWM15

    enumerator `EPWM_LINK_WITH_EPWM_16` = 15

      link current ePWM with ePWM16

  enum `EPWM_LinkComponent`

    Values that can be passed to EPWM_setupEPWMLinks() as the linkComp parameter.

    Values:

    enumerator `EPWM_LINK_TBPRD` = 0U

      link TBPRD registers

    enumerator `EPWM_LINK_COMP_A` = 5U

      link COMPA registers

    enumerator `EPWM_LINK_COMP_B` = 10U

      link COMPB registers

    enumerator `EPWM_LINK_COMP_C` = 16U

      link COMPC registers

    enumerator `EPWM_LINK_COMP_D` = 21U

      link COMPD registers

    enumerator `EPWM_LINK_GLDCTL2` = 26U

      link GLDCTL2 registers

    enumerator `EPWM_LINK_DBRED` = 0U + 32U

      link DBRED registers

    enumerator `EPWM_LINK_DBFED` = 5U + 32U

      link DBFED registers

    enumerator `EPWM_LINK_XLOAD` = 0U + 64U

      link XLOAD registers

  enum `EPWM_CounterCompareModule`

    Values that can be passed to the EPWM_getCounterCompareShadowStatus(), EPWM_setCounterCompareValue(), EPWM_setCounterCompareShadowLoadMode(), EPWM_disableCounterCompareShadowLoadMode() as the compModule parameter.

    Values:

    enumerator `EPWM_COUNTER_COMPARE_A` = 0

      Counter compare A.

    enumerator `EPWM_COUNTER_COMPARE_B` = 2

      Counter compare B.

    enumerator `EPWM_COUNTER_COMPARE_C` = 5

      Counter compare C.

    enumerator `EPWM_COUNTER_COMPARE_D` = 7

      Counter compare D.

  enum `EPWM_CounterCompareLoadMode`

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

    Values:

    enumerator `EPWM_COMP_LOAD_ON_CNTR_ZERO` = 0

      Load when counter equals zero.

    enumerator `EPWM_COMP_LOAD_ON_CNTR_PERIOD` = 1

      Load when counter equals period.

    enumerator `EPWM_COMP_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Load when counter equals zero or period.

    enumerator `EPWM_COMP_LOAD_FREEZE` = 3

      Freeze shadow to active load.

    enumerator `EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO` = 4

      Load on sync or when counter equals zero.

    enumerator `EPWM_COMP_LOAD_ON_SYNC_CNTR_PERIOD` = 5

      Load on sync or when counter equals period.

    enumerator `EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO_PERIOD` = 6

      Load on sync or when counter equals zero or period.

    enumerator `EPWM_COMP_LOAD_ON_SYNC_ONLY` = 8

      Load on sync only.

  enum `EPWM_ActionQualifierModule`

    Values that can be passed to EPWM_setActionQualifierShadowLoadMode() and EPWM_disableActionQualifierShadowLoadMode() as the aqModule parameter.

    Values:

    enumerator `EPWM_ACTION_QUALIFIER_A` = 0

      Action Qualifier A.

    enumerator `EPWM_ACTION_QUALIFIER_B` = 2

      Action Qualifier B.

  enum `EPWM_ActionQualifierLoadMode`

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

    Values:

    enumerator `EPWM_AQ_LOAD_ON_CNTR_ZERO` = 0

      Load when counter equals zero.

    enumerator `EPWM_AQ_LOAD_ON_CNTR_PERIOD` = 1

      Load when counter equals period.

    enumerator `EPWM_AQ_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Load when counter equals zero or period.

    enumerator `EPWM_AQ_LOAD_FREEZE` = 3

      Freeze shadow to active load.

    enumerator `EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO` = 4

      Load on sync or when counter equals zero.

    enumerator `EPWM_AQ_LOAD_ON_SYNC_CNTR_PERIOD` = 5

      Load on sync or when counter equals period.

    enumerator `EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO_PERIOD` = 6

      Load on sync or when counter equals zero or period.

    enumerator `EPWM_AQ_LOAD_ON_SYNC_ONLY` = 8

      Load on sync only.

  enum `EPWM_ActionQualifierTriggerSource`

    Values that can be passed to EPWM_setActionQualifierT1TriggerSource() and EPWM_setActionQualifierT2TriggerSource() as the trigger parameter.

    Values:

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_1` = 0

      Digital compare event A 1.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_2` = 1

      Digital compare event A 2.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_1` = 2

      Digital compare event B 1.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_2` = 3

      Digital compare event B 2.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_1` = 4

      Trip zone 1.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_2` = 5

      Trip zone 2.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_3` = 6

      Trip zone 3.

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_EPWM_SYNCIN` = 7

      ePWM sync

    enumerator `EPWM_AQ_TRIGGER_EVENT_TRIG_DC_EVTFILT` = 8

      Digital compare filter event.

  enum `EPWM_ActionQualifierOutputEvent`

    Values that can be passed to EPWM_setActionQualifierAction() as the event parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO` = 0

      Time base counter equals zero.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_PERIOD` = 2

      Time base counter equals period.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPA` = 4

      Time base counter up equals COMPA.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPA` = 6

      Time base counter down equals COMPA.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPB` = 8

      Time base counter up equals COMPB.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPB` = 10

      Time base counter down equals COMPB.

    enumerator `EPWM_AQ_OUTPUT_ON_T1_COUNT_UP` = 1

      T1 event on count up.

    enumerator `EPWM_AQ_OUTPUT_ON_T1_COUNT_DOWN` = 3

      T1 event on count down.

    enumerator `EPWM_AQ_OUTPUT_ON_T2_COUNT_UP` = 5

      T2 event on count up.

    enumerator `EPWM_AQ_OUTPUT_ON_T2_COUNT_DOWN` = 7

      T2 event on count down.

  enum `EPWM_ActionQualifierOutput`

    Values that can be passed to EPWM_setActionQualifierSWAction(), EPWM_setActionQualifierAction() as the outPut parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE` = 0

      No change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW` = 1

      Set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH` = 2

      Set output pins to High.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE` = 3

      Toggle the output pins.

  enum `EPWM_ActionQualifierSWOutput`

    Values that can be passed to EPWM_setActionQualifierContSWForceAction() as the outPut parameter.

    Values:

    enumerator `EPWM_AQ_SW_DISABLED` = 0

      Software forcing disabled.

    enumerator `EPWM_AQ_SW_OUTPUT_LOW` = 1

      Set output pins to low.

    enumerator `EPWM_AQ_SW_OUTPUT_HIGH` = 2

      Set output pins to High.

  enum `EPWM_ActionQualifierEventAction`

    Values that can be passed to EPWM_setActionQualifierActionComplete() as the action parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_ZERO` = 0x0

      Time base counter equals zero and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_ZERO` = 0x1

      Time base counter equals zero and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_ZERO` = 0x2

      Time base counter equals zero and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_ZERO` = 0x3

      Time base counter equals zero and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_PERIOD` = 0x0

      Time base counter equals period and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_PERIOD` = 0x4

      Time base counter equals period and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_PERIOD` = 0x8

      Time base counter equals period and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_PERIOD` = 0xC

      Time base counter equals period and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPA` = 0x00

      Time base counter up equals COMPA and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_UP_CMPA` = 0x10

      Time base counter up equals COMPA and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_UP_CMPA` = 0x20

      Time base counter up equals COMPA and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_UP_CMPA` = 0x30

      Time base counter up equals COMPA and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPA` = 0x00

      Time base counter down equals COMPA and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_DOWN_CMPA` = 0x40

      Time base counter down equals COMPA and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_DOWN_CMPA` = 0x80

      Time base counter down equals COMPA and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPA` = 0xC0

      Time base counter down equals COMPA and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPB` = 0x000

      Time base counter up equals COMPB and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_UP_CMPB` = 0x100

      Time base counter up equals COMPB and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_UP_CMPB` = 0x200

      Time base counter up equals COMPB and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_UP_CMPB` = 0x300

      Time base counter up equals COMPB and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPB` = 0x000

      Time base counter down equals COMPB and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_DOWN_CMPB` = 0x400

      Time base counter down equals COMPB and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_DOWN_CMPB` = 0x800

      Time base counter down equals COMPB and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPB` = 0xC00

      Time base counter down equals COMPB and toggle the output pins.

  enum `EPWM_AdditionalActionQualifierEventAction`

    Values that can be passed to EPWM_setAdditionalActionQualifierActionComplete() as the action parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_UP_T1` = 0x0

      T1 event on count up and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_UP_T1` = 0x1

      T1 event on count up and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_UP_T1` = 0x2

      T1 event on count up and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_UP_T1` = 0x3

      T1 event on count up and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T1` = 0x0

      T1 event on count down and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_DOWN_T1` = 0x4

      T1 event on count down and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_DOWN_T1` = 0x8

      T1 event on count down and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_DOWN_T1` = 0xC

      T1 event on count down and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_UP_T2` = 0x00

      T2 event on count up and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_UP_T2` = 0x10

      T2 event on count up and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_UP_T2` = 0x20

      T2 event on count up and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_UP_T2` = 0x30

      T2 event on count up and toggle the output pins.

    enumerator `EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T2` = 0x00

      T2 event on count down and no change in the output pins.

    enumerator `EPWM_AQ_OUTPUT_LOW_DOWN_T2` = 0x40

      T2 event on count down and set output pins to low.

    enumerator `EPWM_AQ_OUTPUT_HIGH_DOWN_T2` = 0x80

      T2 event on count down and set output pins to high.

    enumerator `EPWM_AQ_OUTPUT_TOGGLE_DOWN_T2` = 0xC0

      T2 event on count down and toggle the output pins.

  enum `EPWM_ActionQualifierOutputModule`

    Values that can be passed to EPWM_forceActionQualifierSWAction(), EPWM_setActionQualifierSWAction(), EPWM_setActionQualifierAction() EPWM_setActionQualifierContSWForceAction() as the epwmOutput parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_A` = 0

      ePWMxA output

    enumerator `EPWM_AQ_OUTPUT_B` = 2

      ePWMxB output

  enum `EPWM_ActionQualifierContForce`

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

    Values:

    enumerator `EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO` = 0

      Shadow mode load when counter equals zero.

    enumerator `EPWM_AQ_SW_SH_LOAD_ON_CNTR_PERIOD` = 1

      Shadow mode load when counter equals period.

    enumerator `EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Shadow mode load when counter equals zero or period.

    enumerator `EPWM_AQ_SW_IMMEDIATE_LOAD` = 3

      No shadow load mode. Immediate mode only.

  enum `EPWM_DeadBandOutput`

    Values that can be passed to EPWM_setDeadBandOutputSwapMode() as the output parameter.

    Values:

    enumerator `EPWM_DB_OUTPUT_A` = 1

      DB output is ePWMA.

    enumerator `EPWM_DB_OUTPUT_B` = 0

      DB output is ePWMB.

  enum `EPWM_DeadBandDelayMode`

    Values that can be passed to EPWM_setDeadBandDelayPolarity(), EPWM_setDeadBandDelayMode() as the delayMode parameter.

    Values:

    enumerator `EPWM_DB_RED` = 1

      DB RED (Rising Edge Delay) mode.

    enumerator `EPWM_DB_FED` = 0

      DB FED (Falling Edge Delay) mode.

  enum `EPWM_DeadBandPolarity`

    Values that can be passed to EPWM_setDeadBandDelayPolarity as the polarity parameter.

    Values:

    enumerator `EPWM_DB_POLARITY_ACTIVE_HIGH` = 0

      DB polarity is not inverted.

    enumerator `EPWM_DB_POLARITY_ACTIVE_LOW` = 1

      DB polarity is inverted.

  enum `EPWM_DeadBandControlLoadMode`

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

    Values:

    enumerator `EPWM_DB_LOAD_ON_CNTR_ZERO` = 0

      Load when counter equals zero.

    enumerator `EPWM_DB_LOAD_ON_CNTR_PERIOD` = 1

      Load when counter equals period.

    enumerator `EPWM_DB_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Load when counter equals zero or period.

    enumerator `EPWM_DB_LOAD_FREEZE` = 3

      Freeze shadow to active load.

  enum `EPWM_RisingEdgeDelayLoadMode`

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

    Values:

    enumerator `EPWM_RED_LOAD_ON_CNTR_ZERO` = 0

      Load when counter equals zero.

    enumerator `EPWM_RED_LOAD_ON_CNTR_PERIOD` = 1

      Load when counter equals period.

    enumerator `EPWM_RED_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Load when counter equals zero or period.

    enumerator `EPWM_RED_LOAD_FREEZE` = 3

      Freeze shadow to active load.

  enum `EPWM_FallingEdgeDelayLoadMode`

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

    Values:

    enumerator `EPWM_FED_LOAD_ON_CNTR_ZERO` = 0

      Load when counter equals zero.

    enumerator `EPWM_FED_LOAD_ON_CNTR_PERIOD` = 1

      Load when counter equals period.

    enumerator `EPWM_FED_LOAD_ON_CNTR_ZERO_PERIOD` = 2

      Load when counter equals zero or period.

    enumerator `EPWM_FED_LOAD_FREEZE` = 3

      Freeze shadow to active load.

  enum `EPWM_DeadBandClockMode`

    Values that can be passed to EPWM_setDeadBandCounterClock() as the clockMode parameter.

    Values:

    enumerator `EPWM_DB_COUNTER_CLOCK_FULL_CYCLE` = 0

      Dead band counter runs at TBCLK rate.

    enumerator `EPWM_DB_COUNTER_CLOCK_HALF_CYCLE` = 1

      Dead band counter runs at 2*TBCLK rate.

  enum `EPWM_TripZoneDigitalCompareOutput`

    Values that can be passed to EPWM_setTripZoneDigitalCompareEventCondition() as the dcType parameter.

    Values:

    enumerator `EPWM_TZ_DC_OUTPUT_A1` = 0

      Digital Compare output 1 A.

    enumerator `EPWM_TZ_DC_OUTPUT_A2` = 3

      Digital Compare output 2 A.

    enumerator `EPWM_TZ_DC_OUTPUT_B1` = 6

      Digital Compare output 1 B.

    enumerator `EPWM_TZ_DC_OUTPUT_B2` = 9

      Digital Compare output 2 B.

  enum `EPWM_TripZoneDigitalCompareOutputEvent`

    Values that can be passed to EPWM_setTripZoneDigitalCompareEventCondition() as the dcEvent parameter.

    Values:

    enumerator `EPWM_TZ_EVENT_DC_DISABLED` = 0

      Event is disabled.

    enumerator `EPWM_TZ_EVENT_DCXH_LOW` = 1

      Event when DCxH low.

    enumerator `EPWM_TZ_EVENT_DCXH_HIGH` = 2

      Event when DCxH high.

    enumerator `EPWM_TZ_EVENT_DCXL_LOW` = 3

      Event when DCxL low.

    enumerator `EPWM_TZ_EVENT_DCXL_HIGH` = 4

      Event when DCxL high.

    enumerator `EPWM_TZ_EVENT_DCXL_HIGH_DCXH_LOW` = 5

      Event when DCxL high DCxH low.

  enum `EPWM_TripZoneEvent`

    Values that can be passed to EPWM_setTripZoneAction() as the tzEvent parameter.

    Values:

    enumerator `EPWM_TZ_ACTION_EVENT_TZA` = 0

      TZ1 - TZ6, DCAEVT2, DCAEVT1.

    enumerator `EPWM_TZ_ACTION_EVENT_TZB` = 2

      TZ1 - TZ6, DCBEVT2, DCBEVT1.

    enumerator `EPWM_TZ_ACTION_EVENT_DCAEVT1` = 4

      DCAEVT1 (Digital Compare A event 1)

    enumerator `EPWM_TZ_ACTION_EVENT_DCAEVT2` = 6

      DCAEVT2 (Digital Compare A event 2)

    enumerator `EPWM_TZ_ACTION_EVENT_DCBEVT1` = 8

      DCBEVT1 (Digital Compare B event 1)

    enumerator `EPWM_TZ_ACTION_EVENT_DCBEVT2` = 10

      DCBEVT2 (Digital Compare B event 2)

  enum `EPWM_TripZoneAction`

    Values that can be passed to EPWM_setTripZoneAction() as the tzAction parameter.

    Values:

    enumerator `EPWM_TZ_ACTION_HIGH_Z` = 0

      High impedance output.

    enumerator `EPWM_TZ_ACTION_HIGH` = 1

      High voltage state.

    enumerator `EPWM_TZ_ACTION_LOW` = 2

      Low voltage state.

    enumerator `EPWM_TZ_ACTION_DISABLE` = 3

      Disable action.

  enum `EPWM_TripZoneAdvancedEvent`

    Values that can be passed to EPWM_setTripZoneAdvAction() as the tzAdvEvent parameter.

    Values:

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_TZB_D` = 9

      TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting down.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_TZB_U` = 6

      TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting up.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_TZA_D` = 3

      TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting down.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_TZA_U` = 0

      TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting up.

  enum `EPWM_TripZoneAdvancedAction`

    Values that can be passed to EPWM_setTripZoneAdvDigitalCompareActionA(), EPWM_setTripZoneAdvDigitalCompareActionB(),EPWM_setTripZoneAdvAction() as the tzAdvDCAction parameter.

    Values:

    enumerator `EPWM_TZ_ADV_ACTION_HIGH_Z` = 0

      High impedance output.

    enumerator `EPWM_TZ_ADV_ACTION_HIGH` = 1

      High voltage state.

    enumerator `EPWM_TZ_ADV_ACTION_LOW` = 2

      Low voltage state.

    enumerator `EPWM_TZ_ADV_ACTION_TOGGLE` = 3

      Toggle the output.

    enumerator `EPWM_TZ_ADV_ACTION_DISABLE` = 7

      Disable action.

  enum `EPWM_TripZoneAdvDigitalCompareEvent`

    Values that can be passed to EPWM_setTripZoneAdvDigitalCompareActionA() and EPWM_setTripZoneAdvDigitalCompareActionB() as the tzAdvDCEvent parameter.

    Values:

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_U` = 0

      Digital Compare event A/B 1 while counting up.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_D` = 3

      Digital Compare event A/B 1 while counting down.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_U` = 6

      Digital Compare event A/B 2 while counting up.

    enumerator `EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_D` = 9

      Digital Compare event A/B 2 while counting down.

  enum `EPWM_XCMPReg`

    Values that can be passed to EPWM_setXCMPRegValue() as the xcmpReg parameter.

    Values:

    enumerator `EPWM_XCMP1_ACTIVE` = 0x0U

      XCMP1_ACTIVE.

    enumerator `EPWM_XCMP2_ACTIVE` = 0x2U

      XCMP2_ACTIVE.

    enumerator `EPWM_XCMP3_ACTIVE` = 0x4U

      XCMP3_ACTIVE.

    enumerator `EPWM_XCMP4_ACTIVE` = 0x6U

      XCMP4_ACTIVE.

    enumerator `EPWM_XCMP5_ACTIVE` = 0x8U

      XCMP5_ACTIVE.

    enumerator `EPWM_XCMP6_ACTIVE` = 0xAU

      XCMP6_ACTIVE.

    enumerator `EPWM_XCMP7_ACTIVE` = 0xCU

      XCMP7_ACTIVE.

    enumerator `EPWM_XCMP8_ACTIVE` = 0xEU

      XCMP8_ACTIVE.

    enumerator `EPWM_XTBPRD_ACTIVE` = 0x10U

      XTBPRD_ACTIVE.

    enumerator `EPWM_XCMP1_SHADOW1` = 0x20U

      XCMP1_SHADOW1.

    enumerator `EPWM_XCMP2_SHADOW1` = 0x22U

      XCMP2_SHADOW1.

    enumerator `EPWM_XCMP3_SHADOW1` = 0x24U

      XCMP3_SHADOW1.

    enumerator `EPWM_XCMP4_SHADOW1` = 0x26U

      XCMP4_SHADOW1.

    enumerator `EPWM_XCMP5_SHADOW1` = 0x28U

      XCMP5_SHADOW1.

    enumerator `EPWM_XCMP6_SHADOW1` = 0x2AU

      XCMP6_SHADOW1.

    enumerator `EPWM_XCMP7_SHADOW1` = 0x2CU

      XCMP7_SHADOW1.

    enumerator `EPWM_XCMP8_SHADOW1` = 0x2EU

      XCMP8_SHADOW1.

    enumerator `EPWM_XTBPRD_SHADOW1` = 0x30U

      XTBPRD_SHADOW1.

    enumerator `EPWM_XCMP1_SHADOW2` = 0x40U

      XCMP1_SHADOW2.

    enumerator `EPWM_XCMP2_SHADOW2` = 0x42U

      XCMP2_SHADOW2.

    enumerator `EPWM_XCMP3_SHADOW2` = 0x44U

      XCMP3_SHADOW2.

    enumerator `EPWM_XCMP4_SHADOW2` = 0x46U

      XCMP4_SHADOW2.

    enumerator `EPWM_XCMP5_SHADOW2` = 0x48U

      XCMP5_SHADOW2.

    enumerator `EPWM_XCMP6_SHADOW2` = 0x4AU

      XCMP6_SHADOW2.

    enumerator `EPWM_XCMP7_SHADOW2` = 0x4CU

      XCMP7_SHADOW2.

    enumerator `EPWM_XCMP8_SHADOW2` = 0x4EU

      XCMP8_SHADOW2.

    enumerator `EPWM_XTBPRD_SHADOW2` = 0x50U

      XTBPRD_SHADOW2.

    enumerator `EPWM_XCMP1_SHADOW3` = 0x60U

      XCMP1_SHADOW3.

    enumerator `EPWM_XCMP2_SHADOW3` = 0x62U

      XCMP2_SHADOW3.

    enumerator `EPWM_XCMP3_SHADOW3` = 0x64U

      XCMP3_SHADOW3.

    enumerator `EPWM_XCMP4_SHADOW3` = 0x66U

      XCMP4_SHADOW3.

    enumerator `EPWM_XCMP5_SHADOW3` = 0x68U

      XCMP5_SHADOW3.

    enumerator `EPWM_XCMP6_SHADOW3` = 0x6AU

      XCMP6_SHADOW3.

    enumerator `EPWM_XCMP7_SHADOW3` = 0x6CU

      XCMP7_SHADOW3.

    enumerator `EPWM_XCMP8_SHADOW3` = 0x6EU

      XCMP8_SHADOW3.

    enumerator `EPWM_XTBPRD_SHADOW3` = 0x70U

      XTBPRD_SHADOW3.

  enum `EPWM_XCompareReg`

    Values that can be passed to EPWM_setCMPShadowRegValue() as the cmpReg parameter.

    Values:

    enumerator `EPWM_CMPC_SHADOW1` = 0x0U

      CMPC_SHADOW1.

    enumerator `EPWM_CMPD_SHADOW1` = 0x2U

      CMPD_SHADOW1.

    enumerator `EPWM_CMPC_SHADOW2` = 0x20U

      CMPC_SHADOW2.

    enumerator `EPWM_CMPD_SHADOW2` = 0x22U

      CMPD_SHADOW2.

    enumerator `EPWM_CMPC_SHADOW3` = 0x40U

      CMPC_SHADOW3.

    enumerator `EPWM_CMPD_SHADOW3` = 0x42U

      CMPD_SHADOW3.

  enum `EPWM_XMinMaxReg`

    Values that can be passed to EPWM_setXMINMAXRegValue() as the xminmaxReg parameter.

    Values:

    enumerator `EPWM_XMAX_ACTIVE` = 0x0U

      XMAX_ACTIVE.

    enumerator `EPWM_XMIN_ACTIVE` = 0x1U

      XMIN_ACTIVE.

    enumerator `EPWM_XMAX_SHADOW1` = 0x20U

      XMAX_SHADOW1.

    enumerator `EPWM_XMIN_SHADOW1` = 0x21U

      XMIN_SHADOW1.

    enumerator `EPWM_XMAX_SHADOW2` = 0x40U

      XMAX_SHADOW2.

    enumerator `EPWM_XMIN_SHADOW2` = 0x41U

      XMIN_SHADOW2.

    enumerator `EPWM_XMAX_SHADOW3` = 0x60U

      XMAX_SHADOW3.

    enumerator `EPWM_XMIN_SHADOW3` = 0x61U

      XMIN_SHADOW3.

  enum `EPWM_XCMPActionQualifierOutputEvent`

    Values that can be passed to EPWM_setXCMPActionQualifierAction() as the event parameter.

    Values:

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP1` = 0

      Time base counter equals XCMP1.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP2` = 2

      Time base counter equals XCMP2.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP3` = 4

      Time base counter equals XCMP3.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP4` = 6

      Time base counter equals XCMP4.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP5` = 8

      Time base counter equals XCMP5.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP6` = 10

      Time base counter equals XCMP6.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP7` = 12

      Time base counter equals XCMP7.

    enumerator `EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP8` = 14

      Time base counter equals XCMP8.

  enum `EPWM_XCMP_ALLOC_CMPA`

    Values that can be passed to EPWM_allocAXCMP() as the alloctype parameter.

    Values:

    enumerator `EPWM_XCMP_NONE_CMPA` = 0

      Allocate 0 XCMP registers to CMPA.

    enumerator `EPWM_XCMP_1_CMPA` = 1

      Allocate XCMP1 register to CMPA.

    enumerator `EPWM_XCMP_2_CMPA` = 2

      Allocate XCMP1 - XCMP2 registers to CMPA.

    enumerator `EPWM_XCMP_3_CMPA` = 3

      Allocate XCMP1 - XCMP3 registers to CMPA.

    enumerator `EPWM_XCMP_4_CMPA` = 4

      Allocate XCMP1 - XCMP4 registers to CMPA.

    enumerator `EPWM_XCMP_5_CMPA` = 5

      Allocate XCMP1 - XCMP5 registers to CMPA.

    enumerator `EPWM_XCMP_6_CMPA` = 6

      Allocate XCMP1 - XCMP6 registers to CMPA.

    enumerator `EPWM_XCMP_7_CMPA` = 7

      Allocate XCMP1 - XCMP7 registers to CMPA.

    enumerator `EPWM_XCMP_8_CMPA` = 8

      Allocate XCMP1 - XCMP8 registers to CMPA.

  enum `EPWM_XCMP_ALLOC_CMPB`

    Values that can be passed to EPWM_allocBXCMP() as the alloctype parameter.

    Values:

    enumerator `EPWM_XCMP_5_CMPB` = 5

      Allocate XCMP5 register to CMPB.

    enumerator `EPWM_XCMP_6_CMPB` = 6

      Allocate XCMP5 - XCMP6 registers to CMPB.

    enumerator `EPWM_XCMP_7_CMPB` = 7

      Allocate XCMP5 - XCMP7 registers to CMPB.

    enumerator `EPWM_XCMP_8_CMPB` = 8

      Allocate XCMP5 - XCMP8 registers to CMPB.

  enum `EPWM_XCMPXloadCtlLoadMode`

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

    Values:

    enumerator `EPWM_XCMP_XLOADCTL_LOADMODE_LOADONCE` = 0

      Load mode is LOADONCE.

    enumerator `EPWM_XCMP_XLOADCTL_LOADMODE_LOADMULTIPLE` = 1

      Load mode is LOADMULTIPLE.

  enum `EPWM_XCMP_XLOADCTL_SHDWLEVEL`

    Values that can be passed to EPWM_setXCMPShadowLevel() as the level parameter.

    Values:

    enumerator `EPWM_XCMP_XLOADCTL_SHDWLEVEL_0` = 0

      Only Active register is available.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWLEVEL_1` = 1

      SHDW1 and Active registers are available.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWLEVEL_2` = 2

      SHDW2, SHDW1 and Active registers are available.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWLEVEL_3` = 3

      SHDW3, SHDW2, SHDW1 and Active registers are available.

  enum `EPWM_XCMP_XLOADCTL_SHDWBUFPTR`

    Values that can be passed to EPWM_setXCMPShadowBufPtrLoadOnce() as the ptr parameter.

    Values:

    enumerator `EPWM_XCMP_XLOADCTL_SHDWBUFPTR_NULL` = 0

      No Shadow buffer is in use.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWBUFPTR_ONE` = 1

      Shadow buffer 1 is in use.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWBUFPTR_TWO` = 2

      Shadow buffer 2 is in use.

    enumerator `EPWM_XCMP_XLOADCTL_SHDWBUFPTR_THREE` = 3

      Shadow buffer 3 is in use.

  enum `EPWM_DiodeEmulationMode`

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

    Values:

    enumerator `EPWM_DIODE_EMULATION_CBC` = 0

      Diode Emulation mode is Cycle by Cycle.

    enumerator `EPWM_DIODE_EMULATION_OST` = 1

      Diode Emulation mode is One Shot.

  enum `EPWM_DiodeEmulationTripLSource`

    Values that can be passed to EPWM_configureDiodeEmulationTripLowSources() as the source parameter.

    Values:

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL1` = 0x00U

      Trip source is CMPSSTRIPL1 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL2` = 0x01U

      Trip source is CMPSSTRIPL2 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL3` = 0x02U

      Trip source is CMPSSTRIPL3 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL4` = 0x03U

      Trip source is CMPSSTRIPL4 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL5` = 0x04U

      Trip source is CMPSSTRIPL5 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL6` = 0x05U

      Trip source is CMPSSTRIPL6 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL7` = 0x06U

      Trip source is CMPSSTRIPL7 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL8` = 0x07U

      Trip source is CMPSSTRIPL8 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL9` = 0x08U

      Trip source is CMPSSTRIPL9 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL10` = 0x09U

      Trip source is CMPSSTRIPL10 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CMPSSTRIPL11` = 0x0AU

      Trip source is CMPSSTRIPL11 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT1` = 0x10U

      Trip source is INPUTXBAR out1 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT2` = 0x11U

      Trip source is INPUTXBAR out2 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT3` = 0x12U

      Trip source is INPUTXBAR out3 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT4` = 0x13U

      Trip source is INPUTXBAR out4 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT5` = 0x14U

      Trip source is INPUTXBAR out5 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT6` = 0x15U

      Trip source is INPUTXBAR out6 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT7` = 0x16U

      Trip source is INPUTXBAR out7 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT8` = 0x17U

      Trip source is INPUTXBAR out8 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT9` = 0x18U

      Trip source is INPUTXBAR out9 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT10` = 0x19U

      Trip source is INPUTXBAR out10 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT11` = 0x1AU

      Trip source is INPUTXBAR out11 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT12` = 0x1BU

      Trip source is INPUTXBAR out12 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT13` = 0x1CU

      Trip source is INPUTXBAR out13 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT14` = 0x1DU

      Trip source is INPUTXBAR out14 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT15` = 0x1EU

      Trip source is INPUTXBAR out15 signal.

    enumerator `EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT16` = 0x1FU

      Trip source is INPUTXBAR out16 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT1` = 0x20U

      Trip source is CLBINPUTXBAR out1 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT2` = 0x21U

      Trip source is CLBINPUTXBAR out2 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT3` = 0x22U

      Trip source is CLBINPUTXBAR out3 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT4` = 0x23U

      Trip source is CLBINPUTXBAR out4 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT5` = 0x24U

      Trip source is CLBINPUTXBAR out5 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT6` = 0x25U

      Trip source is CLBINPUTXBAR out6 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT7` = 0x26U

      Trip source is CLBINPUTXBAR out7 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT8` = 0x27U

      Trip source is CLBINPUTXBAR out8 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT9` = 0x28U

      Trip source is CLBINPUTXBAR out9 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT10` = 0x29U

      Trip source is CLBINPUTXBAR out10 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT11` = 0x2AU

      Trip source is CLBINPUTXBAR out11 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT12` = 0x2BU

      Trip source is CLBINPUTXBAR out12 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT13` = 0x2CU

      Trip source is CLBINPUTXBAR out13 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT14` = 0x2DU

      Trip source is CLBINPUTXBAR out14 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT15` = 0x2EU

      Trip source is CLBINPUTXBAR out15 signal.

    enumerator `EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT16` = 0x2FU

      Trip source is CLBINPUTXBAR out16 signal.

  enum `EPWM_DiodeEmulationTripHSource`

    Values that can be passed to EPWM_configureDiodeEmulationTripHighSources() as the source parameter.

    Values:

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH1` = 0x00U

      Trip source is CMPSSTRIPH1 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH2` = 0x01U

      Trip source is CMPSSTRIPH2 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH3` = 0x02U

      Trip source is CMPSSTRIPH3 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH4` = 0x03U

      Trip source is CMPSSTRIPH4 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH5` = 0x04U

      Trip source is CMPSSTRIPH5 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH6` = 0x05U

      Trip source is CMPSSTRIPH6 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH7` = 0x06U

      Trip source is CMPSSTRIPH7 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH8` = 0x07U

      Trip source is CMPSSTRIPH8 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH9` = 0x08U

      Trip source is CMPSSTRIPH9 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH10` = 0x09U

      Trip source is CMPSSTRIPH10 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CMPSSTRIPH11` = 0x0AU

      Trip source is CMPSSTRIPH11 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT1` = 0x10U

      Trip source is INPUTXBAR out1 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT2` = 0x11U

      Trip source is INPUTXBAR out2 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT3` = 0x12U

      Trip source is INPUTXBAR out3 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT4` = 0x13U

      Trip source is INPUTXBAR out4 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT5` = 0x14U

      Trip source is INPUTXBAR out5 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT6` = 0x15U

      Trip source is INPUTXBAR out6 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT7` = 0x16U

      Trip source is INPUTXBAR out7 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT8` = 0x17U

      Trip source is INPUTXBAR out8 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT9` = 0x18U

      Trip source is INPUTXBAR out9 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT10` = 0x19U

      Trip source is INPUTXBAR out10 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT11` = 0x1AU

      Trip source is INPUTXBAR out11 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT12` = 0x1BU

      Trip source is INPUTXBAR out12 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT13` = 0x1CU

      Trip source is INPUTXBAR out13 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT14` = 0x1DU

      Trip source is INPUTXBAR out14 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT15` = 0x1EU

      Trip source is INPUTXBAR out15 signal.

    enumerator `EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT16` = 0x1FU

      Trip source is INPUTXBAR out16 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT1` = 0x20U

      Trip source is CLBINPUTXBAR out1 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT2` = 0x21U

      Trip source is CLBINPUTXBAR out2 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT3` = 0x22U

      Trip source is CLBINPUTXBAR out3 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT4` = 0x23U

      Trip source is CLBINPUTXBAR out4 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT5` = 0x24U

      Trip source is CLBINPUTXBAR out5 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT6` = 0x25U

      Trip source is CLBINPUTXBAR out6 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT7` = 0x26U

      Trip source is CLBINPUTXBAR out7 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT8` = 0x27U

      Trip source is CLBINPUTXBAR out8 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT9` = 0x28U

      Trip source is CLBINPUTXBAR out9 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT10` = 0x29U

      Trip source is CLBINPUTXBAR out10 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT11` = 0x2AU

      Trip source is CLBINPUTXBAR out11 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT12` = 0x2BU

      Trip source is CLBINPUTXBAR out12 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT13` = 0x2CU

      Trip source is CLBINPUTXBAR out13 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT14` = 0x2DU

      Trip source is CLBINPUTXBAR out14 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT15` = 0x2EU

      Trip source is CLBINPUTXBAR out15 signal.

    enumerator `EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT16` = 0x2FU

      Trip source is CLBINPUTXBAR out16 signal.

  enum `EPWM_DiodeEmulationSignal`

    Values that can be passed to EPWM_selectDiodeEmulationPWMsignal() as the signal parameter.

    Values:

    enumerator `EPWM_DE_SYNC_TRIPHorL` = 0U

      Synchronized version of TRIPH or TRIPL signal.

    enumerator `EPWM_DE_SYNC_INV_TRIPHorL` = 1U

      Synchronized and inverted version of TRIPH or TRIPL signal.

    enumerator `EPWM_DE_LOW` = 2U

      A constant low signal.

    enumerator `EPWM_DE_HIGH` = 3U

      A constant high signal.

  enum `EPWM_CycleByCycleTripZoneClearMode`

    Values that can be passed to EPWM_selectCycleByCycleTripZoneClearEvent() as the clearMode parameter.

    Values:

    enumerator `EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO` = 0

      Clear CBC pulse when counter equals zero.

    enumerator `EPWM_TZ_CBC_PULSE_CLR_CNTR_PERIOD` = 1

      Clear CBC pulse when counter equals period.

    enumerator `EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO_PERIOD` = 2

      Clear CBC pulse when counter equals zero or period.

  enum `EPWM_selectTripOutSource`

    Values that can be passed to EPWM_enableTripOutSource()and EPWM_disableTripOutSource() as the tzTripOut parameter .

    Values:

    enumerator `EPWM_TZ_TRIPOUT_OST` = 0U

      OST as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_CBC` = 1U

      CBC as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ1` = 2U

      TZ1 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ2` = 3U

      TZ2 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ3` = 4U

      TZ3 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ4` = 5U

      TZ4 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ5` = 6U

      TZ5 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_TZ6` = 7U

      TZ6 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_DCAEVT1` = 8U

      DCAEVT1 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_DCAEVT2` = 9U

      DCAEVT2 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_DCBEVT1` = 10U

      DCBEVT1 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_DCBEVT2` = 11U

      DCBEVT2 as TRIPOUT source.

    enumerator `EPWM_TZ_TRIPOUT_CAPEVT` = 12U

      Capture Event as TRIPOUT source.

  enum `EPWM_ADCStartOfConversionType`

    Values that can be passed to EPWM_enableADCTrigger(), EPWM_disableADCTrigger(),EPWM_setADCTriggerSource(), EPWM_setADCTriggerEventPrescale(),EPWM_getADCTriggerFlagStatus(), EPWM_clearADCTriggerFlag(),EPWM_enableADCTriggerEventCountInit(), EPWM_disableADCTriggerEventCountInit(),EPWM_forceADCTriggerEventCountInit(), EPWM_setADCTriggerEventCountInitValue(),EPWM_getADCTriggerEventCount(), EPWM_forceADCTrigger() as the adcSOCType parameter

    Values:

    enumerator `EPWM_SOC_A` = 0

      SOC A.

    enumerator `EPWM_SOC_B` = 1

      SOC B.

  enum `EPWM_ADCStartOfConversionSource`

    Values that can be passed to EPWM_setADCTriggerSource() as the socSource parameter.

    Values:

    enumerator `EPWM_SOC_DCxEVT1` = 0

      Event is based on DCxEVT1.

    enumerator `EPWM_SOC_TBCTR_ZERO` = 1

      Time-base counter equal to zero.

    enumerator `EPWM_SOC_TBCTR_PERIOD` = 2

      Time-base counter equal to period.

    enumerator `EPWM_SOC_TBCTR_ETSOCAMIX` = 3

      Time-base counter based on mixed events (ETSOCAMIX)

    enumerator `EPWM_SOC_TBCTR_U_CMPA` = 4

      Time-base counter equal to CMPA when the timer is incrementing.

    enumerator `EPWM_SOC_TBCTR_U_CMPC` = 8

      Time-base counter equal to CMPC when the timer is incrementing.

    enumerator `EPWM_SOC_TBCTR_D_CMPA` = 5

      Time-base counter equal to CMPA when the timer is decrementing.

    enumerator `EPWM_SOC_TBCTR_D_CMPC` = 10

      Time-base counter equal to CMPC when the timer is decrementing.

    enumerator `EPWM_SOC_TBCTR_U_CMPB` = 6

      Time-base counter equal to CMPB when the timer is incrementing.

    enumerator `EPWM_SOC_TBCTR_U_CMPD` = 12

      Time-base counter equal to CMPD when the timer is incrementing.

    enumerator `EPWM_SOC_TBCTR_D_CMPB` = 7

      Time-base counter equal to CMPB when the timer is decrementing.

    enumerator `EPWM_SOC_TBCTR_D_CMPD` = 14

      Time-base counter equal to CMPD when the timer is decrementing.

  enum `EPWM_DigitalCompareType`

    Values that can be passed to EPWM_selectDigitalCompareTripInput(), EPWM_enableDigitalCompareTripCombinationInput(), EPWM_disableDigitalCompareTripCombinationInput() as the dcType parameter.

    Values:

    enumerator `EPWM_DC_TYPE_DCAH` = 0

      Digital Compare A High.

    enumerator `EPWM_DC_TYPE_DCAL` = 1

      Digital Compare A Low.

    enumerator `EPWM_DC_TYPE_DCBH` = 2

      Digital Compare B High.

    enumerator `EPWM_DC_TYPE_DCBL` = 3

      Digital Compare B Low.

  enum `EPWM_DigitalCompareTripInput`

    Values that can be passed to EPWM_selectDigitalCompareTripInput() and EPWM_selectCaptureTripInput() as the tripSource parameter.

    Values:

    enumerator `EPWM_DC_TRIP_TRIPIN1` = 0

      Trip 1.

    enumerator `EPWM_DC_TRIP_TRIPIN2` = 1

      Trip 2.

    enumerator `EPWM_DC_TRIP_TRIPIN3` = 2

      Trip 3.

    enumerator `EPWM_DC_TRIP_TRIPIN4` = 3

      Trip 4.

    enumerator `EPWM_DC_TRIP_TRIPIN5` = 4

      Trip 5.

    enumerator `EPWM_DC_TRIP_TRIPIN6` = 5

      Trip 6.

    enumerator `EPWM_DC_TRIP_TRIPIN7` = 6

      Trip 7.

    enumerator `EPWM_DC_TRIP_TRIPIN8` = 7

      Trip 8.

    enumerator `EPWM_DC_TRIP_TRIPIN9` = 8

      Trip 9.

    enumerator `EPWM_DC_TRIP_TRIPIN10` = 9

      Trip 10.

    enumerator `EPWM_DC_TRIP_TRIPIN11` = 10

      Trip 11.

    enumerator `EPWM_DC_TRIP_TRIPIN12` = 11

      Trip 12.

    enumerator `EPWM_DC_TRIP_TRIPIN14` = 13

      Trip 14.

    enumerator `EPWM_DC_TRIP_TRIPIN15` = 14

      Trip 15.

    enumerator `EPWM_DC_TRIP_COMBINATION` = 15

      All Trips (Trip1 - Trip 15) are selected.

  enum `EPWM_DigitalCompareBlankingPulse`

    Values that can be passed to EPWM_setDigitalCompareBlankingEvent() as the the blankingPulse parameter.

    Values:

    enumerator `EPWM_DC_WINDOW_START_TBCTR_PERIOD` = 0

      Time base counter equals period.

    enumerator `EPWM_DC_WINDOW_START_TBCTR_ZERO` = 1

      Time base counter equals zero.

    enumerator `EPWM_DC_WINDOW_START_TBCTR_ZERO_PERIOD` = 2

      Time base counter equals zero or period.

    enumerator `EPWM_DC_WINDOW_START_BLANK_PULSE_MIX` = 3

      Blank pulse mix.

  enum `EPWM_DigitalCompareFilterInput`

    Values that can be passed to EPWM_setDigitalCompareFilterInput() as the filterInput parameter.

    Values:

    enumerator `EPWM_DC_WINDOW_SOURCE_DCAEVT1` = 0

      DC filter signal source is DCAEVT1.

    enumerator `EPWM_DC_WINDOW_SOURCE_DCAEVT2` = 1

      DC filter signal source is DCAEVT2.

    enumerator `EPWM_DC_WINDOW_SOURCE_DCBEVT1` = 2

      DC filter signal source is DCBEVT1.

    enumerator `EPWM_DC_WINDOW_SOURCE_DCBEVT2` = 3

      DC filter signal source is DCBEVT2.

  enum `EPWM_DigitalCompareModule`

    Values that can be assigned to EPWM_setDigitalCompareEventSource(), EPWM_setDigitalCompareEventSyncMode(),EPWM_enableDigitalCompareSyncEvent() EPWM_enableDigitalCompareADCTrigger(),EPWM_disableDigitalCompareSyncEvent() EPWM_disableDigitalCompareADCTrigger() as the dcModule parameter.

    Values:

    enumerator `EPWM_DC_MODULE_A` = 0

      Digital Compare Module A.

    enumerator `EPWM_DC_MODULE_B` = 1

      Digital Compare Module B.

  enum `EPWM_DigitalCompareEvent`

    Values that can be passed to EPWM_setDigitalCompareEventSource(), EPWM_setDigitalCompareEventSyncMode as the dcEvent parameter.

    Values:

    enumerator `EPWM_DC_EVENT_1` = 0

      Digital Compare Event number 1.

    enumerator `EPWM_DC_EVENT_2` = 1

      Digital Compare Event number 2.

  enum `EPWM_DigitalCompareEventSource`

    Values that can be passed to EPWM_setDigitalCompareEventSource() as the dcEventSource parameter.

    Values:

    enumerator `EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL` = 0

      Signal source is unfiltered (DCAEVT1/2)

    enumerator `EPWM_DC_EVENT_SOURCE_FILT_SIGNAL` = 1

      Signal source is filtered (DCEVTFILT)

  enum `EPWM_DigitalCompareSyncMode`

    Values that can be passed to EPWM_setDigitalCompareEventSyncMode() as the syncMode parameter.

    Values:

    enumerator `EPWM_DC_EVENT_INPUT_SYNCED` = 0

      DC input signal is synced with TBCLK.

    enumerator `EPWM_DC_EVENT_INPUT_NOT_SYNCED` = 1

      DC input signal is not synced with TBCLK.

  enum `EPWM_DigitalCompareCBCLatchMode`

    Values that can be passed to EPWM_setDigitalCompareCBCLatchMode() as the latchMode parameter.

    Values:

    enumerator `EPWM_DC_CBC_LATCH_DISABLED` = 0x0

      DC cycle-by-cycle(CBC) latch is disabled.

    enumerator `EPWM_DC_CBC_LATCH_ENABLED` = 0x1

      DC cycle-by-cycle(CBC) latch is enabled.

  enum `EPWM_DigitalCompareCBCLatchClearEvent`

    Values that can be passed to EPWM_selectDigitalCompareCBCLatchClearEvent() as the latchMode parameter.

    Values:

    enumerator `EPWM_DC_CBC_LATCH_CLR_CNTR_ZERO` = 0x0

      Clear CBC latch when counter equals zero.

    enumerator `EPWM_DC_CBC_LATCH_CLR_ON_CNTR_PERIOD` = 0x1

      Clear CBC latch when counter equals period.

    enumerator `EPWM_DC_CBC_LATCH_CLR_ON_CNTR_ZERO_PERIOD` = 0x2

      Clear CBC latch when counter equals zero or period.

  enum `EPWM_selectCaptureGateInputPolarity`

    Values that can be passed to EPWM_configCaptureGateInputPolarity() as the polSel parameter.

    Values:

    enumerator `EPWM_CAPGATE_INPUT_ALWAYS_ON` = 0U

      Capture gate is always on.

    enumerator `EPWM_CAPGATE_INPUT_ALWAYS_OFF` = 1U

      Capture gate is always off.

    enumerator `EPWM_CAPGATE_INPUT_SYNC` = 2U

      Capture gate input is CAPGATE.sync.

    enumerator `EPWM_CAPGATE_INPUT_SYNC_INVERT` = 3U

      Capture gate input is CAPGATE.sync inverted.

  enum `EPWM_selectCaptureInputPolarity`

    Values that can be passed to EPWM_invertCaptureInputPolarity() as the polSel parameter.

    Values:

    enumerator `EPWM_CAPTURE_INPUT_CAPIN_SYNC` = 0U

      Capture input is not inverted.

    enumerator `EPWM_CAPTURE_INPUT_CAPIN_SYNC_INVERT` = 1U

      Capture input is inverted.

  enum `EPWM_CaptureInputType`

    Values that can be passed to EPWM_selectCaptureTripInput(), EPWM_enableCaptureTripCombinationInput(), EPWM_disableCaptureTripCombinationInput() as the dcType parameter.

    Values:

    enumerator `EPWM_CAPTURE_GATE` = 1U

      Capture Gate.

    enumerator `EPWM_CAPTURE_INPUT` = 0U

      Capture Input.

  enum `EPWM_GlobalLoadTrigger`

    Values that can be passed to EPWM_setGlobalLoadTrigger() as the loadTrigger parameter.

    Values:

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_ZERO` = 0x0

      Load when counter is equal to zero.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_PERIOD` = 0x1

      Load when counter is equal to period.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_ZERO_PERIOD` = 0x2

      Load when counter is equal to zero or period.

    enumerator `EPWM_GL_LOAD_PULSE_SYNC` = 0x3

      Load on sync event.

    enumerator `EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_ZERO` = 0x4

      Load on sync event or when counter is equal to zero.

    enumerator `EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_PERIOD` = 0x5

      Load on sync event or when counter is equal to period.

    enumerator `EPWM_GL_LOAD_PULSE_SYNC_CNTR_ZERO_PERIOD` = 0x6

      Load on sync event or when counter is equal to period or zero.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_U_CMPC` = 0x8

      Load when counter is equal to CMPC while incrementing.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_D_CMPC` = 0x9

      Load when counter is equal to CMPC while decrementing.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_U_CMPD` = 0xA

      Load when counter is equal to CMPD while incrementing.

    enumerator `EPWM_GL_LOAD_PULSE_CNTR_D_CMPD` = 0xB

      Load when counter is equal to CMPD while decrementing.

    enumerator `EPWM_GL_LOAD_PULSE_GLOBAL_FORCE` = 0xF

      Load on global force.

  enum `EPWM_ValleyTriggerSource`

    Values that can be passed to EPWM_setValleyTriggerSource() as the trigger parameter.

    Values:

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_SOFTWARE` = 0U

      Valley capture trigged by software.

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO` = 1U

      Valley capture trigged by when counter is equal to zero.

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_CNTR_PERIOD` = 2U

      Valley capture trigged by when counter is equal period.

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO_PERIOD` = 3U

      Valley capture trigged when counter is equal to zero or period.

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_DCAEVT1` = 4U

      Valley capture trigged by DCAEVT1 (Digital Compare A event 1)

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_DCAEVT2` = 5U

      Valley capture trigged by DCAEVT2 (Digital Compare A event 2)

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_DCBEVT1` = 6U

      Valley capture trigged by DCBEVT1 (Digital Compare B event 1)

    enumerator `EPWM_VALLEY_TRIGGER_EVENT_DCBEVT2` = 7U

      Valley capture trigged by DCBEVT2 (Digital Compare B event 2)

  enum `EPWM_ValleyCounterEdge`

    Values that can be passed to EPWM_getValleyCountEdgeStatus() as the edge parameter.

    Values:

    enumerator `EPWM_VALLEY_COUNT_START_EDGE` = 0

      Valley count start edge.

    enumerator `EPWM_VALLEY_COUNT_STOP_EDGE` = 1

      Valley count stop edge.

  enum `EPWM_ValleyDelayMode`

    Values that can be passed to EPWM_setValleyDelayValue() as the delayMode parameter.

    Values:

    enumerator `EPWM_VALLEY_DELAY_MODE_SW_DELAY` = 0U

      Delay value equals the offset value defines by software.

    enumerator `EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SW_DELAY` = 1U

      Delay value equals the sum of the Hardware counter value and the offset value defines by software

    enumerator `EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_1_SW_DELAY` = 2U

      Delay value equals the the Hardware counter shifted by (1 + the offset value defines by software)

    enumerator `EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_2_SW_DELAY` = 3U

      Delay value equals the the Hardware counter shifted by (2 + the offset value defines by software)

    enumerator `EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_4_SW_DELAY` = 4U

      Delay value equals the the Hardware counter shifted by (4 + the offset value defines by software)

  enum `EPWM_DigitalCompareEdgeFilterMode`

    Values that can be passed to EPWM_setDigitalCompareEdgeFilterMode() as the edgeMode parameter.

    Values:

    enumerator `EPWM_DC_EDGEFILT_MODE_RISING` = 0

      Digital Compare Edge filter low to high edge mode

    enumerator `EPWM_DC_EDGEFILT_MODE_FALLING` = 1

      Digital Compare Edge filter high to low edge mode

    enumerator `EPWM_DC_EDGEFILT_MODE_BOTH` = 2

      Digital Compare Edge filter both edges mode

  enum `EPWM_DigitalCompareEdgeFilterEdgeCount`

    Values that can be passed to EPWM_setDigitalCompareEdgeFilterEdgeCount() as the edgeCount parameter.

    Values:

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_0` = 0

      Digital Compare Edge filter edge count = 0

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_1` = 1

      Digital Compare Edge filter edge count = 1

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_2` = 2

      Digital Compare Edge filter edge count = 2

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_3` = 3

      Digital Compare Edge filter edge count = 3

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_4` = 4

      Digital Compare Edge filter edge count = 4

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_5` = 5

      Digital Compare Edge filter edge count = 5

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_6` = 6

      Digital Compare Edge filter edge count = 6

    enumerator `EPWM_DC_EDGEFILT_EDGECNT_7` = 7

      Digital Compare Edge filter edge count = 7

  enum `EPWM_ETMixTriggerSource`

    Values that can be passed to EPWM_setMixEvtTriggerSource() as the interruptSource parameter.

    Values:

    enumerator `EPWM_ETMIX_TBCTR_ZERO` = 0

      Time-base counter equal to zero.

    enumerator `EPWM_ETMIX_TBCTR_PERIOD` = 1

      Time-base counter equal to period.

    enumerator `EPWM_ETMIX_TBCTR_U_CMPA` = 2

      Time-base counter equal to CMPA when the timer is incrementing.

    enumerator `EPWM_ETMIX_TBCTR_D_CMPA` = 3

      Time-base counter equal to CMPA when the timer is decrementing.

    enumerator `EPWM_ETMIX_TBCTR_U_CMPB` = 4

      Time-base counter equal to CMPB when the timer is incrementing.

    enumerator `EPWM_ETMIX_TBCTR_D_CMPB` = 5

      Time-base counter equal to CMPB when the timer is decrementing.

    enumerator `EPWM_ETMIX_TBCTR_U_CMPC` = 6

      Time-base counter equal to CMPC when the timer is incrementing.

    enumerator `EPWM_ETMIX_TBCTR_D_CMPC` = 7

      Time-base counter equal to CMPC when the timer is decrementing.

    enumerator `EPWM_ETMIX_TBCTR_U_CMPD` = 8

      Time-base counter equal to CMPD when the timer is incrementing.

    enumerator `EPWM_ETMIX_TBCTR_D_CMPD` = 9

      Time-base counter equal to CMPD when the timer is decrementing.

    enumerator `EPWM_ETMIX_DCAEVT1` = 10

      Event is based on DCAEVT1.

  enum `EPWM_ETMixSignalSelect`

    Values that can be passed to EPWM_setMixEvtTriggerSource() as the etmixSignal parameter.

    Values:

    enumerator `EPWM_ETMIX_INTERRUPT` = 0x0U

      Mixed ET Interrupt signal.

    enumerator `EPWM_ETMIX_SOCA` = 0x2U

      Mixed ET SOCA signal.

    enumerator `EPWM_ETMIX_SOCB` = 0x4U

      Mixed ET SOCB signal.

  enum `EPWM_LockRegisterGroup`

    Values that can be passed to EPWM_lockRegisters() as the registerGroup parameter.

    Values:

    enumerator `EPWM_REGISTER_GROUP_GLOBAL_LOAD` = 0x2

      Global load register group.

    enumerator `EPWM_REGISTER_GROUP_TRIP_ZONE` = 0x4

      Trip zone register group.

    enumerator `EPWM_REGISTER_GROUP_TRIP_ZONE_CLEAR` = 0x8

      Trip zone clear group.

    enumerator `EPWM_REGISTER_GROUP_DIGITAL_COMPARE` = 0x10

      Digital compare group.

  Functions

  void `EPWM_setTimeBaseCounter`(uint32_t base, uint16_t count)

    Set the time base count

    This function sets the 16 bit counter value of the time base counter.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `count`: is the time base count value.

    Return

      None.

  void `EPWM_setCountModeAfterSync`(uint32_t base, EPWM_SyncCountMode mode)

    Set count mode after phase shift sync

    This function sets the time base count to count up or down after a new phase value set by the

    EPWM_setPhaseShift(). The count direction is determined by the variable mode. Valid inputs for mode are:

    - EPWM_COUNT_MODE_UP_AFTER_SYNC - Count up after sync

    - EPWM_COUNT_MODE_DOWN_AFTER_SYNC - Count down after sync

    Parameters

      - `base`: is the base address of the EPWM module.

      - `mode`: is the count mode.

    Return

      None.

  void `EPWM_setClockPrescaler`(uint32_t base, EPWM_ClockDivider prescaler, EPWM_HSClockDivider highSpeedPrescaler)

    Set the time base clock and the high speed time base clock count pre-scaler

    This function sets the pre scaler(divider)value for the time base clock counter and the high speed time base clock counter. Valid values for pre-scaler and highSpeedPrescaler are EPWM_CLOCK_DIVIDER_X, where X is 1,2,4,8,16, 32,64 or 128. The actual numerical values for these macros represent values 0,1…7. The equation for the output clock is: TBCLK = EPWMCLK/(highSpeedPrescaler * pre-scaler)

    Parameters

      - `base`: is the base address of the EPWM module.

      - `prescaler`: is the time base count pre scale value.

      - `highSpeedPrescaler`: is the high speed time base count pre scale value.

    Note: EPWMCLK is a scaled version of SYSCLK. At reset EPWMCLK is half SYSCLK.

    Return

      None.

  void `EPWM_forceSyncPulse`(uint32_t base)

    Force a software sync pulse

    This function causes a single software initiated sync pulse. Make sure the appropriate mode is selected using EPWM_setupSyncOutputMode() before using this function.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setSyncInPulseSource`(uint32_t base, EPWM_SyncInPulseSource source)

    Set up the source for sync-in pulse.

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

    - EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1-16 - sync-in pulse source can be any of the EPWM1-16 sync-out signal

    - EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP1-7 - sync-in pulse source can be selected as any of the ECAP1-16 sync-out signal

    - EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT5-6 - sync-in pulse source can be selected as any of the Input xbar out5-6 signal

    - EPWM_SYNC_IN_PULSE_SRC_ETHERCAT_SYNC0-1 - sync-in pulse source can be selected as any of the Ethercat sync0-1 signal

    - EPWM_SYNC_IN_PULSE_SRC_DISABLE - sync-in pulse is disabled for the EPWM module

    Parameters

      - `base`: is the base address of the EPWM module.

      - `source`: is the sync-in pulse source.

    Return

      None.

  void `EPWM_enableSyncOutPulseSource`(uint32_t base, uint16_t source)

    Enables sync-out pulse source.

    This function enables the sync-out pulse source. Below valid values for param

    source can be OR’d together to enable multiple sync-out sources:

    - EPWM_SYNC_OUT_PULSE_ON_SOFTWARE - sync-out pulse is generated by software when EPWM_forceSyncPulse() function is called.

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO - sync-out pulse is generated when time base counter equals zero.

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B - sync-out pulse is generated when time base counter equals compare B value.

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C - sync-out pulse is generated when time base counter equals compare C value.

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D - sync-out pulse is generated when time base counter equals compare D value.

    - EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC - sync-out pulse is generated by DCA event1 sync signal

    - EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC - sync-out pulse is generated by DCB event1 sync signal

    - EPWM_SYNC_OUT_PULSE_ON_ALL - sync-out pulse is generated by all the above sources

    Parameters

      - `base`: is the base address of the EPWM module.

      - `source`: is the sync-out pulse source.

    Return

      None.

  void `EPWM_disableSyncOutPulseSource`(uint32_t base, uint16_t source)

    Disables sync-out pulse source.

    This function disables the sync-out pulse source. Below valid values for param

    source can be OR’d together to disable multiple sync-out sources:

    - EPWM_SYNC_OUT_PULSE_ON_SOFTWARE - disables software as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO - disables counter equal to zero event as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B - disables counter equal to cmpb event as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C - disables counter equal to cmpc event as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D - disables counter equal to cmpd event as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC - disables DCA event1 sync signal as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC - disables DCB event1 sync signal as sync-out source

    - EPWM_SYNC_OUT_PULSE_ON_ALL - disables all the above sync-out sources

    Parameters

      - `base`: is the base address of the EPWM module.

      - `source`: is the sync-out pulse source.

    Return

      None.

  void `EPWM_setOneShotSyncOutTrigger`(uint32_t base, EPWM_OneShotSyncOutTrigger trigger)

    Set up the one-shot sync-out trigger source.

    This function sets the one-shot sync-out trigger source. Valid values for param

    trigger are:

    - EPWM_OSHT_SYNC_OUT_TRIG_SYNC - Trigger for one-shot sync-out signal is one-shot sync event.

    - EPWM_OSHT_SYNC_OUT_TRIG_RELOAD - Trigger for one-shot sync-out signal is one-shot reload event.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `trigger`: is the one-shot sync-out signal trigger source.

    Return

      None.

  void `EPWM_setPeriodLoadMode`(uint32_t base, EPWM_PeriodLoadMode loadMode)

    Set PWM period load mode.

    This function sets the load mode for the PWM period. If loadMode is set to EPWM_PERIOD_SHADOW_LOAD, a write or read to the TBPRD (PWM Period count register) accesses the shadow register. If loadMode is set to EPWM_PERIOD_DIRECT_LOAD, a write or read to the TBPRD register accesses the register directly.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadMode`: is the PWM period load mode.

    Return

      None.

  void `EPWM_enablePhaseShiftLoad`(uint32_t base)

    Enable phase shift load

    This function enables loading of phase shift when the appropriate sync event occurs.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disablePhaseShiftLoad`(uint32_t base)

    Disable phase shift load

    This function disables loading of phase shift.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setTimeBaseCounterMode`(uint32_t base, EPWM_TimeBaseCountMode counterMode)

    Set time base counter mode

    This function sets up the time base counter mode. Valid values for counterMode are:

    - EPWM_COUNTER_MODE_UP - Up - count mode.

    - EPWM_COUNTER_MODE_DOWN - Down - count mode.

    - EPWM_COUNTER_MODE_UP_DOWN - Up - down - count mode.

    - EPWM_COUNTER_MODE_STOP_FREEZE - Stop - Freeze counter.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `counterMode`: is the time base counter mode.

    Return

      None.

  void `EPWM_selectPeriodLoadEvent`(uint32_t base, EPWM_PeriodShadowLoadMode shadowLoadMode)

    Set shadow to active period load on sync mode

    This function sets up the shadow to active Period register load mode with respect to a sync event. Valid values for shadowLoadMode are:

    - EPWM_SHADOW_LOAD_MODE_COUNTER_ZERO - shadow to active load occurs when time base counter reaches 0.

    - EPWM_SHADOW_LOAD_MODE_COUNTER_SYNC - shadow to active load occurs when time base counter reaches 0 and a SYNC occurs.

    - EPWM_SHADOW_LOAD_MODE_SYNC - shadow to active load occurs only when a SYNC occurs.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `shadowLoadMode`: is the shadow to active load mode.

    Return

      None.

  void `EPWM_enableOneShotSync`(uint32_t base)

    Enable one shot sync mode

    This function enables one shot sync mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableOneShotSync`(uint32_t base)

    Disable one shot sync mode

    This function disables one shot sync mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_startOneShotSync`(uint32_t base)

    Start one shot sync mode

    This function propagates a one shot sync pulse.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  uint16_t `EPWM_getTimeBaseCounterValue`(uint32_t base)

    Returns time base counter value.

    This function returns the current value of the time base counter.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      returns time base counter value

  bool `EPWM_getTimeBaseCounterOverflowStatus`(uint32_t base)

    Return time base counter maximum status.

    This function returns the status of the time base max counter.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns true if the counter has reached 0xFFFF. Returns false if the counter hasn’t reached 0xFFFF.

  void `EPWM_clearTimeBaseCounterOverflowEvent`(uint32_t base)

    Clear max time base counter event.

    This function clears the max time base counter latch event. The latch event occurs when the time base counter reaches its maximum value of 0xFFFF.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  bool `EPWM_getSyncStatus`(uint32_t base)

    Return external sync signal status.

    This function returns the external sync signal status.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns true if if an external sync signal event Returns false if there is no event.

  void `EPWM_clearSyncEvent`(uint32_t base)

    Clear external sync signal event.

    This function clears the external sync signal latch event.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  uint16_t `EPWM_getTimeBaseCounterDirection`(uint32_t base)

    Return time base counter direction.

    This function returns the direction of the time base counter.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      returns EPWM_TIME_BASE_STATUS_COUNT_UP if the counter is counting up or EPWM_TIME_BASE_STATUS_COUNT_DOWN if the counter is counting down.

  void `EPWM_setPhaseShift`(uint32_t base, uint16_t phaseCount)

    Sets the phase shift offset counter value.

    This function sets the 16 bit time-base counter phase of the ePWM relative to the time-base that is supplying the synchronization input signal. Call the

    EPWM_enablePhaseShiftLoad() function to enable loading of the phaseCount phase shift value when a sync event occurs.
    Parameters

      - `base`: is the base address of the EPWM module.

      - `phaseCount`: is the phase shift count value.

    Return

      None.

  void `EPWM_setTimeBasePeriod`(uint32_t base, uint16_t periodCount)

    Sets the PWM period count.

    This function sets the period of the PWM count. The value of periodCount is the value written to the register. User should map the desired period or frequency of the waveform into the correct periodCount. Invoke the function

    EPWM_selectPeriodLoadEvent() with the appropriate parameter to set the load mode of the Period count. periodCount has a maximum valid value of 0xFFFF
    Parameters

      - `base`: is the base address of the EPWM module.

      - `periodCount`: is period count value.

    Return

      None.

  uint16_t `EPWM_getTimeBasePeriod`(uint32_t base)

    Gets the PWM period count.

    This function gets the period of the PWM count.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      The period count value.

  void `EPWM_setupEPWMLinks`(uint32_t base, EPWM_CurrentLink epwmLink, EPWM_LinkComponent linkComp)

    Sets the EPWM links.

    This function links the component defined in linkComp in the current ePWM instance with the linkComp component of the ePWM instance defined by epwmLink. A change (a write) in the value of linkComp component of epwmLink instance, causes a change in the current ePWM linkComp component. For example if the current ePWM is ePWM3 and the values of epwmLink and linkComp are EPWM_LINK_WITH_EPWM_1 and EPWM_LINK_COMP_C respectively, then a write to COMPC register in ePWM1, will result in a simultaneous write to COMPC register in ePWM3. Valid values for epwmLink are:

    - EPWM_LINK_WITH_EPWM_17 - link current ePWM with ePWM17

    - EPWM_LINK_WITH_EPWM_18 - link current ePWM with ePWM18

    - EPWM_LINK_WITH_EPWM_1 - link current ePWM with ePWM1

    - EPWM_LINK_WITH_EPWM_2 - link current ePWM with ePWM2

    - EPWM_LINK_WITH_EPWM_3 - link current ePWM with ePWM3

    - EPWM_LINK_WITH_EPWM_4 - link current ePWM with ePWM4

    - EPWM_LINK_WITH_EPWM_5 - link current ePWM with ePWM5

    - EPWM_LINK_WITH_EPWM_6 - link current ePWM with ePWM6

    - EPWM_LINK_WITH_EPWM_7 - link current ePWM with ePWM7

    - EPWM_LINK_WITH_EPWM_8 - link current ePWM with ePWM8

    - EPWM_LINK_WITH_EPWM_9 - link current ePWM with ePWM9

    - EPWM_LINK_WITH_EPWM_10 - link current ePWM with ePWM10

    - EPWM_LINK_WITH_EPWM_11 - link current ePWM with ePWM11

    - EPWM_LINK_WITH_EPWM_12 - link current ePWM with ePWM12

    - EPWM_LINK_WITH_EPWM_13 - link current ePWM with ePWM13

    - EPWM_LINK_WITH_EPWM_14 - link current ePWM with ePWM14

    - EPWM_LINK_WITH_EPWM_15 - link current ePWM with ePWM15

    - EPWM_LINK_WITH_EPWM_16 - link current ePWM with ePWM16

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmLink`: is the ePWM instance to link with.

      - `linkComp`: is the ePWM component to link.

    Valid values for linkComp are:

    - EPWM_LINK_TBPRD - link TBPRD:TBPRDHR registers

    - EPWM_LINK_COMP_A - link COMPA registers

    - EPWM_LINK_COMP_B - link COMPB registers

    - EPWM_LINK_COMP_C - link COMPC registers

    - EPWM_LINK_COMP_D - link COMPD registers

    - EPWM_LINK_GLDCTL2 - link GLDCTL2 registers

    - EPWM_LINK_DBRED - link DBRED registers

    - EPWM_LINK_DBFED - link DBFED registers

    - EPWM_LINK_XLOAD - link XLOAD registers

    Return

      None.

  void `EPWM_setCounterCompareShadowLoadMode`(uint32_t base, EPWM_CounterCompareModule compModule, EPWM_CounterCompareLoadMode loadMode)

    Sets up the Counter Compare shadow load mode

    This function enables and sets up the counter compare shadow load mode. Valid values for the variables are:

    - compModule

      - EPWM_COUNTER_COMPARE_A - counter compare A.

      - EPWM_COUNTER_COMPARE_B - counter compare B.

      - EPWM_COUNTER_COMPARE_C - counter compare C.

      - EPWM_COUNTER_COMPARE_D - counter compare D.

    - loadMode

      - EPWM_COMP_LOAD_ON_CNTR_ZERO - load when counter equals zero

      - EPWM_COMP_LOAD_ON_CNTR_PERIOD - load when counter equals period

      - EPWM_COMP_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period

      - EPWM_COMP_LOAD_FREEZE - Freeze shadow to active load

      - EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO - load when counter equals zero

      - EPWM_COMP_LOAD_ON_SYNC_CNTR_PERIOD -load when counter equals period

      - EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO_PERIOD - load when counter equals zero or period

      - EPWM_COMP_LOAD_ON_SYNC_ONLY - load on sync only

    Parameters

      - `base`: is the base address of the EPWM module.

      - `compModule`: is the counter compare module.

      - `loadMode`: is the shadow to active load mode.

    Return

      None.

  void `EPWM_disableCounterCompareShadowLoadMode`(uint32_t base, EPWM_CounterCompareModule compModule)

    Disable Counter Compare shadow load mode

    This function disables counter compare shadow load mode. Valid values for the variables are:

    - compModule

      - EPWM_COUNTER_COMPARE_A - counter compare A.

      - EPWM_COUNTER_COMPARE_B - counter compare B.

      - EPWM_COUNTER_COMPARE_C - counter compare C.

      - EPWM_COUNTER_COMPARE_D - counter compare D.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `compModule`: is the counter compare module.

    Return

      None.

  void `EPWM_setCounterCompareValue`(uint32_t base, EPWM_CounterCompareModule compModule, uint16_t compCount)

    Set counter compare values.

    This function sets the counter compare value for counter compare registers. The maximum value for compCount is 0xFFFF. Valid values for compModule are:

    - EPWM_COUNTER_COMPARE_A - counter compare A.

    - EPWM_COUNTER_COMPARE_B - counter compare B.

    - EPWM_COUNTER_COMPARE_C - counter compare C.

    - EPWM_COUNTER_COMPARE_D - counter compare D.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `compModule`: is the Counter Compare value module.

      - `compCount`: is the counter compare count value.

    Return

      None.

  uint16_t `EPWM_getCounterCompareValue`(uint32_t base, EPWM_CounterCompareModule compModule)

    Get counter compare values.

    This function gets the counter compare value for counter compare registers. Valid values for compModule are:

    - EPWM_COUNTER_COMPARE_A - counter compare A.

    - EPWM_COUNTER_COMPARE_B - counter compare B.

    - EPWM_COUNTER_COMPARE_C - counter compare C.

    - EPWM_COUNTER_COMPARE_D - counter compare D.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `compModule`: is the Counter Compare value module.

    Return

      The counter compare count value.

  bool `EPWM_getCounterCompareShadowStatus`(uint32_t base, EPWM_CounterCompareModule compModule)

    Return the counter compare shadow register full status.

    This function returns the counter Compare shadow register full status flag. Valid values for compModule are:

    - EPWM_COUNTER_COMPARE_A - counter compare A.

    - EPWM_COUNTER_COMPARE_B - counter compare B.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `compModule`: is the Counter Compare value module.

    Return

      Returns true if the shadow register is full. Returns false if the shadow register is not full.

  void `EPWM_enableLinkDutyHR`(uint32_t base)

    Enable CMPAHR, CMPBHR register linking

    This function enables CMPAHR and CMPBHR register linking. CMPBHR assumes the same value as CMPAHR.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableLinkDutyHR`(uint32_t base)

    Disable CMPAHR, CMPBHR register linking

    This function disables CMPAHR and CMPBHR register linking. CMPAHR and CMPBHR operate independently.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setActionQualifierShadowLoadMode`(uint32_t base, EPWM_ActionQualifierModule aqModule, EPWM_ActionQualifierLoadMode loadMode)

    Sets the Action Qualifier shadow load mode

    This function enables and sets the Action Qualifier shadow load mode. Valid values for the variables are:

    - aqModule

      - EPWM_ACTION_QUALIFIER_A - Action Qualifier A.

      - EPWM_ACTION_QUALIFIER_B - Action Qualifier B.

    - loadMode

      - EPWM_AQ_LOAD_ON_CNTR_ZERO - load when counter equals zero

      - EPWM_AQ_LOAD_ON_CNTR_PERIOD - load when counter equals period

      - EPWM_AQ_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period

      - EPWM_AQ_LOAD_FREEZE - Freeze shadow to active load

      - EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO - load on sync or when counter equals zero

      - EPWM_AQ_LOAD_ON_SYNC_CNTR_PERIOD - load on sync or when counter equals period

      - EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO_PERIOD - load on sync or when counter equals zero or period

      - EPWM_AQ_LOAD_ON_SYNC_ONLY - load on sync only

    Parameters

      - `base`: is the base address of the EPWM module.

      - `aqModule`: is the Action Qualifier module value.

      - `loadMode`: is the shadow to active load mode.

    Return

      None.

  void `EPWM_disableActionQualifierShadowLoadMode`(uint32_t base, EPWM_ActionQualifierModule aqModule)

    Disable Action Qualifier shadow load mode

    This function disables the Action Qualifier shadow load mode. Valid values for the variables are:

    - aqModule

      - EPWM_ACTION_QUALIFIER_A - Action Qualifier A.

      - EPWM_ACTION_QUALIFIER_B - Action Qualifier B.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `aqModule`: is the Action Qualifier module value.

    Return

      None.

  void `EPWM_setActionQualifierT1TriggerSource`(uint32_t base, EPWM_ActionQualifierTriggerSource trigger)

    Set up Action qualifier trigger source for event T1

    This function sets up the sources for Action Qualifier event T1. Valid values for trigger are:

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_1 - Digital compare event A 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_2 - Digital compare event A 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_1 - Digital compare event B 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_2 - Digital compare event B 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_1 - Trip zone 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_2 - Trip zone 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_3 - Trip zone 3

    - EPWM_AQ_TRIGGER_EVENT_TRIG_EPWM_SYNCIN - ePWM sync

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DC_EVTFILT - Digital compare filter event

    Parameters

      - `base`: is the base address of the EPWM module.

      - `trigger`: sources for Action Qualifier triggers.

    Return

      None.

  void `EPWM_setActionQualifierT2TriggerSource`(uint32_t base, EPWM_ActionQualifierTriggerSource trigger)

    Set up Action qualifier trigger source for event T2

    This function sets up the sources for Action Qualifier event T2. Valid values for trigger are:

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_1 - Digital compare event A 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_2 - Digital compare event A 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_1 - Digital compare event B 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_2 - Digital compare event B 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_1 - Trip zone 1

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_2 - Trip zone 2

    - EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_3 - Trip zone 3

    - EPWM_AQ_TRIGGER_EVENT_TRIG_EPWM_SYNCIN - ePWM sync

    - EPWM_AQ_TRIGGER_EVENT_TRIG_DC_EVTFILT - Digital compare filter event

    Parameters

      - `base`: is the base address of the EPWM module.

      - `trigger`: sources for Action Qualifier triggers.

    Return

      None.

  void `EPWM_setActionQualifierAction`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output, EPWM_ActionQualifierOutputEvent event)

    Set up Action qualifier outputs

    This function sets up the Action Qualifier output on ePWM A or ePWMB, depending on the value of epwmOutput, to a value specified by outPut based on the input events - specified by event. The following are valid values for the parameters.

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output

    - output

      - EPWM_AQ_OUTPUT_NO_CHANGE - No change in the output pins

      - EPWM_AQ_OUTPUT_LOW - Set output pins to low

      - EPWM_AQ_OUTPUT_HIGH - Set output pins to High

      - EPWM_AQ_OUTPUT_TOGGLE - Toggle the output pins

    - event

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO - Time base counter equals zero

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_PERIOD - Time base counter equals period

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPA - Time base counter up equals COMPA

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPA - Time base counter down equals COMPA

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPB - Time base counter up equals COMPB

      - EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPB - Time base counter down equals COMPB

      - EPWM_AQ_OUTPUT_ON_T1_COUNT_UP - T1 event on count up

      - EPWM_AQ_OUTPUT_ON_T1_COUNT_DOWN - T1 event on count down

      - EPWM_AQ_OUTPUT_ON_T2_COUNT_UP - T2 event on count up

      - EPWM_AQ_OUTPUT_ON_T2_COUNT_DOWN - T2 event on count down

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

      - `output`: is the Action Qualifier output.

      - `event`: is the event that causes a change in output.

    Return

      None.

  void `EPWM_setActionQualifierActionComplete`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, uint16_t action)

    Set up Action qualifier event outputs

    This function sets up the Action Qualifier output on ePWMA or ePWMB, depending on the value of epwmOutput, to a value specified by action. Valid action param values from different time base counter scenarios should be OR’d together to configure complete action for a pwm output. The following are valid values for the parameters.

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output

    - action

      - When time base counter equals zero

        - EPWM_AQ_OUTPUT_NO_CHANGE_ZERO - Time base counter equals zero and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_ZERO - Time base counter equals zero and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_ZERO - Time base counter equals zero and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_ZERO - Time base counter equals zero and toggle the output pins

      - When time base counter equals period

        - EPWM_AQ_OUTPUT_NO_CHANGE_PERIOD - Time base counter equals period and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_PERIOD - Time base counter equals period and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_PERIOD - Time base counter equals period and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_PERIOD - Time base counter equals period and toggle the output pins

      - When time base counter equals CMPA during up-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPA - Time base counter up equals COMPA and no change in the output pins

        - EPWM_AQ_OUTPUT_LOW_UP_CMPA - Time base counter up equals COMPA and set output pins low

        - EPWM_AQ_OUTPUT_HIGH_UP_CMPA - Time base counter up equals COMPA and set output pins high

        - EPWM_AQ_OUTPUT_TOGGLE_UP_CMPA - Time base counter up equals COMPA and toggle output pins

      - When time base counter equals CMPA during down-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPA - Time base counter down equals COMPA and no change in the output pins

        - EPWM_AQ_OUTPUT_LOW_DOWN_CMPA - Time base counter down equals COMPA and set output pins low

        - EPWM_AQ_OUTPUT_HIGH_DOWN_CMPA - Time base counter down equals COMPA and set output pins high

        - EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPA - Time base counter down equals COMPA and toggle output pins

      - When time base counter equals CMPB during up-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPB - Time base counter up equals COMPB and no change in the output pins

        - EPWM_AQ_OUTPUT_LOW_UP_CMPB - Time base counter up equals COMPB and set output pins low

        - EPWM_AQ_OUTPUT_HIGH_UP_CMPB - Time base counter up equals COMPB and set output pins high

        - EPWM_AQ_OUTPUT_TOGGLE_UP_CMPB - Time base counter up equals COMPB and toggle output pins

      - When time base counter equals CMPB during down-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPB- Time base counter down equals COMPB and no change in the output pins

        - EPWM_AQ_OUTPUT_LOW_DOWN_CMPB - Time base counter down equals COMPB and set output pins low

        - EPWM_AQ_OUTPUT_HIGH_DOWN_CMPB - Time base counter down equals COMPB and set output pins high

        - EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPB - Time base counter down equals COMPB and toggle output pins

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

      - `action`: is the desired action when the specified event occurs

    note: A logical OR of the valid values should be passed as the action parameter. Single action should be configured for each time base counter scenario.

    Return

      None.

  void `EPWM_setAdditionalActionQualifierActionComplete`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, uint16_t action)

    Set up Additional action qualifier event outputs

    This function sets up the Additional Action Qualifier output on ePWMA or ePWMB depending on the value of epwmOutput, to a value specified by action. Valid action param values from different event scenarios should be OR’d together to configure complete action for a pwm output. The following are valid values for the parameters.

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output

    - action

      - When T1 event occurs during up-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_UP_T1 - T1 event on count up and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_UP_T1 - T1 event on count up and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_UP_T1 - T1 event on count up and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_UP_T1 - T1 event on count up and toggle the output pins

      - When T1 event occurs during down-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T1- T1 event on count down and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_DOWN_T1 - T1 event on count down and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_DOWN_T1 - T1 event on count down and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_DOWN_T1 - T1 event on count down and toggle the output pins

      - When T2 event occurs during up-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_UP_T2 - T2 event on count up and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_UP_T2 - T2 event on count up and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_UP_T2 - T2 event on count up and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_UP_T2 - T2 event on count up and toggle the output pins

      - When T2 event occurs during down-count

        - EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T2 - T2 event on count down and no change in output pins

        - EPWM_AQ_OUTPUT_LOW_DOWN_T2 - T2 event on count down and set output pins to low

        - EPWM_AQ_OUTPUT_HIGH_DOWN_T2 - T2 event on count down and set output pins to high

        - EPWM_AQ_OUTPUT_TOGGLE_DOWN_T2 - T2 event on count down and toggle the output pins

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

      - `action`: is the desired action when the specified event occurs

    note: A logical OR of the valid values should be passed as the action parameter. Single action should be configured for each event scenario.

    Return

      None.

  void `EPWM_setActionQualifierContSWForceShadowMode`(uint32_t base, EPWM_ActionQualifierContForce mode)

    Sets up Action qualifier continuous software load mode.

    This function sets up the AQCFRSC register load mode for continuous software force reload mode. The software force actions are determined by the

    EPWM_setActionQualifierContSWForceAction() function. Valid values for mode are:

    - EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO - shadow mode load when counter equals zero

    - EPWM_AQ_SW_SH_LOAD_ON_CNTR_PERIOD - shadow mode load when counter equals period

    - EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO_PERIOD - shadow mode load when counter equals zero or period

    - EPWM_AQ_SW_IMMEDIATE_LOAD - immediate mode load only

    Parameters

      - `base`: is the base address of the EPWM module.

      - `mode`: is the mode for shadow to active load mode.

    Return

      None.

  void `EPWM_setActionQualifierContSWForceAction`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierSWOutput output)

    Triggers a continuous software forced event.

    This function triggers a continuous software forced Action Qualifier output on ePWM A or B based on the value of epwmOutput. Valid values for the parameters are:

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output

    - output

      - EPWM_AQ_SW_DISABLED - Software forcing disabled.

      - EPWM_AQ_SW_OUTPUT_LOW - Set output pins to low

      - EPWM_AQ_SW_OUTPUT_HIGH - Set output pins to High

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

      - `output`: is the Action Qualifier output.

    Return

      None.

  void `EPWM_setActionQualifierSWAction`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output)

    Set up one time software forced Action qualifier outputs

    This function sets up the one time software forced Action Qualifier output on ePWM A or ePWMB, depending on the value of epwmOutput to a value specified by outPut. The following are valid values for the parameters.

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output

    - output

      - EPWM_AQ_OUTPUT_NO_CHANGE - No change in the output pins

      - EPWM_AQ_OUTPUT_LOW - Set output pins to low

      - EPWM_AQ_OUTPUT_HIGH - Set output pins to High

      - EPWM_AQ_OUTPUT_TOGGLE - Toggle the output pins

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

      - `output`: is the Action Qualifier output.

    Return

      None.

  void `EPWM_forceActionQualifierSWAction`(uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput)

    Triggers a one time software forced event on Action qualifier

    This function triggers a one time software forced Action Qualifier event on ePWM A or B based on the value of epwmOutput. Valid values for epwmOutput are:

    - EPWM_AQ_OUTPUT_A - ePWMxA output

    - EPWM_AQ_OUTPUT_B - ePWMxB output

    Parameters

      - `base`: is the base address of the EPWM module.

      - `epwmOutput`: is the ePWM pin type.

    Return

      None.

  void `EPWM_setDeadBandOutputSwapMode`(uint32_t base, EPWM_DeadBandOutput output, bool enableSwapMode)

    Sets Dead Band signal output swap mode.

    This function sets up the output signal swap mode. For example if the output variable is set to EPWM_DB_OUTPUT_A and enableSwapMode is true, then the ePWM A output gets its signal from the ePWM B signal path. Valid values for the input variables are:

    - output

      - EPWM_DB_OUTPUT_A - ePWM output A

      - EPWM_DB_OUTPUT_B - ePWM output B

    - enableSwapMode

      - true - the output is swapped

      - false - the output and the signal path are the same.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `output`: is the ePWM Dead Band output.

      - `enableSwapMode`: is the output swap mode.

    Return

      None.

  void `EPWM_setDeadBandDelayMode`(uint32_t base, EPWM_DeadBandDelayMode delayMode, bool enableDelayMode)

    Sets Dead Band signal output mode.

    This function sets up the dead band delay mode. The delayMode variable determines if the applied delay is Rising Edge or Falling Edge. The enableDelayMode determines if a dead band delay should be applied. Valid values for the variables are:

    - delayMode

      - EPWM_DB_RED - Rising Edge delay

      - EPWM_DB_FED - Falling Edge delay

    - enableDelayMode

      - true - Falling edge or Rising edge delay is applied.

      - false - Dead Band delay is bypassed.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `delayMode`: is the Dead Band delay type.

      - `enableDelayMode`: is the dead band delay mode.

    Return

      None.

  void `EPWM_setDeadBandDelayPolarity`(uint32_t base, EPWM_DeadBandDelayMode delayMode, EPWM_DeadBandPolarity polarity)

    Sets Dead Band delay polarity.

    This function sets up the polarity as determined by the variable polarity of the Falling Edge or Rising Edge delay depending on the value of delayMode. Valid values for the variables are:

    - delayMode

      - EPWM_DB_RED - Rising Edge delay

      - EPWM_DB_FED - Falling Edge delay

    - polarity

      - EPWM_DB_POLARITY_ACTIVE_HIGH - polarity is not inverted.

      - EPWM_DB_POLARITY_ACTIVE_LOW - polarity is inverted.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `delayMode`: is the Dead Band delay type.

      - `polarity`: is the polarity of the delayed signal.

    Return

      None.

  void `EPWM_setRisingEdgeDeadBandDelayInput`(uint32_t base, uint16_t input)

    Sets Rising Edge Dead Band delay input.

    This function sets up the rising Edge delay input signal. Valid values for input are:

    - EPWM_DB_INPUT_EPWMA - Input signal is ePWMA( Valid for both Falling Edge and Rising Edge)

    - EPWM_DB_INPUT_EPWMB - Input signal is ePWMB( Valid for both Falling Edge and Rising Edge)

    Parameters

      - `base`: is the base address of the EPWM module.

      - `input`: is the input signal to the dead band.

    Return

      None.

  void `EPWM_setFallingEdgeDeadBandDelayInput`(uint32_t base, uint16_t input)

    Sets Dead Band delay input.

    This function sets up the rising Edge delay input signal. Valid values for input are:

    - EPWM_DB_INPUT_EPWMA - Input signal is ePWMA(Valid for both Falling Edge and Rising Edge)

    - EPWM_DB_INPUT_EPWMB - Input signal is ePWMB(Valid for both Falling Edge and Rising Edge)

    - EPWM_DB_INPUT_DB_RED - Input signal is the output of Rising Edge delay. (Valid only for Falling Edge delay)

    Parameters

      - `base`: is the base address of the EPWM module.

      - `input`: is the input signal to the dead band.

    Return

      None.

  void `EPWM_setDeadBandControlShadowLoadMode`(uint32_t base, EPWM_DeadBandControlLoadMode loadMode)

    Set the Dead Band control shadow load mode.

    This function enables and sets the Dead Band control register shadow load mode. Valid values for the

    loadMode parameter are:

    - EPWM_DB_LOAD_ON_CNTR_ZERO - load when counter equals zero.

    - EPWM_DB_LOAD_ON_CNTR_PERIOD - load when counter equals period.

    - EPWM_DB_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period.

    - EPWM_DB_LOAD_FREEZE - Freeze shadow to active load.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadMode`: is the shadow to active load mode.

    Return

      None.

  void `EPWM_disableDeadBandControlShadowLoadMode`(uint32_t base)

    Disable Dead Band control shadow load mode.

    This function disables the Dead Band control register shadow load mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setRisingEdgeDelayCountShadowLoadMode`(uint32_t base, EPWM_RisingEdgeDelayLoadMode loadMode)

    Set the RED (Rising Edge Delay) shadow load mode.

    This function sets the Rising Edge Delay register shadow load mode. Valid values for the

    loadMode parameter are:

    - EPWM_RED_LOAD_ON_CNTR_ZERO - load when counter equals zero.

    - EPWM_RED_LOAD_ON_CNTR_PERIOD - load when counter equals period.

    - EPWM_RED_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period.

    - EPWM_RED_LOAD_FREEZE - Freeze shadow to active load.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadMode`: is the shadow to active load event.

    Return

      None.

  void `EPWM_disableRisingEdgeDelayCountShadowLoadMode`(uint32_t base)

    Disable the RED (Rising Edge Delay) shadow load mode.

    This function disables the Rising Edge Delay register shadow load mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setFallingEdgeDelayCountShadowLoadMode`(uint32_t base, EPWM_FallingEdgeDelayLoadMode loadMode)

    Set the FED (Falling Edge Delay) shadow load mode.

    This function enables and sets the Falling Edge Delay register shadow load mode. Valid values for the

    loadMode parameters are:

    - EPWM_FED_LOAD_ON_CNTR_ZERO - load when counter equals zero.

    - EPWM_FED_LOAD_ON_CNTR_PERIOD - load when counter equals period.

    - EPWM_FED_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period.

    - EPWM_FED_LOAD_FREEZE - Freeze shadow to active load.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadMode`: is the shadow to active load event.

    Return

      None.

  void `EPWM_disableFallingEdgeDelayCountShadowLoadMode`(uint32_t base)

    Disables the FED (Falling Edge Delay) shadow load mode.

    This function disables the Falling Edge Delay register shadow load mode. Valid values for the parameters are:

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setDeadBandCounterClock`(uint32_t base, EPWM_DeadBandClockMode clockMode)

    Sets Dead Band Counter clock rate.

    This function sets up the Dead Band counter clock rate with respect to TBCLK (ePWM time base counter). Valid values for clockMode are:

    - EPWM_DB_COUNTER_CLOCK_FULL_CYCLE -Dead band counter runs at TBCLK (ePWM Time Base Counter) rate.

    - EPWM_DB_COUNTER_CLOCK_HALF_CYCLE -Dead band counter runs at 2*TBCLK (twice ePWM Time Base Counter)rate.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `clockMode`: is the Dead Band counter clock mode.

    Return

      None.

  void `EPWM_setRisingEdgeDelayCount`(uint32_t base, uint16_t redCount)

    Set ePWM RED count

    This function sets the RED (Rising Edge Delay) count value. The value of redCount should be less than 0x4000U.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `redCount`: is the RED(Rising Edge Delay) count.

    Return

      None.

  void `EPWM_setFallingEdgeDelayCount`(uint32_t base, uint16_t fedCount)

    Set ePWM FED count

    This function sets the FED (Falling Edge Delay) count value. The value of fedCount should be less than 0x4000U.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `fedCount`: is the FED(Falling Edge Delay) count.

    Return

      None.

  void `EPWM_enableChopper`(uint32_t base)

    Enable chopper mode

    This function enables ePWM chopper module.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableChopper`(uint32_t base)

    Disable chopper mode

    This function disables ePWM chopper module.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setChopperDutyCycle`(uint32_t base, uint16_t dutyCycleCount)

    Set chopper duty cycle.

    This function sets the chopping clock duty cycle. The value of dutyCycleCount should be less than 7. The dutyCycleCount value is converted to the actual chopper duty cycle value base on the following equation: chopper duty cycle = (dutyCycleCount + 1) / 8

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dutyCycleCount`: is the chopping clock duty cycle count.

    Return

      None.

  void `EPWM_setChopperFreq`(uint32_t base, uint16_t freqDiv)

    Set chopper clock frequency scaler.

    This function sets the scaler for the chopping clock frequency. The value of freqDiv should be less than 8. The chopping clock frequency is altered based on the following equation. chopper clock frequency = SYSCLKOUT / ( 1 + freqDiv)

    Parameters

      - `base`: is the base address of the EPWM module.

      - `freqDiv`: is the chopping clock frequency divider.

    Return

      None.

  void `EPWM_setChopperFirstPulseWidth`(uint32_t base, uint16_t firstPulseWidth)

    Set chopper clock frequency scaler.

    This function sets the first pulse width of chopper output waveform. The value of firstPulseWidth should be less than 0x10. The value of the first pulse width in seconds is given using the following equation: first pulse width = 1 / (((firstPulseWidth + 1) * SYSCLKOUT)/8)

    Parameters

      - `base`: is the base address of the EPWM module.

      - `firstPulseWidth`: is the width of the first pulse.

    Return

      None.

  void `EPWM_enableTripZoneSignals`(uint32_t base, uint16_t tzSignal)

    Enables Trip Zone signal.

    This function enables the Trip Zone signals specified by tzSignal as a source for the Trip Zone module. Valid values for tzSignal are:

    - EPWM_TZ_SIGNAL_CBC1 - TZ1 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC2 - TZ2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC3 - TZ3 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC4 - TZ4 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC5 - TZ5 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC6 - TZ6 Cycle By Cycle

    - EPWM_TZ_SIGNAL_DCAEVT2 - DCAEVT2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_DCBEVT2 - DCBEVT2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_OSHT1 - One-shot TZ1

    - EPWM_TZ_SIGNAL_OSHT2 - One-shot TZ2

    - EPWM_TZ_SIGNAL_OSHT3 - One-shot TZ3

    - EPWM_TZ_SIGNAL_OSHT4 - One-shot TZ4

    - EPWM_TZ_SIGNAL_OSHT5 - One-shot TZ5

    - EPWM_TZ_SIGNAL_OSHT6 - One-shot TZ6

    - EPWM_TZ_SIGNAL_DCAEVT1 - One-shot DCAEVT1

    - EPWM_TZ_SIGNAL_DCBEVT1 - One-shot DCBEVT1

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzSignal`: is the Trip Zone signal.

    note: A logical OR of the valid values can be passed as the tzSignal parameter.

    Return

      None.

  void `EPWM_disableTripZoneSignals`(uint32_t base, uint16_t tzSignal)

    Disables Trip Zone signal.

    This function disables the Trip Zone signal specified by tzSignal as a source for the Trip Zone module. Valid values for tzSignal are:

    - EPWM_TZ_SIGNAL_CBC1 - TZ1 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC2 - TZ2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC3 - TZ3 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC4 - TZ4 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC5 - TZ5 Cycle By Cycle

    - EPWM_TZ_SIGNAL_CBC6 - TZ6 Cycle By Cycle

    - EPWM_TZ_SIGNAL_DCAEVT2 - DCAEVT2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_DCBEVT2 - DCBEVT2 Cycle By Cycle

    - EPWM_TZ_SIGNAL_OSHT1 - One-shot TZ1

    - EPWM_TZ_SIGNAL_OSHT2 - One-shot TZ2

    - EPWM_TZ_SIGNAL_OSHT3 - One-shot TZ3

    - EPWM_TZ_SIGNAL_OSHT4 - One-shot TZ4

    - EPWM_TZ_SIGNAL_OSHT5 - One-shot TZ5

    - EPWM_TZ_SIGNAL_OSHT6 - One-shot TZ6

    - EPWM_TZ_SIGNAL_DCAEVT1 - One-shot DCAEVT1

    - EPWM_TZ_SIGNAL_DCBEVT1 - One-shot DCBEVT1

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzSignal`: is the Trip Zone signal.

    note: A logical OR of the valid values can be passed as the tzSignal parameter.

    Return

      None.

  void `EPWM_setTripZoneDigitalCompareEventCondition`(uint32_t base, EPWM_TripZoneDigitalCompareOutput dcType, EPWM_TripZoneDigitalCompareOutputEvent dcEvent)

    Set Digital compare conditions that cause Trip Zone event.

    This function sets up the Digital Compare output Trip Zone event sources. The dcType variable specifies the event source to be whether Digital Compare output A or Digital Compare output B. The dcEvent parameter specifies the event that causes Trip Zone. Valid values for the parameters are:

    - dcType

      - EPWM_TZ_DC_OUTPUT_A1 - Digital Compare output 1 A

      - EPWM_TZ_DC_OUTPUT_A2 - Digital Compare output 2 A

      - EPWM_TZ_DC_OUTPUT_B1 - Digital Compare output 1 B

      - EPWM_TZ_DC_OUTPUT_B2 - Digital Compare output 2 B

    - dcEvent

      - EPWM_TZ_EVENT_DC_DISABLED - Event Trigger is disabled

      - EPWM_TZ_EVENT_DCXH_LOW - Trigger event when DCxH low

      - EPWM_TZ_EVENT_DCXH_HIGH - Trigger event when DCxH high

      - EPWM_TZ_EVENT_DCXL_LOW - Trigger event when DCxL low

      - EPWM_TZ_EVENT_DCXL_HIGH - Trigger event when DCxL high

      - EPWM_TZ_EVENT_DCXL_HIGH_DCXH_LOW - Trigger event when DCxL high DCxH low

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcType`: is the Digital compare output type.

      - `dcEvent`: is the Digital Compare output event.

    Note

      x in DCxH/DCxL represents DCAH/DCAL or DCBH/DCBL

    Return

      None.

  void `EPWM_enableTripZoneAdvAction`(uint32_t base)

    Enable advanced Trip Zone event Action.

    This function enables the advanced actions of the Trip Zone events. The advanced features combine the trip zone events with the direction of the counter.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableTripZoneAdvAction`(uint32_t base)

    Disable advanced Trip Zone event Action.

    This function disables the advanced actions of the Trip Zone events.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setTripZoneAction`(uint32_t base, EPWM_TripZoneEvent tzEvent, EPWM_TripZoneAction tzAction)

    Set Trip Zone Action.

    This function sets the Trip Zone Action to be taken when a Trip Zone event occurs. Valid values for the parameters are:

    - tzEvent

      - EPWM_TZ_ACTION_EVENT_DCBEVT2 - DCBEVT2 (Digital Compare B event 2)

      - EPWM_TZ_ACTION_EVENT_DCBEVT1 - DCBEVT1 (Digital Compare B event 1)

      - EPWM_TZ_ACTION_EVENT_DCAEVT2 - DCAEVT2 (Digital Compare A event 2)

      - EPWM_TZ_ACTION_EVENT_DCAEVT1 - DCAEVT1 (Digital Compare A event 1)

      - EPWM_TZ_ACTION_EVENT_TZB - TZ1 - TZ6, DCBEVT2, DCBEVT1

      - EPWM_TZ_ACTION_EVENT_TZA - TZ1 - TZ6, DCAEVT2, DCAEVT1

    - tzAction

      - EPWM_TZ_ACTION_HIGH_Z - high impedance output

      - EPWM_TZ_ACTION_HIGH - high output

      - EPWM_TZ_ACTION_LOW - low low

      - EPWM_TZ_ACTION_DISABLE - disable action

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzEvent`: is the Trip Zone event type.

      - `tzAction`: is the Trip zone Action.

    Note

      Disable the advanced Trip Zone event using EPWM_disableTripZoneAdvAction() before calling this function.

    Note

      This function operates on both ePWMA and ePWMB depending on the tzEvent parameter.

    Return

      None.

  void `EPWM_setTripZoneAdvAction`(uint32_t base, EPWM_TripZoneAdvancedEvent tzAdvEvent, EPWM_TripZoneAdvancedAction tzAdvAction)

    Set Advanced Trip Zone Action.

    This function sets the Advanced Trip Zone Action to be taken when an advanced Trip Zone event occurs.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzAdvEvent`: is the Trip Zone event type.

      - `tzAdvAction`: is the Trip zone Action.

    Valid values for the parameters are:

    - tzAdvEvent

      - EPWM_TZ_ADV_ACTION_EVENT_TZB_D - TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_TZB_U - TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting up

      - EPWM_TZ_ADV_ACTION_EVENT_TZA_D - TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_TZA_U - TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting up

    - tzAdvAction

      - EPWM_TZ_ADV_ACTION_HIGH_Z - high impedance output

      - EPWM_TZ_ADV_ACTION_HIGH - high voltage state

      - EPWM_TZ_ADV_ACTION_LOW - low voltage state

      - EPWM_TZ_ADV_ACTION_TOGGLE - Toggle output

      - EPWM_TZ_ADV_ACTION_DISABLE - disable action

    Note

      This function enables the advanced Trip Zone event.

    Note

      This function operates on both ePWMA and ePWMB depending on the tzAdvEvent parameter.

    Note

      Advanced Trip Zone events take into consideration the direction of the counter in addition to Trip Zone events.

    Return

      None.

  void `EPWM_setTripZoneAdvDigitalCompareActionA`(uint32_t base, EPWM_TripZoneAdvDigitalCompareEvent tzAdvDCEvent, EPWM_TripZoneAdvancedAction tzAdvDCAction)

    Set Advanced Digital Compare Trip Zone Action on ePWMA.

    This function sets the Digital Compare (DC) Advanced Trip Zone Action to be taken on ePWMA when an advanced Digital Compare Trip Zone A event occurs. Valid values for the parameters are:

    - tzAdvDCEvent

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_D - Digital Compare event A2 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_U - Digital Compare event A2 while counting up

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_D - Digital Compare event A1 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_U - Digital Compare event A1 while counting up

    - tzAdvDCAction

      - EPWM_TZ_ADV_ACTION_HIGH_Z - high impedance output

      - EPWM_TZ_ADV_ACTION_HIGH - high voltage state

      - EPWM_TZ_ADV_ACTION_LOW - low voltage state

      - EPWM_TZ_ADV_ACTION_TOGGLE - Toggle output

      - EPWM_TZ_ADV_ACTION_DISABLE - disable action

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzAdvDCEvent`: is the Digital Compare Trip Zone event type.

      - `tzAdvDCAction`: is the Digital Compare Trip zone Action.

    Note

      This function enables the advanced Trip Zone event.

    Note

      Advanced Trip Zone events take into consideration the direction of the counter in addition to Digital Compare Trip Zone events.

    Return

      None.

  void `EPWM_setTripZoneAdvDigitalCompareActionB`(uint32_t base, EPWM_TripZoneAdvDigitalCompareEvent tzAdvDCEvent, EPWM_TripZoneAdvancedAction tzAdvDCAction)

    Set Advanced Digital Compare Trip Zone Action on ePWMB.

    This function sets the Digital Compare (DC) Advanced Trip Zone Action to be taken on ePWMB when an advanced Digital Compare Trip Zone B event occurs. Valid values for the parameters are:

    - tzAdvDCEvent

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_D - Digital Compare event B2 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_U - Digital Compare event B2 while counting up

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_D - Digital Compare event B1 while counting down

      - EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_U - Digital Compare event B1 while counting up

    - tzAdvDCAction

      - EPWM_TZ_ADV_ACTION_HIGH_Z - high impedance output

      - EPWM_TZ_ADV_ACTION_HIGH - high voltage state

      - EPWM_TZ_ADV_ACTION_LOW - low voltage state

      - EPWM_TZ_ADV_ACTION_TOGGLE - Toggle output

      - EPWM_TZ_ADV_ACTION_DISABLE - disable action

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzAdvDCEvent`: is the Digital Compare Trip Zone event type.

      - `tzAdvDCAction`: is the Digital Compare Trip zone Action.

    Note

      This function enables the advanced Trip Zone event.

    Note

      Advanced Trip Zone events take into consideration the direction of the counter in addition to Digital Compare Trip Zone events.

    Return

      None.

  void `EPWM_enableTripZoneInterrupt`(uint32_t base, uint16_t tzInterrupt)

    Enable Trip Zone interrupts.

    This function enables the Trip Zone interrupts. Valid values for tzInterrupt are:

    - EPWM_TZ_INTERRUPT_CBC - Trip Zones Cycle By Cycle interrupt

    - EPWM_TZ_INTERRUPT_OST - Trip Zones One Shot interrupt

    - EPWM_TZ_INTERRUPT_DCAEVT1 - Digital Compare A Event 1 interrupt

    - EPWM_TZ_INTERRUPT_DCAEVT2 - Digital Compare A Event 2 interrupt

    - EPWM_TZ_INTERRUPT_DCBEVT1 - Digital Compare B Event 1 interrupt

    - EPWM_TZ_INTERRUPT_DCBEVT2 - Digital Compare B Event 2 interrupt

    - EPWM_TZ_INTERRUPT_CAPEVT - Trip Zones Capture Event interrupt

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzInterrupt`: is the Trip Zone interrupt.

    note: A logical OR of the valid values can be passed as the tzInterrupt parameter.

    Return

      None.

  void `EPWM_disableTripZoneInterrupt`(uint32_t base, uint16_t tzInterrupt)

    Disable Trip Zone interrupts.

    This function disables the Trip Zone interrupts. Valid values for tzInterrupt are:

    - EPWM_TZ_INTERRUPT_CBC - Trip Zones Cycle By Cycle interrupt

    - EPWM_TZ_INTERRUPT_OST - Trip Zones One Shot interrupt

    - EPWM_TZ_INTERRUPT_DCAEVT1 - Digital Compare A Event 1 interrupt

    - EPWM_TZ_INTERRUPT_DCAEVT2 - Digital Compare A Event 2 interrupt

    - EPWM_TZ_INTERRUPT_DCBEVT1 - Digital Compare B Event 1 interrupt

    - EPWM_TZ_INTERRUPT_DCBEVT2 - Digital Compare B Event 2 interrupt

    - EPWM_TZ_INTERRUPT_CAPEVT - Trip Zones Capture Event interrupt

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzInterrupt`: is the Trip Zone interrupt.

    note: A logical OR of the valid values can be passed as the tzInterrupt parameter.

    Return

      None.

  uint16_t `EPWM_getTripZoneFlagStatus`(uint32_t base)

    Gets the Trip Zone status flag

    This function returns the Trip Zone status flag.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      The function returns the following or the bitwise OR value of the following values.

      - EPWM_TZ_INTERRUPT - Trip Zone interrupt was generated due to the following TZ events.

      - EPWM_TZ_FLAG_CBC - Trip Zones Cycle By Cycle event status flag

      - EPWM_TZ_FLAG_OST - Trip Zones One Shot event status flag

      - EPWM_TZ_FLAG_DCAEVT1 - Digital Compare A Event 1 status flag

      - EPWM_TZ_FLAG_DCAEVT2 - Digital Compare A Event 2 status flag

      - EPWM_TZ_FLAG_DCBEVT1 - Digital Compare B Event 1 status flag

      - EPWM_TZ_FLAG_DCBEVT2 - Digital Compare B Event 2 status flag

      - EPWM_TZ_FLAG_CAPEVT - Trip Zones Capture Event flag

  uint16_t `EPWM_getCycleByCycleTripZoneFlagStatus`(uint32_t base)

    Gets the Trip Zone Cycle by Cycle flag status

    This function returns the specific Cycle by Cycle Trip Zone flag status.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      The function returns the following values.

      - EPWM_TZ_CBC_FLAG_1 - CBC 1 status flag

      - EPWM_TZ_CBC_FLAG_2 - CBC 2 status flag

      - EPWM_TZ_CBC_FLAG_3 - CBC 3 status flag

      - EPWM_TZ_CBC_FLAG_4 - CBC 4 status flag

      - EPWM_TZ_CBC_FLAG_5 - CBC 5 status flag

      - EPWM_TZ_CBC_FLAG_6 - CBC 6 status flag

      - EPWM_TZ_CBC_FLAG_DCAEVT2 - CBC status flag for Digital compare event A2

      - EPWM_TZ_CBC_FLAG_DCBEVT2 - CBC status flag for Digital compare event B2

      - EPWM_TZ_CBC_FLAG_CAPEVT - CBC status flag for capture event

  uint16_t `EPWM_getOneShotTripZoneFlagStatus`(uint32_t base)

    Gets the Trip Zone One Shot flag status

    This function returns the specific One Shot Trip Zone flag status.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      The function returns the bitwise OR of the following flags.

      - EPWM_TZ_OST_FLAG_OST1 - OST status flag for OST1

      - EPWM_TZ_OST_FLAG_OST2 - OST status flag for OST2

      - EPWM_TZ_OST_FLAG_OST3 - OST status flag for OST3

      - EPWM_TZ_OST_FLAG_OST4 - OST status flag for OST4

      - EPWM_TZ_OST_FLAG_OST5 - OST status flag for OST5

      - EPWM_TZ_OST_FLAG_OST6 - OST status flag for OST6

      - EPWM_TZ_OST_FLAG_DCAEVT1 - OST status flag for Digital compare event A1

      - EPWM_TZ_OST_FLAG_DCBEVT1 - OST status flag for Digital compare event B1

      - EPWM_TZ_OST_FLAG_CAPEVT - OST status flag for capture event

  void `EPWM_selectCycleByCycleTripZoneClearEvent`(uint32_t base, EPWM_CycleByCycleTripZoneClearMode clearEvent)

    Set the Trip Zone CBC pulse clear event.

    This function set the event which automatically clears the CBC (Cycle by Cycle) latch. Valid values for clearEvent are:

    - EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO - Clear CBC pulse when counter equals zero

    - EPWM_TZ_CBC_PULSE_CLR_CNTR_PERIOD - Clear CBC pulse when counter equals period

    - EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO_PERIOD - Clear CBC pulse when counter equals zero or period

    Parameters

      - `base`: is the base address of the EPWM module.

      - `clearEvent`: is the CBC trip zone clear event.

    Return

      None.

  void `EPWM_clearTripZoneFlag`(uint32_t base, uint16_t tzFlags)

    Clear Trip Zone flag

    This function clears the Trip Zone flags Valid values for tzFlags are:

    - EPWM_TZ_INTERRUPT - Global Trip Zone interrupt flag

    - EPWM_TZ_FLAG_CBC - Trip Zones Cycle By Cycle flag

    - EPWM_TZ_FLAG_OST - Trip Zones One Shot flag

    - EPWM_TZ_FLAG_DCAEVT1 - Digital Compare A Event 1 flag

    - EPWM_TZ_FLAG_DCAEVT2 - Digital Compare A Event 2 flag

    - EPWM_TZ_FLAG_DCBEVT1 - Digital Compare B Event 1 flag

    - EPWM_TZ_FLAG_DCBEVT2 - Digital Compare B Event 2 flag

    - EPWM_TZ_FLAG_CAPEVT - Trip Zones Capture Event flag

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzFlags`: is the Trip Zone flags.

    note: A bitwise OR of the valid values can be passed as the tzFlags parameter.

    Return

      None.

  void `EPWM_clearCycleByCycleTripZoneFlag`(uint32_t base, uint16_t tzCBCFlags)

    Clear the Trip Zone Cycle by Cycle flag.

    This function clears the specific Cycle by Cycle Trip Zone flag. The following are valid values for tzCBCFlags.

    - EPWM_TZ_CBC_FLAG_1 - CBC 1 flag

    - EPWM_TZ_CBC_FLAG_2 - CBC 2 flag

    - EPWM_TZ_CBC_FLAG_3 - CBC 3 flag

    - EPWM_TZ_CBC_FLAG_4 - CBC 4 flag

    - EPWM_TZ_CBC_FLAG_5 - CBC 5 flag

    - EPWM_TZ_CBC_FLAG_6 - CBC 6 flag

    - EPWM_TZ_CBC_FLAG_DCAEVT2 - CBC flag Digital compare event A2

    - EPWM_TZ_CBC_FLAG_DCBEVT2 - CBC flag Digital compare event B2

    - EPWM_TZ_CBC_FLAG_CAPEVT - CBC flag capture event

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzCBCFlags`: is the CBC flag to be cleared.

    Return

      None.

  void `EPWM_clearOneShotTripZoneFlag`(uint32_t base, uint16_t tzOSTFlags)

    Clear the Trip Zone One Shot flag.

    This function clears the specific One Shot (OST) Trip Zone flag. The following are valid values for tzOSTFlags.

    - EPWM_TZ_OST_FLAG_OST1 - OST flag for OST1

    - EPWM_TZ_OST_FLAG_OST2 - OST flag for OST2

    - EPWM_TZ_OST_FLAG_OST3 - OST flag for OST3

    - EPWM_TZ_OST_FLAG_OST4 - OST flag for OST4

    - EPWM_TZ_OST_FLAG_OST5 - OST flag for OST5

    - EPWM_TZ_OST_FLAG_OST6 - OST flag for OST6

    - EPWM_TZ_OST_FLAG_DCAEVT1 - OST flag for Digital compare event A1

    - EPWM_TZ_OST_FLAG_DCBEVT1 - OST flag for Digital compare event B1

    - EPWM_TZ_OST_FLAG_CAPEVT - OST flag capture event

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzOSTFlags`: is the OST flags to be cleared.

    Return

      None.

  void `EPWM_forceTripZoneEvent`(uint32_t base, uint16_t tzForceEvent)

    Force Trip Zone events.

    This function forces a Trip Zone event. Valid values for tzForceEvent are:

    - EPWM_TZ_FORCE_EVENT_CBC - Force Trip Zones Cycle By Cycle event

    - EPWM_TZ_FORCE_EVENT_OST - Force Trip Zones One Shot Event

    - EPWM_TZ_FORCE_EVENT_DCAEVT1 - Force Digital Compare A Event 1

    - EPWM_TZ_FORCE_EVENT_DCAEVT2 - Force Digital Compare A Event 2

    - EPWM_TZ_FORCE_EVENT_DCBEVT1 - Force Digital Compare B Event 1

    - EPWM_TZ_FORCE_EVENT_DCBEVT2 - Force Digital Compare B Event 2

    - EPWM_TZ_FORCE_EVENT_CAPEVT - Force Capture Event

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzForceEvent`: is the forced Trip Zone event.

    Return

      None.

  void `EPWM_enableTripOutSource`(uint32_t base, EPWM_selectTripOutSource tzTripOut)

    Select TRIPOUT signals for the ePWM module.

    Valid values for

    tzTripOut are:

    - EPWM_TZ_TRIPOUT_CBC - CBC as TRIPOUT source

    - EPWM_TZ_TRIPOUT_OST - OST as TRIPOUT source

    - EPWM_TZ_TRIPOUT_TZ[1-6] - TZx as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCAEVT1 - DCAEVT1 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCAEVT2 - DCAEVT2 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCBEVT1 - DCBEVT1 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCBEVT2 - DCBEVT2 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_CAPEVT - Capture Event as TRIPOUT source

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzTripOut`: is the trip zone event to be selected.

    Return

      None.

  void `EPWM_disableTripOutSource`(uint32_t base, EPWM_selectTripOutSource tzTripOut)

    Disables TRIPOUT signals for the ePWM module.

    Valid values for

    tzTripOut are:

    - EPWM_TZ_TRIPOUT_CBC - CBC as TRIPOUT source

    - EPWM_TZ_TRIPOUT_OST - OST as TRIPOUT source

    - EPWM_TZ_TRIPOUT_TZ[1-6] - TZx as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCAEVT1 - DCAEVT1 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCAEVT2 - DCAEVT2 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCBEVT1 - DCBEVT1 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_DCBEVT2 - DCBEVT2 as TRIPOUT source

    - EPWM_TZ_TRIPOUT_CAPEVT - Capture Event as TRIPOUT source

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tzTripOut`: is the trip zone event to be disabled.

    Return

      None.

  void `EPWM_enableInterrupt`(uint32_t base)

    Enable ePWM interrupt.

    This function enables the ePWM interrupt.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableInterrupt`(uint32_t base)

    disable ePWM interrupt.

    This function disables the ePWM interrupt.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setInterruptSource`(uint32_t base, uint16_t interruptSource)

    Sets the ePWM interrupt source.

    This function sets the ePWM interrupt source. Valid values for interruptSource are:

    - EPWM_INT_TBCTR_DISABLED - Time-base counter is disabled

    - EPWM_INT_TBCTR_ZERO - Time-base counter equal to zero

    - EPWM_INT_TBCTR_PERIOD - Time-base counter equal to period

    - EPWM_INT_TBCTR_ZERO_OR_PERIOD - Time-base counter equal to zero or period

    - EPWM_INT_TBCTR_ETINTMIX - Time-base counter based on mixed events (ETINTMIX)

    - EPWM_INT_TBCTR_U_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD (depending the value of x) when the timer is incrementing

    - EPWM_INT_TBCTR_D_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD (depending the value of x) when the timer is decrementing

    Parameters

      - `base`: is the base address of the EPWM module.

      - `interruptSource`: is the ePWM interrupt source.

    Return

      None.

  void `EPWM_setInterruptEventCount`(uint32_t base, uint16_t eventCount)

    Sets the ePWM interrupt event counts.

    This function sets the interrupt event count that determines the number of events that have to occur before an interrupt is issued. Maximum value for eventCount is 15.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `eventCount`: is the event count for interrupt scale

    Return

      None.

  bool `EPWM_getEventTriggerInterruptStatus`(uint32_t base)

    Return the interrupt status.

    This function returns the ePWM interrupt status.

    Note This function doesn’t return the Trip Zone status.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns true if ePWM interrupt was generated. Returns false if no interrupt was generated

  void `EPWM_clearEventTriggerInterruptFlag`(uint32_t base)

    Clear interrupt flag.

    This function clears the ePWM interrupt flag.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_enableInterruptEventCountInit`(uint32_t base)

    Enable Pre-interrupt count load.

    This function enables the ePWM interrupt counter to be pre-interrupt loaded with a count value.

    Parameters

      - `base`: is the base address of the EPWM module.

    Note

      This is valid only for advanced/expanded interrupt mode

    Return

      None.

  void `EPWM_disableInterruptEventCountInit`(uint32_t base)

    Disable interrupt count load.

    This function disables the ePWM interrupt counter from being loaded with pre-interrupt count value.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_forceInterruptEventCountInit`(uint32_t base)

    Force a software pre interrupt event counter load.

    This function forces the ePWM interrupt counter to be loaded with the contents set by EPWM_setPreInterruptEventCount().

    Parameters

      - `base`: is the base address of the EPWM module.

    Note

      make sure the EPWM_enablePreInterruptEventCountLoad() function is is called before invoking this function.

    Return

      None.

  void `EPWM_setInterruptEventCountInitValue`(uint32_t base, uint16_t eventCount)

    Set interrupt count.

    This function sets the ePWM interrupt count. eventCount is the value of the pre-interrupt value that is to be loaded. The maximum value of eventCount is 15.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `eventCount`: is the ePWM interrupt count value.

    Return

      None.

  uint16_t `EPWM_getInterruptEventCount`(uint32_t base)

    Get the interrupt count.

    This function returns the ePWM interrupt event count.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      The interrupt event counts that have occurred.

  void `EPWM_forceEventTriggerInterrupt`(uint32_t base)

    Force ePWM interrupt.

    This function forces an ePWM interrupt.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_setMixEvtTriggerSource`(uint32_t base, EPWM_ETMixSignalSelect etmixSignal, EPWM_ETMixTriggerSource interruptSource)

    Sets the mixed event trigger interrupt source.

    This function sets the ePWM interrupt source. Valid values for etmixSignal are:

    - EPWM_ETMIX_INTERRUPT - Mixed ET Interrupt signal

    - EPWM_ETMIX_SOCA - Mixed ET SOCA signal

    - EPWM_ETMIX_SOCB - Mixed ET SOCB signal Valid values for interruptSource are:

    - EPWM_ETMIX_TBCTR_ZERO - Time-base counter equal to zero

    - EPWM_ETMIX_TBCTR_PERIOD - Time-base counter equal to period

    - EPWM_ETMIX_TBCTR_U_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD (depending the value of x) when the timer is incrementing

    - EPWM_ETMIX_TBCTR_D_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD (depending the value of x) when the timer is decrementing

    - EPWM_ETMIX_DCAEVT1 - DCAEVT1 interrupt signal to trigger mixed ET interrupt

    Parameters

      - `base`: is the base address of the EPWM module.

      - `etmixSignal`: is the module for which trigger needs to be enabled.

      - `interruptSource`: is the Mixed ET interrupt source.

    Return

      None.

  void `EPWM_enableADCTrigger`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Enable ADC SOC event.

    This function enables the ePWM module to trigger an ADC SOC event. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      None.

  void `EPWM_disableADCTrigger`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Disable ADC SOC event.

    This function disables the ePWM module from triggering an ADC SOC event. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      None.

  void `EPWM_setADCTriggerSource`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, EPWM_ADCStartOfConversionSource socSource)

    Sets the ePWM SOC source.

    This function sets the ePWM ADC SOC source. Valid values for socSource are:

    - adcSOCType

      - EPWM_SOC_A - SOC A

      - EPWM_SOC_B - SOC B

    - socSource

      - EPWM_SOC_DCxEVT1 - Event is based on DCxEVT1

      - EPWM_SOC_TBCTR_ZERO - Time-base counter equal to zero

      - EPWM_SOC_TBCTR_PERIOD - Time-base counter equal to period

      - EPWM_SOC_TBCTR_ETSOCAMIX - Time-base counter based on mixed events (ETSOCAMIX)

      - EPWM_SOC_TBCTR_U_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD(depending the value of x) when the timer is incrementing

      - EPWM_SOC_TBCTR_D_CMPx - Where x is A,B,C or D Time-base counter equal to CMPA, CMPB, CMPC or CMPD(depending the value of x) when the timer is decrementing

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

      - `socSource`: is the SOC source.

    Return

      None.

  void `EPWM_setADCTriggerEventPrescale`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, uint16_t preScaleCount)

    Sets the ePWM SOC event counts.

    This function sets the SOC event count that determines the number of events that have to occur before an SOC is issued. Valid values for the parameters are:

    - adcSOCType

      - EPWM_SOC_A - SOC A

      - EPWM_SOC_B - SOC B

    - preScaleCount

      - [1 - 15] - Generate SOC pulse every preScaleCount up to 15 events.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

      - `preScaleCount`: is the event count number.

    Note

      A preScaleCount value of 0 disables the prescale.

    Return

      None.

  bool `EPWM_getADCTriggerFlagStatus`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Return the SOC event status.

    This function returns the ePWM SOC status. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      Returns true if the selected adcSOCType SOC was generated. Returns false if the selected adcSOCType SOC was not generated.

  void `EPWM_clearADCTriggerFlag`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Clear SOC flag.

    This function clears the ePWM SOC flag. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      None

  void `EPWM_enableADCTriggerEventCountInit`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Enable Pre-SOC event count load.

    This function enables the ePWM SOC event counter which is set by the

    EPWM_setADCTriggerEventCountInitValue() function to be loaded before an SOC event. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Note

      This is valid only for advanced/expanded SOC mode

    Return

      None.

  void `EPWM_disableADCTriggerEventCountInit`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Disable Pre-SOC event count load.

    This function disables the ePWM SOC event counter from being loaded before an SOC event (only an SOC event causes an increment of the counter value). Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Note

      This is valid only for advanced/expanded SOC mode

    Return

      None.

  void `EPWM_forceADCTriggerEventCountInit`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Force a software pre SOC event counter load.

    This function forces the ePWM SOC counter to be loaded with the contents set by EPWM_setPreADCStartOfConversionEventCount().

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type

    Note

      make sure the EPWM_enableADCTriggerEventCountInit() function is called before invoking this function.

    Return

      None.

  void `EPWM_setADCTriggerEventCountInitValue`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, uint16_t eventCount)

    Set ADC Trigger count values.

    This function sets the ePWM ADC Trigger count values. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B The eventCount has a maximum value of 15.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

      - `eventCount`: is the ePWM interrupt count value.

    Return

      None.

  uint16_t `EPWM_getADCTriggerEventCount`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Get the SOC event count.

    This function returns the ePWM SOC event count. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      The SOC event counts that have occurred.

  void `EPWM_forceADCTrigger`(uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)

    Force SOC event.

    This function forces an ePWM SOC event. Valid values for adcSOCType are:

    - EPWM_SOC_A - SOC A

    - EPWM_SOC_B - SOC B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `adcSOCType`: is the ADC SOC type.

    Return

      None

  void `EPWM_selectDigitalCompareTripInput`(uint32_t base, EPWM_DigitalCompareTripInput tripSource, EPWM_DigitalCompareType dcType)

    Set the DC trip input.

    This function sets the trip input to the Digital Compare (DC). For a given dcType the function sets the tripSource to be the input to the DC. Valid values for the parameter are:

    - tripSource

      - EPWM_DC_TRIP_TRIPINx - Trip x,where x ranges from 1 to 15 excluding 13

      - EPWM_DC_TRIP_COMBINATION - selects all the Trip signals whose input is enabled by the following function EPWM_enableDigitalCompareTripCombinationInput()

    - dcType

      - EPWM_DC_TYPE_DCAH - Digital Compare A High

      - EPWM_DC_TYPE_DCAL - Digital Compare A Low

      - EPWM_DC_TYPE_DCBH - Digital Compare B High

      - EPWM_DC_TYPE_DCBL - Digital Compare B Low

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripSource`: is the tripSource.

      - `dcType`: is the Digital Compare type.

    Return

      None

  void `EPWM_enableDigitalCompareBlankingWindow`(uint32_t base)

    Enable DC filter blanking window.

    This function enables the DC filter blanking window.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_disableDigitalCompareBlankingWindow`(uint32_t base)

    Disable DC filter blanking window.

    This function disables the DC filter blanking window.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_enableDigitalCompareWindowInverseMode`(uint32_t base)

    Enable Digital Compare Window inverse mode.

    This function enables the Digital Compare Window inverse mode. This will invert the blanking window.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_disableDigitalCompareWindowInverseMode`(uint32_t base)

    Disable Digital Compare Window inverse mode.

    This function disables the Digital Compare Window inverse mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_setDigitalCompareBlankingEvent`(uint32_t base, EPWM_DigitalCompareBlankingPulse blankingPulse)

    Set the Digital Compare filter blanking pulse.

    This function sets the input pulse that starts the Digital Compare blanking window. Valid values for blankingPulse are:

    - EPWM_DC_WINDOW_START_TBCTR_PERIOD - Time base counter equals period

    - EPWM_DC_WINDOW_START_TBCTR_ZERO - Time base counter equals zero

    - EPWM_DC_WINDOW_START_TBCTR_ZERO_PERIOD - Time base counter equals zero or period.

    - EPWM_DC_WINDOW_START_BLANK_PULSE_MIX - Blanking pulse mix

    Parameters

      - `base`: is the base address of the EPWM module.

      - `blankingPulse`: is Pulse that starts blanking window.

    Return

      None

  void `EPWM_setDigitalCompareFilterInput`(uint32_t base, EPWM_DigitalCompareFilterInput filterInput)

    Set up the Digital Compare filter input.

    This function sets the signal input source that will be filtered by the Digital Compare module. Valid values for filterInput are:

    - EPWM_DC_WINDOW_SOURCE_DCAEVT1 - DC filter signal source is DCAEVT1

    - EPWM_DC_WINDOW_SOURCE_DCAEVT2 - DC filter signal source is DCAEVT2

    - EPWM_DC_WINDOW_SOURCE_DCBEVT1 - DC filter signal source is DCBEVT1

    - EPWM_DC_WINDOW_SOURCE_DCBEVT2 - DC filter signal source is DCBEVT2

    Parameters

      - `base`: is the base address of the EPWM module.

      - `filterInput`: is Digital Compare signal source.

    Return

      None

  void `EPWM_enableDigitalCompareEdgeFilter`(uint32_t base)

    Enable Digital Compare Edge Filter.

    This function enables the Digital Compare Edge filter to generate event after configured number of edges.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_disableDigitalCompareEdgeFilter`(uint32_t base)

    Disable Digital Compare Edge Filter.

    This function disables the Digital Compare Edge filter.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_setDigitalCompareEdgeFilterMode`(uint32_t base, EPWM_DigitalCompareEdgeFilterMode edgeMode)

    Set the Digital Compare Edge Filter Mode.

    This function sets the Digital Compare Event filter mode. Valid values for edgeMode are:

    - EPWM_DC_EDGEFILT_MODE_RISING - DC edge filter mode is rising edge

    - EPWM_DC_EDGEFILT_MODE_FALLING - DC edge filter mode is falling edge

    - EPWM_DC_EDGEFILT_MODE_BOTH - DC edge filter mode is both edges

    Parameters

      - `base`: is the base address of the EPWM module.

      - `edgeMode`: is Digital Compare Edge filter mode.

    Return

      None

  void `EPWM_setDigitalCompareEdgeFilterEdgeCount`(uint32_t base, uint16_t edgeCount)

    Set the Digital Compare Edge Filter Edge Count.

    This function sets the Digital Compare Event filter Edge Count to generate events. Valid values for edgeCount can be:

    - EPWM_DC_EDGEFILT_EDGECNT_0 - No edge is required to generate event

    - EPWM_DC_EDGEFILT_EDGECNT_1 - 1 edge is required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_2 - 2 edges are required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_3 - 3 edges are required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_4 - 4 edges are required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_5 - 5 edges are required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_6 - 6 edges are required for event generation

    - EPWM_DC_EDGEFILT_EDGECNT_7 - 7 edges are required for event generation

    Parameters

      - `base`: is the base address of the EPWM module.

      - `edgeCount`: is Digital Compare event filter count

    Return

      None

  uint16_t `EPWM_getDigitalCompareEdgeFilterEdgeCount`(uint32_t base)

    Returns the Digital Compare Edge Filter Edge Count.

    This function returns the configured Digital Compare Edge filter edge count required to generate events. It can return values from 0-7.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns the configured DigitalCompare Edge filter edge count.

  uint16_t `EPWM_getDigitalCompareEdgeFilterEdgeStatus`(uint32_t base)

    Returns the Digital Compare Edge filter captured edge count status.

    This function returns the count of edges captured by Digital Compare Edge filter. It can return values from 0-7.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns the count of captured edges

  void `EPWM_setDigitalCompareWindowOffset`(uint32_t base, uint16_t windowOffsetCount)

    Set up the Digital Compare filter window offset

    This function sets the offset between window start pulse and blanking window in TBCLK count. The function take a 16bit count value for the offset value.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `windowOffsetCount`: is blanking window offset length.

    Return

      None

  void `EPWM_setDigitalCompareWindowLength`(uint32_t base, uint16_t windowLengthCount)

    Set up the Digital Compare filter window length

    This function sets up the Digital Compare filter blanking window length in TBCLK count.The function takes a 16bit count value for the window length.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `windowLengthCount`: is blanking window length.

    Return

      None

  uint16_t `EPWM_getDigitalCompareBlankingWindowOffsetCount`(uint32_t base)

    Return DC filter blanking window offset count.

    This function returns DC filter blanking window offset count.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  uint16_t `EPWM_getDigitalCompareBlankingWindowLengthCount`(uint32_t base)

    Return DC filter blanking window length count.

    This function returns DC filter blanking window length count.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None

  void `EPWM_setDigitalCompareEventSource`(uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareEventSource dcEventSource)

    Set up the Digital Compare Event source.

    This function sets up the Digital Compare module Event sources. The following are valid values for the parameters.

    - dcModule

      - EPWM_DC_MODULE_A - Digital Compare Module A

      - EPWM_DC_MODULE_B - Digital Compare Module B

    - dcEvent

      - EPWM_DC_EVENT_1 - Digital Compare Event number 1

      - EPWM_DC_EVENT_2 - Digital Compare Event number 2

    - dcEventSource

      - EPWM_DC_EVENT_SOURCE_FILT_SIGNAL - signal source is filtered

        Note

          The signal source for this option is DCxEVTy, where the value of x is dependent on dcModule and the value of y is dependent on dcEvent. Possible signal sources are DCAEVT1, DCBEVT1, DCAEVT2 or DCBEVT2 depending on the value of both dcModule and dcEvent.

      - EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL - signal source is unfiltered The signal source for this option is DCxEVTy.

        Return

          None

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

      - `dcEvent`: is the Digital Compare Event number.

      - `dcEventSource`: is the - Digital Compare Event source.

  void `EPWM_setDigitalCompareEventSyncMode`(uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareSyncMode syncMode)

    Set up the Digital Compare input sync mode.

    This function sets up the Digital Compare module Event sources. The following are valid values for the parameters.

    - dcModule

      - EPWM_DC_MODULE_A - Digital Compare Module A

      - EPWM_DC_MODULE_B - Digital Compare Module B

    - dcEvent

      - EPWM_DC_EVENT_1 - Digital Compare Event number 1

      - EPWM_DC_EVENT_2 - Digital Compare Event number 2

    - syncMode

      - EPWM_DC_EVENT_INPUT_SYNCED - DC input signal is synced with TBCLK

      - EPWM_DC_EVENT_INPUT_NOT SYNCED - DC input signal is not synced with TBCLK

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

      - `dcEvent`: is the Digital Compare Event number.

      - `syncMode`: is the Digital Compare Event sync mode.

    Return

      None

  void `EPWM_enableDigitalCompareADCTrigger`(uint32_t base, EPWM_DigitalCompareModule dcModule)

    Enable Digital Compare to generate Start of Conversion.

    This function enables the Digital Compare Event 1 to generate Start of Conversion. The following are valid values for the

    dcModule parameter.

    - EPWM_DC_MODULE_A - Digital Compare Module A

    - EPWM_DC_MODULE_B - Digital Compare Module B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

    Return

      None

  void `EPWM_disableDigitalCompareADCTrigger`(uint32_t base, EPWM_DigitalCompareModule dcModule)

    Disable Digital Compare from generating Start of Conversion.

    This function disables the Digital Compare Event 1 from generating Start of Conversion. The following are valid values for the

    dcModule parameter.

    - EPWM_DC_MODULE_A - Digital Compare Module A

    - EPWM_DC_MODULE_B - Digital Compare Module B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

    Return

      None

  void `EPWM_enableDigitalCompareSyncEvent`(uint32_t base, EPWM_DigitalCompareModule dcModule)

    Enable Digital Compare to generate sync out pulse.

    This function enables the Digital Compare Event 1 to generate sync out pulse The following are valid values for the

    dcModule parameter.

    - EPWM_DC_MODULE_A - Digital Compare Module A

    - EPWM_DC_MODULE_B - Digital Compare Module B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

    Return

      None

  void `EPWM_disableDigitalCompareSyncEvent`(uint32_t base, EPWM_DigitalCompareModule dcModule)

    Disable Digital Compare from generating Start of Conversion.

    This function disables the Digital Compare Event 1 from generating synch out pulse. The following are valid values for the

    dcModule parameters.

    - EPWM_DC_MODULE_A - Digital Compare Module A

    - EPWM_DC_MODULE_B - Digital Compare Module B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

    Return

      None

  void `EPWM_setDigitalCompareCBCLatchMode`(uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareCBCLatchMode latchMode)

    Set up the Digital Compare CBC latch mode.

    This function sets up the Digital Compare CBC latch mode. The following are valid values for the parameters.

    - dcModule

      - EPWM_DC_MODULE_A - Digital Compare Module A

      - EPWM_DC_MODULE_B - Digital Compare Module B

    - dcEvent

      - EPWM_DC_EVENT_1 - Digital Compare Event number 1

      - EPWM_DC_EVENT_2 - Digital Compare Event number 2

    - latchMode

      - EPWM_DC_CBC_LATCH_DISABLED - DC cycle-by-cycle(CBC) latch is disabled

      - EPWM_DC_CBC_LATCH_ENABLED - DC cycle-by-cycle(CBC) latch is enabled

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

      - `dcEvent`: is the Digital Compare Event number.

      - `latchMode`: is the Digital Compare CBC latch mode.

    Return

      None

  void `EPWM_selectDigitalCompareCBCLatchClearEvent`(uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareCBCLatchClearEvent clearEvent)

    Sets the Digital Compare CBC latch clear event.

    This function sets the Digital Compare CBC latch clear event. The following are valid values for the parameters.

    - dcModule

      - EPWM_DC_MODULE_A - Digital Compare Module A

      - EPWM_DC_MODULE_B - Digital Compare Module B

    - dcEvent

      - EPWM_DC_EVENT_1 - Digital Compare Event number 1

      - EPWM_DC_EVENT_2 - Digital Compare Event number 2

    - clearEvent

      - EPWM_DC_CBC_LATCH_CLR_CNTR_ZERO - DC CBC latch is cleared when counter is zero

      - EPWM_DC_CBC_LATCH_CLR_ON_CNTR_PERIOD - DC CBC latch is cleared when counter is equal to period

      - EPWM_DC_CBC_LATCH_CLR_ON_CNTR_ZERO_PERIOD - DC CBC latch is cleared when either counter is zero or equal to period

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

      - `dcEvent`: is the Digital Compare Event number.

      - `clearEvent`: is the Digital Compare CBC latch clear event.

    Return

      None

  bool `EPWM_getDigitalCompareCBCLatchStatus`(uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent)

    Gets the Digital Compare CBC latch status

    This function returns the Digital Compare module cycle-by-cycle(CBC) latch status. The following are valid values for the parameters.

    - dcModule

      - EPWM_DC_MODULE_A - Digital Compare Module A

      - EPWM_DC_MODULE_B - Digital Compare Module B

    - dcEvent

      - EPWM_DC_EVENT_1 - Digital Compare Event number 1

      - EPWM_DC_EVENT_2 - Digital Compare Event number 2

    Parameters

      - `base`: is the base address of the EPWM module.

      - `dcModule`: is the Digital Compare module.

      - `dcEvent`: is the Digital Compare Event number.

    Return

      Returns Digital Compare CBC latch status. -true - CBC latch is enabled -false - CBC latch is disabled

  void `EPWM_enableDigitalCompareCounterCapture`(uint32_t base)

    Enables the Time Base Counter Capture controller.

    This function enables the time Base Counter Capture.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableDigitalCompareCounterCapture`(uint32_t base)

    Disables the Time Base Counter Capture controller.

    This function disable the time Base Counter Capture.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setDigitalCompareCounterShadowMode`(uint32_t base, bool enableShadowMode)

    Set the Time Base Counter Capture mode.

    This function sets the mode the Time Base Counter value is read from. If enableShadowMode is true, CPU reads of the DCCAP register will return the shadow register contents.If enableShadowMode is false, CPU reads of the DCCAP register will return the active register contents.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `enableShadowMode`: is the shadow read mode flag.

    Return

      None.

  bool `EPWM_getDigitalCompareCaptureStatus`(uint32_t base)

    Return the DC Capture event status.

    This function returns the DC capture event status.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns true if a DC capture event has occurs. Returns false if no DC Capture event has occurred.

    Return

      None.

  void `EPWM_clearDigitalCompareCaptureStatusFlag`(uint32_t base)

    Clears DC capture latched status flag

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to clear the CAPSTS (set) condition.

  void `EPWM_configureDigitalCompareCounterCaptureMode`(uint32_t base, bool disableClearMode)

    Configures DC capture operating mode

    This function is used to configure the DC capture operating mode. If

    disableClearMode is false, the TBCNT value is captured in active register on occurance of DCEVTFILT event. The trip events are ignored until next PRD or ZRO event re-triggers the capture mechanism. If disableClearMode is true, the TBCNT value is captured, CAPSTS flag is set and further trips are ignored until CAPSTS bit is cleared.
    Parameters

      - `base`: is the base address of the EPWM module.

      - `disableClearMode`: is the clear mode bit.

    Return

      None.

  uint16_t `EPWM_getDigitalCompareCaptureCount`(uint32_t base)

    Return the DC Time Base Counter capture value.

    This function returns the DC Time Base Counter capture value. The value read is determined by the mode as set in the EPWM_setTimeBaseCounterReadMode() function.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns the DC Time Base Counter Capture count value.

  void `EPWM_enableDigitalCompareTripCombinationInput`(uint32_t base, uint16_t tripInput, EPWM_DigitalCompareType dcType)

    Enable DC TRIP combinational input.

    This function enables the specified Trip input. Valid values for the parameters are:

    - tripInput

      - EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,…12,14,15

    - dcType

      - EPWM_DC_TYPE_DCAH - Digital Compare A High

      - EPWM_DC_TYPE_DCAL - Digital Compare A Low

      - EPWM_DC_TYPE_DCBH - Digital Compare B High

      - EPWM_DC_TYPE_DCBL - Digital Compare B Low

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripInput`: is the Trip number.

      - `dcType`: is the Digital Compare module.

    Return

      None.

  void `EPWM_disableDigitalCompareTripCombinationInput`(uint32_t base, uint16_t tripInput, EPWM_DigitalCompareType dcType)

    Disable DC TRIP combinational input.

    This function disables the specified Trip input. Valid values for the parameters are:

    - tripInput

      - EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,…12,14,15

    - dcType

      - EPWM_DC_TYPE_DCAH - Digital Compare A High

      - EPWM_DC_TYPE_DCAL - Digital Compare A Low

      - EPWM_DC_TYPE_DCBH - Digital Compare B High

      - EPWM_DC_TYPE_DCBL - Digital Compare B Low

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripInput`: is the Trip number.

      - `dcType`: is the Digital Compare module.

    Return

      None.

  void `EPWM_enableCaptureInEvent`(uint32_t base)

    Enables the Capture event .

    This function enables the CAPIN.sync on which the edge detection logic is performed.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableCaptureInEvent`(uint32_t base)

    Disables the Capture event.

    This function disables the CAPIN.sync on which the edge detection logic is performed.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_configCaptureGateInputPolarity`(uint32_t base, EPWM_selectCaptureGateInputPolarity polSel)

    Polarity selection for capture gate input.

    This function selects the input polarity for capture gate. Valid values for the

    polSel are:

    - EPWM_CAPGATE_INPUT_ALWAYS_ON - always on

    - EPWM_CAPGATE_INPUT_ALWAYS_OFF - always off

    - EPWM_CAPGATE_INPUT_SYNC - CAPGATE.sync

    - EPWM_CAPGATE_INPUT_SYNC_INVERT - CAPGATE.sync inverted

    Parameters

      - `base`: is the base address of the EPWM module.

      - `polSel`: is the polarity to be selected for CAPGATE.

    Return

      None.

  void `EPWM_invertCaptureInputPolarity`(uint32_t base, EPWM_selectCaptureInputPolarity polSel)

    Polarity selection for capture input.

    This function selects the input polarity for capture. Valid values for the

    polSel are:

    - EPWM_CAPTURE_INPUT_CAPIN_SYNC - not inverted

    - EPWM_CAPTURE_INPUT_CAPIN_SYNC_INVERT - inverted

    Parameters

      - `base`: is the base address of the EPWM module.

      - `polSel`: is the polarity to be selected for CAPIN.

    Return

      None.

  void `EPWM_enableIndependentPulseLogic`(uint32_t base)

    Enables independent pulse selection for Blanking and Capture Logic.

    This function enables pulse selection determined by the CAPMIXSEL register.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableIndependentPulseLogic`(uint32_t base)

    Disables independent pulse selection for Blanking and Capture Logic.

    This function disables pulse selection determined by the CAPMIXSEL register. The pulse selection is determined by DCFCTL[PULSESEL] bits.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_forceCaptureEventLoad`(uint32_t base)

    Capture event force load.

    This function forces a load to occur on DCCAP.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_selectCaptureTripInput`(uint32_t base, EPWM_DigitalCompareTripInput tripSource, EPWM_CaptureInputType dcType)

    Set the capture trip input.

    This function sets the trip input to the Digital Compare (DC). For a given dcType the function sets the tripSource to be the input to the DC. Valid values for the parameter are:

    - tripSource

      - EPWM_DC_TRIP_TRIPINx - Trip x,where x ranges from 1 to 15 excluding 13

      - EPWM_DC_TRIP_COMBINATION - selects all the Trip signals whose input is enabled by the following function EPWM_enableCaptureTripCombinationInput()

    - dcType

      - EPWM_CAPTURE_GATE

      - EPWM_CAPTURE_INPUT

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripSource`: is the tripSource.

      - `dcType`: is the Digital Compare type.

    Return

      None

  void `EPWM_enableCaptureTripCombinationInput`(uint32_t base, uint16_t tripInput, EPWM_CaptureInputType dcType)

    Enable Capture TRIP combinational input.

    This function enables the specified Trip input. Valid values for the parameters are:

    - tripInput

      - EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,…12,14,15

    - dcType

      - EPWM_CAPTURE_GATE

      - EPWM_CAPTURE_INPUT

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripInput`: is the Trip number.

      - `dcType`: is the Digital Compare module.

    Return

      None.

  void `EPWM_disableCaptureTripCombinationInput`(uint32_t base, uint16_t tripInput, EPWM_CaptureInputType dcType)

    Disable Capture TRIP combinational input.

    This function disables the specified Trip input. Valid values for the parameters are:

    - tripInput

      - EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,…12,14,15

    - dcType

      - EPWM_CAPTURE_GATE

      - EPWM_CAPTURE_INPUT

    Parameters

      - `base`: is the base address of the EPWM module.

      - `tripInput`: is the Trip number.

      - `dcType`: is the Digital Compare module.

    Return

      None.

  void `EPWM_enableValleyCapture`(uint32_t base)

    Enable valley capture mode.

    This function enables Valley Capture mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableValleyCapture`(uint32_t base)

    Disable valley capture mode.

    This function disables Valley Capture mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_startValleyCapture`(uint32_t base)

    Start valley capture mode.

    This function starts Valley Capture sequence.

    Parameters

      - `base`: is the base address of the EPWM module.

    Make sure you invoke EPWM_setValleyTriggerSource with the trigger variable set to EPWM_VALLEY_TRIGGER_EVENT_SOFTWARE before calling this function.

    Return

      None.

  void `EPWM_setValleyTriggerSource`(uint32_t base, EPWM_ValleyTriggerSource trigger)

    Set valley capture trigger.

    This function sets the trigger value that initiates Valley Capture sequence

    Parameters

      - `base`: is the base address of the EPWM module.

      - `trigger`: is the Valley counter trigger.

    Set the number of Trigger source events for starting and stopping the valley capture using EPWM_setValleyTriggerEdgeCounts().

    Return

      None.

  void `EPWM_setValleyTriggerEdgeCounts`(uint32_t base, uint16_t startCount, uint16_t stopCount)

    Set valley capture trigger source count.

    Note: A startCount value of 0 prevents starting the valley counter. A stopCount value of 0 prevents the valley counter from stopping.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `startCount`:

      - `stopCount`: This function sets the number of trigger events required to start and stop the valley capture count. Maximum values for both startCount and stopCount is 15 corresponding to the 15th edge of the trigger event.

    Return

      None.

  void `EPWM_enableValleyHWDelay`(uint32_t base)

    Enable valley switching delay.

    This function enables Valley switching delay.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableValleyHWDelay`(uint32_t base)

    Disable valley switching delay.

    This function disables Valley switching delay.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setValleySWDelayValue`(uint32_t base, uint16_t delayOffsetValue)

    Set Valley delay values.

    This function sets the Valley delay value.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `delayOffsetValue`: is the software defined delay offset value.

    Return

      None.

  void `EPWM_setValleyDelayDivider`(uint32_t base, EPWM_ValleyDelayMode delayMode)

    Set Valley delay mode.

    This function sets the Valley delay mode values.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `delayMode`: is the Valley delay mode.

    Return

      None.

  bool `EPWM_getValleyEdgeStatus`(uint32_t base, EPWM_ValleyCounterEdge edge)

    Get the valley edge status bit.

    This function returns the status of the start or stop valley status depending on the value of edge. If a start or stop edge has occurred, the function returns true, if not it returns false.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `edge`: is the start or stop edge.

    Return

      Returns true if the specified edge has occurred, Returns false if the specified edge has not occurred.

  uint16_t `EPWM_getValleyCount`(uint32_t base)

    Get the Valley Counter value.

    This function returns the valley time base count value which is captured upon occurrence of the stop edge condition selected by

    EPWM_setValleyTriggerSource() and by the stopCount variable of the EPWM_setValleyTriggerEdgeCounts() function.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns the valley base time count.

  uint16_t `EPWM_getValleyHWDelay`(uint32_t base)

    Get the Valley delay value.

    This function returns the hardware valley delay count.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      Returns the valley delay count.

  void `EPWM_enableGlobalLoad`(uint32_t base)

    Enable Global shadow load mode.

    This function enables Global shadow to active load mode of registers. The trigger source for loading shadow to active is determined by

    EPWM_setGlobalLoadTrigger() function.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableGlobalLoad`(uint32_t base)

    Disable Global shadow load mode.

    This function disables Global shadow to active load mode of registers. Loading shadow to active is determined individually.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setGlobalLoadTrigger`(uint32_t base, EPWM_GlobalLoadTrigger loadTrigger)

    Set the Global shadow load pulse.

    This function sets the pulse that causes Global shadow to active load. Valid values for the loadTrigger parameter are:

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadTrigger`: is the pulse that causes global shadow load.

    - EPWM_GL_LOAD_PULSE_CNTR_ZERO - load when counter is equal to zero

    - EPWM_GL_LOAD_PULSE_CNTR_PERIOD - load when counter is equal to period

    - EPWM_GL_LOAD_PULSE_CNTR_ZERO_PERIOD - load when counter is equal to zero or period

    - EPWM_GL_LOAD_PULSE_SYNC - load on sync event

    - EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_ZERO - load on sync event or when counter is equal to zero

    - EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_PERIOD - load on sync event or when counter is equal to period

    - EPWM_GL_LOAD_PULSE_SYNC_CNTR_ZERO_PERIOD - load on sync event or when counter is equal to period or zero

    - EPWM_GL_LOAD_PULSE_CNTR_U_CMPC - load when counter is equal to CMPC while incrementing

    - EPWM_GL_LOAD_PULSE_CNTR_D_CMPC - load when counter is equal to CMPC while decrementing

    - EPWM_GL_LOAD_PULSE_CNTR_U_CMPD - load when counter is equal to CMPD while incrementing

    - EPWM_GL_LOAD_PULSE_CNTR_D_CMPD - load when counter is equal to CMPD while decrementing

    - EPWM_GL_LOAD_PULSE_GLOBAL_FORCE - load on global force

    Return

      None.

  void `EPWM_setGlobalLoadEventPrescale`(uint32_t base, uint16_t prescalePulseCount)

    Set the number of Global load pulse event counts

    This function sets the number of Global Load pulse events that have to occurred before a global load pulse is issued. Valid values for prescaleCount range from 0 to 7. 0 being no event (disables counter), and 7 representing 7 events.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `prescalePulseCount`: is the pulse event counts.

    Return

      None.

  uint16_t `EPWM_getGlobalLoadEventCount`(uint32_t base)

    Return the number of Global load pulse event counts

    This function returns the number of Global Load pulse events that have occurred. These pulse events are set by the

    EPWM_setGlobalLoadTrigger() function.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableGlobalLoadOneShotMode`(uint32_t base)

    Enable continuous global shadow to active load.

    This function enables global continuous shadow to active load. Register load happens every time the event set by the

    EPWM_setGlobalLoadTrigger() occurs.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_enableGlobalLoadOneShotMode`(uint32_t base)

    Enable One shot global shadow to active load.

    This function enables a one time global shadow to active load. Register load happens every time the event set by the

    EPWM_setGlobalLoadTrigger() occurs.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setGlobalLoadOneShotLatch`(uint32_t base)

    Set One shot global shadow to active load pulse.

    This function sets a one time global shadow to active load pulse. The pulse propagates to generate a load signal if any of the events set by

    EPWM_setGlobalLoadTrigger() occur.
    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_forceGlobalLoadOneShotEvent`(uint32_t base)

    Force a software One shot global shadow to active load pulse.

    This function forces a software a one time global shadow to active load pulse.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_enableGlobalLoadRegisters`(uint32_t base, uint16_t loadRegister)

    Enable a register to be loaded Globally.

    This function enables the register specified by loadRegister to be globally loaded. Valid values for loadRegister are:

    - EPWM_GL_REGISTER_TBPRD_TBPRDHR - Register TBPRD:TBPRDHR

    - EPWM_GL_REGISTER_CMPA_CMPAHR - Register CMPA:CMPAHR

    - EPWM_GL_REGISTER_CMPB_CMPBHR - Register CMPB:CMPBHR

    - EPWM_GL_REGISTER_CMPC - Register CMPC

    - EPWM_GL_REGISTER_CMPD - Register CMPD

    - EPWM_GL_REGISTER_DBRED_DBREDHR - Register DBRED:DBREDHR

    - EPWM_GL_REGISTER_DBFED_DBFEDHR - Register DBFED:DBFEDHR

    - EPWM_GL_REGISTER_DBCTL - Register DBCTL

    - EPWM_GL_REGISTER_AQCTLA_AQCTLA2 - Register AQCTLA/A2

    - EPWM_GL_REGISTER_AQCTLB_AQCTLB2 - Register AQCTLB/B2

    - EPWM_GL_REGISTER_AQCSFRC - Register AQCSFRC

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadRegister`: is the register.

    Return

      None.

  void `EPWM_disableGlobalLoadRegisters`(uint32_t base, uint16_t loadRegister)

    Disable a register to be loaded Globally.

    This function disables the register specified by loadRegister from being loaded globally. The shadow to active load happens as specified by the register control Valid values for loadRegister are:

    - EPWM_GL_REGISTER_TBPRD_TBPRDHR - Register TBPRD:TBPRDHR

    - EPWM_GL_REGISTER_CMPA_CMPAHR - Register CMPA:CMPAHR

    - EPWM_GL_REGISTER_CMPB_CMPBHR - Register CMPB:CMPBHR

    - EPWM_GL_REGISTER_CMPC - Register CMPC

    - EPWM_GL_REGISTER_CMPD - Register CMPD

    - EPWM_GL_REGISTER_DBRED_DBREDHR - Register DBRED:DBREDHR

    - EPWM_GL_REGISTER_DBFED_DBFEDHR - Register DBFED:DBFEDHR

    - EPWM_GL_REGISTER_DBCTL - Register DBCTL

    - EPWM_GL_REGISTER_AQCTLA_AQCTLA2 - Register AQCTLA/A2

    - EPWM_GL_REGISTER_AQCTLB_AQCTLB2 - Register AQCTLB/B2

    - EPWM_GL_REGISTER_AQCSFRC - Register AQCSFRC

    Parameters

      - `base`: is the base address of the EPWM module.

      - `loadRegister`: is the register.

    Return

      None.

  void `EPWM_lockRegisters`(uint32_t base, EPWM_LockRegisterGroup registerGroup)

    Lock EALLOW protected register groups

    This functions locks the EALLOW protected register groups specified by the registerGroup variable.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `registerGroup`: is the EALLOW register groups.

    Return

      None.

  void `EPWM_enableXCMPMode`(uint32_t base)

    Enable ePWM XCMP mode.

    This function enables the ePWM XCMP mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableXCMPMode`(uint32_t base)

    Disable ePWM XCMP mode.

    This function disables the ePWM XCMP mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_enableSplitXCMP`(uint32_t base)

    Enable ePWM XCMP Split.

    This function splits 8 XCMP registers between CMPA and CMPB equally.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableSplitXCMP`(uint32_t base)

    Disable ePWM XCMP Split.

    This function allocates 8 XCMP registers to CMPA.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_allocAXCMP`(uint32_t base, EPWM_XCMP_ALLOC_CMPA alloctype)

    Allocates XCMP registers to CMPA.

    This function gives us choice to allocate range of XCMP registers to CMPA Valid values for alloctype are: EPWM_XCMP_NONE_CMPA - Allocate 0 XCMP registers to CMPA EPWM_XCMP_1_CMPA - Allocate XCMP1 register to CMPA EPWM_XCMP_2_CMPA - Allocate XCMP1- XCMP2 registers to CMPA EPWM_XCMP_3_CMPA - Allocate XCMP1- XCMP3 register to CMPA EPWM_XCMP_4_CMPA - Allocate XCMP1- XCMP4 registers to CMPA EPWM_XCMP_5_CMPA - Allocate XCMP1- XCMP5 register to CMPA EPWM_XCMP_6_CMPA - Allocate XCMP1- XCMP6 registers to CMPA EPWM_XCMP_7_CMPA - Allocate XCMP1- XCMP7 register to CMPA EPWM_XCMP_8_CMPA - Allocate XCMP1- XCMP8 register to CMPA

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `alloctype`: is range of XCMP registers to be allocated to CMPA

  void `EPWM_allocBXCMP`(uint32_t base, EPWM_XCMP_ALLOC_CMPB alloctype)

    Allocates XCMP registers to CMPB.

    This function gives us choice to allocate range of XCMP registers to CMPB Valid values for alloctype are: EPWM_XCMP_1_CMPB - Allocate XCMP5 register to CMPB EPWM_XCMP_2_CMPB - Allocate XCMP5- XCMP6 registers to CMPB EPWM_XCMP_3_CMPB - Allocate XCMP5- XCMP7 register to CMPB EPWM_XCMP_4_CMPB - Allocate XCMP5- XCMP8 registers to CMPB

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `alloctype`: is range of XCMP registers to be allocated to CMPB

  void `EPWM_setXCMPRegValue`(uint32_t base, EPWM_XCMPReg xcmpReg, uint32_t xcmpvalue)

    Writes values to XCMP registers

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `xcmpReg`: is the XCMP register offset

      - `xcmpvalue`: is the value to be written to XCMP registers This function writes xcmpvalue to XCMP registers. Valid values for xcmpReg are: EPWM_XCMP[1-8]_[ACTIVE/SHADOW1/SHADOW2/SHADOW3] -XCMP[1-8]_[ACTIVE/SHADOW1/SHADOW2/SHADOW3] EPWM_XTBPRD_ACTIVE -XTBPRD_ACTIVE EPWM_XTBPRD_SHADOW1 -XTBPRD_SHADOW1 EPWM_XTBPRD_SHADOW2 -XTBPRD_SHADOW2 EPWM_XTBPRD_SHADOW3 -XTBPRD_SHADOW3

  void `EPWM_setCMPShadowRegValue`(uint32_t base, EPWM_XCompareReg cmpReg, uint32_t cmpvalue)

    Writes values to CMPx Shadow registers

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `cmpReg`: is the CMP register offset

      - `cmpvalue`: is the value to be written to CMPC/D shadow registers This function writes cmpvalue to CMPC/D shadow registers. Valid values for cmpReg are: EPWM_CMPC_SHADOW1 -CMPC_SHADOW1 EPWM_CMPD_SHADOW1 -CMPD_SHADOW1 EPWM_CMPC_SHADOW2 -CMPC_SHADOW2 EPWM_CMPD_SHADOW2 -CMPD_SHADOW2 EPWM_CMPC_SHADOW3 -CMPC_SHADOW3 EPWM_CMPD_SHADOW3 -CMPD_SHADOW3

  void `EPWM_setXMINMAXRegValue`(uint32_t base, EPWM_XMinMaxReg xminmaxReg, uint32_t xcmpvalue)

    Writes values to XMINMAX registers

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `xminmaxReg`: is the XCMP register offset

      - `xcmpvalue`: is the value to be written to XCMP registers This function writes xcmpvalue to XCMP registers. Valid values for xminmaxReg are: EPWM_XMIN_ACTIVE -XMIN_ACTIVE EPWM_XMAX_ACTIVE -XMAX_ACTIVE EPWM_XMIN_SHADOW1 -XMIN_SHADOW1 EPWM_XMAX_SHADOW1 -XMAX_SHADOW1 EPWM_XMIN_SHADOW2 -XMIN_SHADOW2 EPWM_XMAX_SHADOW2 -XMAX_SHADOW2 EPWM_XMIN_SHADOW3 -XMIN_SHADOW3 EPWM_XMAX_SHADOW3 -XMAX_SHADOW3

  void `EPWM_setXCMPActionQualifierAction`(uint32_t base, uint32_t shadowset, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output, EPWM_XCMPActionQualifierOutputEvent event)

    Set up Action qualifier outputs based on XAQ registers

    This function sets up the Action Qualifier output on ePWM A or ePWMB, depending on the value of epwmOutput, to a value specified by outPut based on the input events - specified by event. The following are valid values for the parameters.

    - epwmOutput

      - EPWM_AQ_OUTPUT_A - ePWMxA output

      - EPWM_AQ_OUTPUT_B - ePWMxB output -shadowset

      - EPWM_XCMP_ACTIVE - XCMP set is Active

      - EPWM_XCMP_SHADOW1 - XCMP set is Shadow 1

      - EPWM_XCMP_SHADOW2 - XCMP set is Shadow 2

      - EPWM_XCMP_SHADOW3 - XCMP set is Shadow 3

    - output

      - EPWM_AQ_OUTPUT_NO_CHANGE - No change in the output pins

      - EPWM_AQ_OUTPUT_LOW - Set output pins to low

      - EPWM_AQ_OUTPUT_HIGH - Set output pins to High

      - EPWM_AQ_OUTPUT_TOGGLE - Toggle the output pins

    - event EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP1 -Time base counter equals XCMP1 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP2 -Time base counter equals XCMP2 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP3 -Time base counter equals XCMP3 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP4 -Time base counter equals XCMP4 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP5 -Time base counter equals XCMP5 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP6 -Time base counter equals XCMP6 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP7 -Time base counter equals XCMP7 EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP8 -Time base counter equals XCMP8

      Return

        None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `shadowset`: is the shadow set number or active set.

      - `epwmOutput`: is the ePWM pin type.

      - `output`: is the Action Qualifier output.

      - `event`: is the event that causes a change in output.

  void `EPWM_enableXLoad`(uint32_t base)

    Enables ePWM XCMP reload event.

    This function enables the ePWM XCMP reload event.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableXLoad`(uint32_t base)

    Disables ePWM XCMP reload event.

    This function disables the ePWM XCMP reload event.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_forceXLoad`(uint32_t base)

    Forces register loading from shadow buffers.

    This function is used for software force loading of the events in global load mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setXCMPLoadMode`(uint32_t base, EPWM_XCMPXloadCtlLoadMode mode)

    Selects the mode for the XCMP Shadow registers

    This function gives us choice to select the mode for XCMP shadow registers Valid values for mode are: EPWM_XCMP_XLOADCTL_LOADMODE_LOADONCE - Load mode is LOADONCE EPWM_XCMP_XLOADCTL_LOADMODE_LOADMULTIPLE - Load mode is LOADMULTIPLE

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `mode`: is load mode selection for XCMP Shadow registers

  void `EPWM_setXCMPShadowLevel`(uint32_t base, EPWM_XCMP_XLOADCTL_SHDWLEVEL level)

    Selects the shadow register level allocation

    This function gives us choice to select the XCMP shadow registers level Valid values for alloctype are: EPWM_XCMP_XLOADCTL_SHDWLEVEL_0 - Only Active reg is available EPWM_XCMP_XLOADCTL_SHDWLEVEL_1 - SHDW1 and Active regs EPWM_XCMP_XLOADCTL_SHDWLEVEL_2 - SHDW2, SHDW1 and Active regs EPWM_XCMP_XLOADCTL_SHDWLEVEL_3 - SHDW3, SHDW2, SHDW1 and Active regs

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `level`: is shadow register level allocation options

  void `EPWM_setXCMPShadowBufPtrLoadOnce`(uint32_t base, EPWM_XCMP_XLOADCTL_SHDWBUFPTR ptr)

    Selects which shadow register set is in use

    This function gives us choice to select the shadow buffer to use currently. Valid values for alloctype are: EPWM_XCMP_XLOADCTL_SHDWBUFPTR_NULL - No Shadow buffer is in use EPWM_XCMP_XLOADCTL_SHDWBUFPTR_ONE - Shadow buffer 1 is in use EPWM_XCMP_XLOADCTL_SHDWBUFPTR_TWO - Shadow buffer 2 is in use EPWM_XCMP_XLOADCTL_SHDWBUFPTR_THREE - Shadow buffer 3 is in use

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `ptr`: indicates current shadow buffer in use.

  void `EPWM_setXCMPShadowRepeatBufxCount`(uint32_t base, uint32_t bufferset, uint32_t count)

    Chooses how many times Shadow buffer 2 or 3 is applied

    This function gives us choice to select how many times shadow buffer 2 or 3 is applied. Max value is 7. count = 0 - 1 time count = 1 - 2 times ….. count = 7 - 8 times Valid values for bufferset are: EPWM_XCMP_SHADOW2 - XCMP set is Shadow 2 EPWM_XCMP_SHADOW3 - XCMP set is Shadow 3

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `bufferset`: is the shadow set number.

      - `count`: is number of times Shadow Buffer 2 or 3 is applied

  void `EPWM_enableMinimumDeadBand`(uint32_t base, uint32_t block)

    Enable Minimum DeadBand module

    This function enables the Minimum DeadBand module. Valid values for the input variables are:

    - block

      - EPWM_MINDBCFG_ENABLEA - ePWM output A

      - EPWM_MINDBCFG_ENABLEB - ePWM output B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand Block to be enabled.

    Return

      None.

  void `EPWM_disableMinimumDeadBand`(uint32_t base, uint32_t block)

    Disable Minimum DeadBand module

    This function enables the Minimum DeadBand module. Valid values for the input variables are:

    - block

      - EPWM_MINDBCFG_ENABLEA - ePWM output A

      - EPWM_MINDBCFG_ENABLEB - ePWM output B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand Block to be disabled.

    Return

      None.

  void `EPWM_invertMinimumDeadBandSignal`(uint32_t base, uint32_t block, uint32_t invert)

    Invert the Minimum DeadBand Reference Signal

    This function configures the Minimum DeadBand module to invert reference signal which is used in the Minimum DeadBand module. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - invert

      - EPWM_MINDB_REF_SIG - No inversion

      - EPWM_MINDB_REF_SIG_INVERT - Invert the signal

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block to be configured.

      - `invert`: specifies whether reference signal is to be inverted or not.

    Return

      None.

  void `EPWM_selectMinimumDeadBandAndOrLogic`(uint32_t base, uint32_t block, uint32_t logic)

    Select signal for AND OR logic of Minimum DeadBand Module

    This function configures how the signal will be combined with the PWM output. The signal can be inverted and ANDed with PWM output or it can be ORed with the PWM output. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - logic

      - EPWM_MINDB_POLSEL_INVERT_LOGICAL_AND - Invert and Logical AND

      - EPWM_MINDB_POLSEL_LOGICAL_OR - Logical OR

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block to be configured.

      - `logic`: specifies how the signal will be combined.

    Return

      None.

  void `EPWM_selectMinimumDeadBandBlockingSignal`(uint32_t base, uint32_t block, uint32_t blockingSignal)

    Select Minimum DeadBand Blocking Signal

    This function configures the blocking signal for Minimum DeadBand module. Either of the Block A or Block B signal can be selected as blocking signal. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - blockSrc

      - EPWM_MINDB_BLOCKING_SIGNAL_BYPASS - Block Source same

      - EPWM_MINDB_BLOCKING_SIGNAL_SWAPBLOCK - Block Source different

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block to be configured.

      - `blockingSignal`: is the blocking signal to be used for a block.

    Return

      None.

  void `EPWM_selectMinimumDeadBandReferenceSignal`(uint32_t base, uint32_t block, uint32_t referenceSignal)

    Select Minimum DeadBand Reference Signal

    This function selects the reference signal for Minimum DeadBand module. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - reference

      - EPWM_MINDB_DEPWM - Minimum Dead Band DE reference

      - EPWM_MINDB_SEL_OUTXBAR_OUTy - Output y from PWM Output XBAR (‘y’ can be from 1 to 15) ex. EPWM_MINDB_SEL_OUTXBAR_OUT1

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block to be configured.

      - `referenceSignal`: specifies the reference signal to be selected.

    Return

      None.

  uint32_t `EPWM_getMinDeadBandDelay`(uint32_t base, uint32_t block)

    Get Minimum DeadBand Delay Value

    This function returns the delay value for the Minimum DeadBand module. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block whose value is needed.

    Return

      Delay value of the Minimum DeadBand module.

  void `EPWM_setMinDeadBandDelay`(uint32_t base, uint32_t block, uint32_t delay)

    Set the Minimum DeadBand Delay Value

    This function configures the Minimum DeadBand delay value for the specified block. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - delay: Minimum dead band delay on ePWM in terms of SYSCLK cycles

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Minimum DeadBand block to be configured.

      - `delay`: is the delay value to be programmed for the Minimum DeadBand.

    Return

      None.

  void `EPWM_enableIllegalComboLogic`(uint32_t base, uint32_t block)

    Enable Illegal Combo Logic

    This function enables the Illegal Combo Logic block. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Illegal Combo Logic block to be enabled.

    Return

      None.

  void `EPWM_disableIllegalComboLogic`(uint32_t base, uint32_t block)

    Disable Illegal Combo Logic

    This function disables the Illegal Combo Logic block. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Illegal Combo Logic block to be enabled.

    Return

      None.

  void `EPWM_selectXbarInput`(uint32_t base, uint32_t block, uint32_t xbarInput)

    Select XBAR input for Illegal Combo Logic

    This function selects which Xbar signal feeds into the Illegal Combo Logic. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - xbarInput

      - EPWM_MINDB_ICL_XBAR_OUTy - Output y from ICL XBAR (‘y’ can be from 0 to 15) ex. EPWM_MINDB_ICL_XBAR_OUT1

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Illegal Combo Logic block to be configured.

      - `xbarInput`: is the Xbar signal to feed into the Illegal Combo Logic.

    Return

      None.

  void `EPWM_setLutDecX`(uint32_t base, uint32_t block, uint32_t decx, uint32_t force)

    Force Decx values

    This function programs value in the Decx register fields of the Illegal Combo Logic module. Valid values for the input variables are:

    - block

      - EPWM_MINDB_BLOCK_A - ePWM output A

      - EPWM_MINDB_BLOCK_B - ePWM output B

    - decx

      - EPWM_MINDB_ICL_LUT_DECx - ‘x’ can be from 0 to 7

    - force

      - value that can be forced can be either 0 or 1

    Parameters

      - `base`: is the base address of the EPWM module.

      - `block`: is the Illegal Combo Logic block to be configured.

      - `decx`: is the register to be programmed.

      - `force`: is the value to be programmed in the register.

    Return

      None.

  void `EPWM_enableDiodeEmulationMode`(uint32_t base)

    Enable ePWM diode emulation mode.

    This function enables the ePWM diode emulation mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_disableDiodeEmulationMode`(uint32_t base)

    Disable ePWM diode emulation mode.

    This function disables the ePWM diode emulation mode.

    Parameters

      - `base`: is the base address of the EPWM module.

    Return

      None.

  void `EPWM_setDiodeEmulationMode`(uint32_t base, EPWM_DiodeEmulationMode mode)

    Selects the mode for the Diode emulation mode

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `mode`: is load mode selection for Diode emulation mode This function gives us choice to select the mode for Diode emulation mode Valid values for input variables are:

        - mode EPWM_DIODE_EMULATION_CBC - Diode Emulation mode is Cycle by Cycle EPWM_DIODE_EMULATION_OST - Diode Emulation mode is One Shot

  void `EPWM_setDiodeEmulationReentryDelay`(uint32_t base, uint32_t delay)

    Set ePWM diode emulation re-entry delay.

    This function determines the blocking window after DEACTIVE flag is cleared in which setting of DEACTIVE flag is prevented from being set.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `delay`: is the re-entry delay in terms of number of PWMSYNCOUT events.

    Valid values for input variables are:

    - delay: Max value of delay is 256.

    Return

      None.

  void `EPWM_configureDiodeEmulationTripLowSources`(uint32_t base, EPWM_DiodeEmulationTripLSource source)

    Set ePWM diode emulation trip source for TripL.

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `source`: is the trip source This function is used to configure the comparator whose trip sources will be used. Valid values for source are: EPWM_DE_TRIPL_SRC_INPUTXBAR_OUT[0-16] - INPUTXBAR out[0-16] signal EPWM_DE_TRIPL_SRC_CLBINPUTXBAR_OUT[0-16] - CLBINPUTXBAR out[0-16] signal EPWM_DE_TRIPL_SRC_CMPSSTRIPL[1-11] - CMPSSTRIPL[1-11] signal

  void `EPWM_configureDiodeEmulationTripHighSources`(uint32_t base, EPWM_DiodeEmulationTripHSource source)

    Set ePWM diode emulation trip source for TripH.

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `source`: is the trip source This function is used to configure the comparator whose trip sources will be used. Valid values for source are: EPWM_DE_TRIPH_SRC_INPUTXBAR_OUT[0-16] - INPUTXBAR out[0-16] signal EPWM_DE_TRIPH_SRC_CLBINPUTXBAR_OUT[0-16] - CLBINPUTXBAR out[0-16] signal EPWM_DE_TRIPH_SRC_CMPSSTRIPH[1-11] - CMPSSTRIPH[1-11] signal

  void `EPWM_selectDiodeEmulationPWMsignal`(uint32_t base, uint32_t channel, EPWM_DiodeEmulationSignal emulationSignal)

    Selects ePWM diode emulation pwm signal.

    Valid values for signal are: EPWM_DE_SYNC_TRIPHorL - synchronized version of TRIPH or TRIPL signal EPWM_DE_SYNC_INV_TRIPHorL - synchronized and inverted version of TRIPH or TRIPL signal EPWM_DE_LOW - a constant low signal EPWM_DE_HIGH - a constant high signal

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `channel`: is the epwm output channel

      - `signal`: is the signal selected by the TRIPSEL[A/B] This function is used to select the pwm signal in DE mode. Valid values for channel are: EPWM_DE_CHANNEL_A - Diode emulation channel A EPWM_DE_CHANNEL_B - Diode emulation channel B

  void `EPWM_selectDiodeEmulationTripSignal`(uint32_t base, uint32_t channel, uint32_t emulationSignal)

    Selects between TRIPH and TRIPL for an epwm channel in DE mode.

    Valid values for signal are: 0 for TRIPH 1 for TRIPL

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `channel`: is the epwm output channel

      - `signal`: is the signal selected by the TRIPSEL[A/B] This function is used to select between TRIPH and TRIPL for a channel in DE mode. Valid values for channel are: EPWM_DE_CHANNEL_A - Diode emulation channel A EPWM_DE_CHANNEL_B - Diode emulation channel B

  void `EPWM_nobypassDiodeEmulationLogic`(uint32_t base)

    PWMTRIP does not bypass the diode emulation logic

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to go through DEL.

  void `EPWM_bypassDiodeEmulationLogic`(uint32_t base)

    PWMTRIP bypasses the diode emulation PWM generation logic

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to bypass DEL.

  void `EPWM_forceDiodeEmulationActive`(uint32_t base)

    Forces DEACTIVE flag to 1

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to force DEACTIVE flag to 1.

  void `EPWM_enableDiodeEmulationMonitorModeControl`(uint32_t base)

    Enables DE monitor control mode

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to enable the DE monitor counter function.

  void `EPWM_disableDiodeEmulationMonitorModeControl`(uint32_t base)

    Disables DE monitor control mode

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to disable the DE monitor counter function.

  void `EPWM_setDiodeEmulationMonitorModeStep`(uint32_t base, uint32_t direction, uint32_t stepsize)

    Sets the DE monitor counter step size

    Max value of stepsize is 256.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `direction`: is the direction of the monitor counter counting either UP or DOWN.

      - `stepsize`: is the amount by which the counter increments or decrements at each step. This function is used to set the DE monitor counter step size. Valid values for direction are: EPWM_DE_COUNT_UP - Diode emulation count up step size EPWM_DE_COUNT_DOWN - Diode emulation count down step size.

    Return

      None.

  void `EPWM_setDiodeEmulationMonitorCounterThreshold`(uint32_t base, uint32_t threshold)

    Sets the DE monitor counter threshold value.

    Max value of threshold is 2^16.

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `threshold`: is the max value till which the monitor counter can count. This function is used to set the DE monitor counter threshold.

  void `EPWM_clearDiodeEmulationActiveFlag`(uint32_t base)

    Clears DE mode active flag

    Return

      None.

    Parameters

      - `base`: is the base address of the EPWM module. This function is used to clear the DE mode active flag

  void `EPWM_setEmulationMode`(uint32_t base, EPWM_EmulationMode emulationMode)

    Set emulation mode

    This function sets the emulation behaviours of the time base counter. Valid values for emulationMode are:

    - EPWM_EMULATION_STOP_AFTER_NEXT_TB - Stop after next Time Base counter increment or decrement.

    - EPWM_EMULATION_STOP_AFTER_FULL_CYCLE - Stop when counter completes whole cycle.

    - EPWM_EMULATION_FREE_RUN - Free run.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `emulationMode`: is the emulation mode.

    Return

      None.

  void `EPWM_configureSignal`(uint32_t base, const EPWM_SignalParams *signalParams)

    Configures ePWM signal with desired frequency & duty

    This function configures the ePWM module to generate a signal with desired frequency & duty.

    Parameters

      - `base`: is the base address of the EPWM module.

      - `signalParams`: is the desired signal parameters.

    Return

      None.

  struct `EPWM_SignalParams`
    #include <epwm.h>

    Values that can be passed to EPWM_configureSignal() as the signalParams parameter.

The code for this module is contained in driverlib/epwm.c, with driverlib/epwm.h containing the API declarations for use by applications.