AM263x MCU+ SDK  08.03.01

Introduction

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

Data Structures

struct  EPWM_SignalParams
 

Functions

static void EPWM_setTimeBaseCounter (uint32_t base, uint16_t count)
 
static void EPWM_setCountModeAfterSync (uint32_t base, EPWM_SyncCountMode mode)
 
static void EPWM_setClockPrescaler (uint32_t base, EPWM_ClockDivider prescaler, EPWM_HSClockDivider highSpeedPrescaler)
 
static void EPWM_forceSyncPulse (uint32_t base)
 
static void EPWM_setSyncInPulseSource (uint32_t base, EPWM_SyncInPulseSource source)
 
static void EPWM_enableSyncOutPulseSource (uint32_t base, uint16_t source)
 
static void EPWM_disableSyncOutPulseSource (uint32_t base, uint16_t source)
 
static void EPWM_setOneShotSyncOutTrigger (uint32_t base, EPWM_OneShotSyncOutTrigger trigger)
 
static void EPWM_setPeriodLoadMode (uint32_t base, EPWM_PeriodLoadMode loadMode)
 
static void EPWM_enablePhaseShiftLoad (uint32_t base)
 
static void EPWM_disablePhaseShiftLoad (uint32_t base)
 
static void EPWM_setTimeBaseCounterMode (uint32_t base, EPWM_TimeBaseCountMode counterMode)
 
static void EPWM_selectPeriodLoadEvent (uint32_t base, EPWM_PeriodShadowLoadMode shadowLoadMode)
 
static void EPWM_enableOneShotSync (uint32_t base)
 
static void EPWM_disableOneShotSync (uint32_t base)
 
static void EPWM_startOneShotSync (uint32_t base)
 
static uint16_t EPWM_getTimeBaseCounterValue (uint32_t base)
 
static bool EPWM_getTimeBaseCounterOverflowStatus (uint32_t base)
 
static void EPWM_clearTimeBaseCounterOverflowEvent (uint32_t base)
 
static bool EPWM_getSyncStatus (uint32_t base)
 
static void EPWM_clearSyncEvent (uint32_t base)
 
static uint16_t EPWM_getTimeBaseCounterDirection (uint32_t base)
 
static void EPWM_setPhaseShift (uint32_t base, uint16_t phaseCount)
 
static void EPWM_setTimeBasePeriod (uint32_t base, uint16_t periodCount)
 
static uint16_t EPWM_getTimeBasePeriod (uint32_t base)
 
static void EPWM_setupEPWMLinks (uint32_t base, EPWM_CurrentLink epwmLink, EPWM_LinkComponent linkComp)
 
static void EPWM_setCounterCompareShadowLoadMode (uint32_t base, EPWM_CounterCompareModule compModule, EPWM_CounterCompareLoadMode loadMode)
 
static void EPWM_disableCounterCompareShadowLoadMode (uint32_t base, EPWM_CounterCompareModule compModule)
 
static void EPWM_setCounterCompareValue (uint32_t base, EPWM_CounterCompareModule compModule, uint16_t compCount)
 
static uint16_t EPWM_getCounterCompareValue (uint32_t base, EPWM_CounterCompareModule compModule)
 
static bool EPWM_getCounterCompareShadowStatus (uint32_t base, EPWM_CounterCompareModule compModule)
 
static void EPWM_setActionQualifierShadowLoadMode (uint32_t base, EPWM_ActionQualifierModule aqModule, EPWM_ActionQualifierLoadMode loadMode)
 
static void EPWM_disableActionQualifierShadowLoadMode (uint32_t base, EPWM_ActionQualifierModule aqModule)
 
static void EPWM_setActionQualifierT1TriggerSource (uint32_t base, EPWM_ActionQualifierTriggerSource trigger)
 
static void EPWM_setActionQualifierT2TriggerSource (uint32_t base, EPWM_ActionQualifierTriggerSource trigger)
 
static void EPWM_setActionQualifierAction (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output, EPWM_ActionQualifierOutputEvent event)
 
static void EPWM_setActionQualifierActionComplete (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierEventAction action)
 
static void EPWM_setAdditionalActionQualifierActionComplete (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_AdditionalActionQualifierEventAction action)
 
static void EPWM_setActionQualifierContSWForceShadowMode (uint32_t base, EPWM_ActionQualifierContForce mode)
 
static void EPWM_setActionQualifierContSWForceAction (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierSWOutput output)
 
static void EPWM_setActionQualifierSWAction (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output)
 
static void EPWM_forceActionQualifierSWAction (uint32_t base, EPWM_ActionQualifierOutputModule epwmOutput)
 
static void EPWM_setDeadBandOutputSwapMode (uint32_t base, EPWM_DeadBandOutput output, bool enableSwapMode)
 
static void EPWM_setDeadBandDelayMode (uint32_t base, EPWM_DeadBandDelayMode delayMode, bool enableDelayMode)
 
static void EPWM_setDeadBandDelayPolarity (uint32_t base, EPWM_DeadBandDelayMode delayMode, EPWM_DeadBandPolarity polarity)
 
static void EPWM_setRisingEdgeDeadBandDelayInput (uint32_t base, uint16_t input)
 
static void EPWM_setFallingEdgeDeadBandDelayInput (uint32_t base, uint16_t input)
 
static void EPWM_setDeadBandControlShadowLoadMode (uint32_t base, EPWM_DeadBandControlLoadMode loadMode)
 
static void EPWM_disableDeadBandControlShadowLoadMode (uint32_t base)
 
static void EPWM_setRisingEdgeDelayCountShadowLoadMode (uint32_t base, EPWM_RisingEdgeDelayLoadMode loadMode)
 
static void EPWM_disableRisingEdgeDelayCountShadowLoadMode (uint32_t base)
 
static void EPWM_setFallingEdgeDelayCountShadowLoadMode (uint32_t base, EPWM_FallingEdgeDelayLoadMode loadMode)
 
static void EPWM_disableFallingEdgeDelayCountShadowLoadMode (uint32_t base)
 
static void EPWM_setDeadBandCounterClock (uint32_t base, EPWM_DeadBandClockMode clockMode)
 
static void EPWM_setRisingEdgeDelayCount (uint32_t base, uint16_t redCount)
 
static void EPWM_setFallingEdgeDelayCount (uint32_t base, uint16_t fedCount)
 
static void EPWM_enableChopper (uint32_t base)
 
static void EPWM_disableChopper (uint32_t base)
 
static void EPWM_setChopperDutyCycle (uint32_t base, uint16_t dutyCycleCount)
 
static void EPWM_setChopperFreq (uint32_t base, uint16_t freqDiv)
 
static void EPWM_setChopperFirstPulseWidth (uint32_t base, uint16_t firstPulseWidth)
 
static void EPWM_enableTripZoneSignals (uint32_t base, uint32_t tzSignal)
 
static void EPWM_disableTripZoneSignals (uint32_t base, uint32_t tzSignal)
 
static void EPWM_setTripZoneDigitalCompareEventCondition (uint32_t base, EPWM_TripZoneDigitalCompareOutput dcType, EPWM_TripZoneDigitalCompareOutputEvent dcEvent)
 
static void EPWM_enableTripZoneAdvAction (uint32_t base)
 
static void EPWM_disableTripZoneAdvAction (uint32_t base)
 
static void EPWM_setTripZoneAction (uint32_t base, EPWM_TripZoneEvent tzEvent, EPWM_TripZoneAction tzAction)
 
static void EPWM_setTripZoneAdvAction (uint32_t base, EPWM_TripZoneAdvancedEvent tzAdvEvent, EPWM_TripZoneAdvancedAction tzAdvAction)
 
static void EPWM_setTripZoneAdvDigitalCompareActionA (uint32_t base, EPWM_TripZoneAdvDigitalCompareEvent tzAdvDCEvent, EPWM_TripZoneAdvancedAction tzAdvDCAction)
 
static void EPWM_setTripZoneAdvDigitalCompareActionB (uint32_t base, EPWM_TripZoneAdvDigitalCompareEvent tzAdvDCEvent, EPWM_TripZoneAdvancedAction tzAdvDCAction)
 
static void EPWM_enableTripZoneInterrupt (uint32_t base, uint16_t tzInterrupt)
 
static void EPWM_disableTripZoneInterrupt (uint32_t base, uint16_t tzInterrupt)
 
static uint16_t EPWM_getTripZoneFlagStatus (uint32_t base)
 
static uint16_t EPWM_getCycleByCycleTripZoneFlagStatus (uint32_t base)
 
static uint16_t EPWM_getOneShotTripZoneFlagStatus (uint32_t base)
 
static void EPWM_selectCycleByCycleTripZoneClearEvent (uint32_t base, EPWM_CycleByCycleTripZoneClearMode clearEvent)
 
static void EPWM_clearTripZoneFlag (uint32_t base, uint16_t tzFlags)
 
static void EPWM_clearCycleByCycleTripZoneFlag (uint32_t base, uint16_t tzCBCFlags)
 
static void EPWM_clearOneShotTripZoneFlag (uint32_t base, uint16_t tzOSTFlags)
 
static void EPWM_forceTripZoneEvent (uint32_t base, uint16_t tzForceEvent)
 
static void EPWM_enableTripZoneOutput (uint32_t base, uint16_t tzOutput)
 
static void EPWM_disableTripZoneOutput (uint32_t base, uint16_t tzOutput)
 
static void EPWM_enableInterrupt (uint32_t base)
 
static void EPWM_disableInterrupt (uint32_t base)
 
static void EPWM_setInterruptSource (uint32_t base, uint16_t interruptSource, uint16_t mixedSource)
 
static void EPWM_setInterruptEventCount (uint32_t base, uint16_t eventCount)
 
static bool EPWM_getEventTriggerInterruptStatus (uint32_t base)
 
static void EPWM_clearEventTriggerInterruptFlag (uint32_t base)
 
static void EPWM_enableInterruptEventCountInit (uint32_t base)
 
static void EPWM_disableInterruptEventCountInit (uint32_t base)
 
static void EPWM_forceInterruptEventCountInit (uint32_t base)
 
static void EPWM_setInterruptEventCountInitValue (uint32_t base, uint16_t eventCount)
 
static uint16_t EPWM_getInterruptEventCount (uint32_t base)
 
static void EPWM_forceEventTriggerInterrupt (uint32_t base)
 
static void EPWM_enableADCTrigger (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_disableADCTrigger (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_setADCTriggerSource (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, EPWM_ADCStartOfConversionSource socSource, uint16_t mixedSource)
 
static void EPWM_setADCTriggerEventPrescale (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, uint16_t preScaleCount)
 
static bool EPWM_getADCTriggerFlagStatus (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_clearADCTriggerFlag (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_enableADCTriggerEventCountInit (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_disableADCTriggerEventCountInit (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_forceADCTriggerEventCountInit (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_setADCTriggerEventCountInitValue (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType, uint16_t eventCount)
 
static uint16_t EPWM_getADCTriggerEventCount (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_forceADCTrigger (uint32_t base, EPWM_ADCStartOfConversionType adcSOCType)
 
static void EPWM_selectDigitalCompareTripInput (uint32_t base, EPWM_DigitalCompareTripInput tripSource, EPWM_DigitalCompareType dcType)
 
static void EPWM_enableDigitalCompareBlankingWindow (uint32_t base)
 
static void EPWM_disableDigitalCompareBlankingWindow (uint32_t base)
 
static void EPWM_enableDigitalCompareWindowInverseMode (uint32_t base)
 
static void EPWM_disableDigitalCompareWindowInverseMode (uint32_t base)
 
static void EPWM_setDigitalCompareBlankingEvent (uint32_t base, EPWM_DigitalCompareBlankingPulse blankingPulse, uint16_t mixedSource)
 
static void EPWM_setDigitalCompareFilterInput (uint32_t base, EPWM_DigitalCompareFilterInput filterInput)
 
static void EPWM_enableDigitalCompareEdgeFilter (uint32_t base)
 
static void EPWM_disableDigitalCompareEdgeFilter (uint32_t base)
 
static void EPWM_setDigitalCompareEdgeFilterMode (uint32_t base, EPWM_DigitalCompareEdgeFilterMode edgeMode)
 
static void EPWM_setDigitalCompareEdgeFilterEdgeCount (uint32_t base, EPWM_DigitalCompareEdgeFilterEdgeCount edgeCount)
 
static uint16_t EPWM_getDigitalCompareEdgeFilterEdgeCount (uint32_t base)
 
static uint16_t EPWM_getDigitalCompareEdgeFilterEdgeStatus (uint32_t base)
 
static void EPWM_setDigitalCompareWindowOffset (uint32_t base, uint16_t windowOffsetCount)
 
static void EPWM_setDigitalCompareWindowLength (uint32_t base, uint16_t windowLengthCount)
 
static uint16_t EPWM_getDigitalCompareBlankingWindowOffsetCount (uint32_t base)
 
static uint16_t EPWM_getDigitalCompareBlankingWindowLengthCount (uint32_t base)
 
static void EPWM_setDigitalCompareEventSource (uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareEventSource dcEventSource)
 
static void EPWM_setDigitalCompareEventSyncMode (uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareSyncMode syncMode)
 
static void EPWM_enableDigitalCompareADCTrigger (uint32_t base, EPWM_DigitalCompareModule dcModule)
 
static void EPWM_disableDigitalCompareADCTrigger (uint32_t base, EPWM_DigitalCompareModule dcModule)
 
static void EPWM_enableDigitalCompareSyncEvent (uint32_t base, EPWM_DigitalCompareModule dcModule)
 
static void EPWM_disableDigitalCompareSyncEvent (uint32_t base, EPWM_DigitalCompareModule dcModule)
 
static void EPWM_setDigitalCompareCBCLatchMode (uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareCBCLatchMode latchMode)
 
static void EPWM_selectDigitalCompareCBCLatchClearEvent (uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent, EPWM_DigitalCompareCBCLatchClearEvent clearEvent)
 
static bool EPWM_getDigitalCompareCBCLatchStatus (uint32_t base, EPWM_DigitalCompareModule dcModule, EPWM_DigitalCompareEvent dcEvent)
 
static void EPWM_enableDigitalCompareCounterCapture (uint32_t base)
 
static void EPWM_disableDigitalCompareCounterCapture (uint32_t base)
 
static void EPWM_setDigitalCompareCounterShadowMode (uint32_t base, bool enableShadowMode)
 
static bool EPWM_getDigitalCompareCaptureStatus (uint32_t base)
 
static uint16_t EPWM_getDigitalCompareCaptureCount (uint32_t base)
 
static void EPWM_enableDigitalCompareTripCombinationInput (uint32_t base, uint16_t tripInput, EPWM_DigitalCompareType dcType)
 
static void EPWM_disableDigitalCompareTripCombinationInput (uint32_t base, uint16_t tripInput, EPWM_DigitalCompareType dcType)
 
static void EPWM_enableValleyCapture (uint32_t base)
 
static void EPWM_disableValleyCapture (uint32_t base)
 
static void EPWM_startValleyCapture (uint32_t base)
 
static void EPWM_setValleyTriggerSource (uint32_t base, EPWM_ValleyTriggerSource trigger)
 
static void EPWM_setValleyTriggerEdgeCounts (uint32_t base, uint16_t startCount, uint16_t stopCount)
 
static void EPWM_enableValleyHWDelay (uint32_t base)
 
static void EPWM_disableValleyHWDelay (uint32_t base)
 
static void EPWM_setValleySWDelayValue (uint32_t base, uint16_t delayOffsetValue)
 
static void EPWM_setValleyDelayDivider (uint32_t base, EPWM_ValleyDelayMode delayMode)
 
static bool EPWM_getValleyEdgeStatus (uint32_t base, EPWM_ValleyCounterEdge edge)
 
static uint16_t EPWM_getValleyCount (uint32_t base)
 
static uint16_t EPWM_getValleyHWDelay (uint32_t base)
 
static void EPWM_enableGlobalLoad (uint32_t base)
 
static void EPWM_disableGlobalLoad (uint32_t base)
 
static void EPWM_setGlobalLoadTrigger (uint32_t base, EPWM_GlobalLoadTrigger loadTrigger)
 
static void EPWM_setGlobalLoadEventPrescale (uint32_t base, uint16_t prescalePulseCount)
 
static uint16_t EPWM_getGlobalLoadEventCount (uint32_t base)
 
static void EPWM_disableGlobalLoadOneShotMode (uint32_t base)
 
static void EPWM_enableGlobalLoadOneShotMode (uint32_t base)
 
static void EPWM_setGlobalLoadOneShotLatch (uint32_t base)
 
static void EPWM_forceGlobalLoadOneShotEvent (uint32_t base)
 
static void EPWM_enableGlobalLoadRegisters (uint32_t base, uint16_t loadRegister)
 
static void EPWM_disableGlobalLoadRegisters (uint32_t base, uint16_t loadRegister)
 
static void EPWM_lockRegisters (uint32_t base, EPWM_LockRegisterGroup registerGroup)
 
static void EPWM_enableMinimumDeadBand (uint32_t base, uint32_t block)
 
static void EPWM_disableMinimumDeadBand (uint32_t base, uint32_t block)
 
static void EPWM_invertMinimumDeadBandSignal (uint32_t base, uint32_t block, uint32_t invert)
 
static void EPWM_selectMinimumDeadBandAndOrLogic (uint32_t base, uint32_t block, uint32_t referenceSignal)
 
static void EPWM_selectMinimumDeadBandBlockingSignal (uint32_t base, uint32_t block, uint32_t blockingSignal)
 
static void EPWM_selectMinimumDeadBandReferenceSignal (uint32_t base, uint32_t block, uint32_t referenceSignal)
 
static uint32_t EPWM_getMinDeadBandDelay (uint32_t base, uint32_t block)
 
static void EPWM_setMinDeadBandDelay (uint32_t base, uint32_t block, uint32_t delay)
 
static void EPWM_enableIllegalComboLogic (uint32_t base, uint32_t block)
 
static void EPWM_disableIllegalComboLogic (uint32_t base, uint32_t block)
 
static void EPWM_selectXbarInput (uint32_t base, uint32_t block, uint32_t xbarInput)
 
static void EPWM_setLutDecX (uint32_t base, uint32_t block, uint32_t decx, uint32_t force)
 
static void HRPWM_setPhaseShift (uint32_t base, uint32_t phaseCount)
 
static void HRPWM_setHiResPhaseShift (uint32_t base, uint16_t hrPhaseCount)
 
static void HRPWM_setHiResTimeBasePeriod (uint32_t base, uint16_t hrPeriodCount)
 
static uint16_t HRPWM_getHiResTimeBasePeriod (uint32_t base)
 
static void HRPWM_setMEPEdgeSelect (uint32_t base, HRPWM_Channel channel, HRPWM_MEPEdgeMode mepEdgeMode)
 
static void HRPWM_setMEPControlMode (uint32_t base, HRPWM_Channel channel, HRPWM_MEPCtrlMode mepCtrlMode)
 
static void HRPWM_setCounterCompareShadowLoadEvent (uint32_t base, HRPWM_Channel channel, HRPWM_LoadMode loadEvent)
 
static void HRPWM_setOutputSwapMode (uint32_t base, bool enableOutputSwap)
 
static void HRPWM_setChannelBOutputPath (uint32_t base, HRPWM_ChannelBOutput outputOnB)
 
static void HRPWM_enableAutoConversion (uint32_t base)
 
static void HRPWM_disableAutoConversion (uint32_t base)
 
static void HRPWM_enablePeriodControl (uint32_t base)
 
static void HRPWM_disablePeriodControl (uint32_t base)
 
static void HRPWM_enablePhaseShiftLoad (uint32_t base)
 
static void HRPWM_disablePhaseShiftLoad (uint32_t base)
 
static void HRPWM_setSyncPulseSource (uint32_t base, HRPWM_SyncPulseSource syncPulseSource)
 
static void HRPWM_setTranslatorRemainder (uint32_t base, uint16_t trremVal)
 
static void HRPWM_setCounterCompareValue (uint32_t base, HRPWM_CounterCompareModule compModule, uint32_t compCount)
 
static uint32_t HRPWM_getCounterCompareValue (uint32_t base, HRPWM_CounterCompareModule compModule)
 
static void HRPWM_setHiResCounterCompareValue (uint32_t base, HRPWM_CounterCompareModule compModule, uint16_t hrCompCount)
 
static uint16_t HRPWM_getHiResCounterCompareValueOnly (uint32_t base, HRPWM_CounterCompareModule compModule)
 
static void HRPWM_setHiResRisingEdgeDelay (uint32_t base, uint16_t hrRedCount)
 
static void HRPWM_setHiResFallingEdgeDelayOnly (uint32_t base, uint16_t hrFedCount)
 
static void HRPWM_setMEPStep (uint32_t base, uint16_t mepCount)
 
static void HRPWM_setDeadbandMEPEdgeSelect (uint32_t base, HRPWM_MEPDeadBandEdgeMode mepDBEdge)
 
static void HRPWM_setRisingEdgeDelayLoadMode (uint32_t base, HRPWM_LoadMode loadEvent)
 
static void HRPWM_setFallingEdgeDelayLoadMode (uint32_t base, HRPWM_LoadMode loadEvent)
 
static void EPWM_enableXCMPMode (uint32_t base)
 
static void EPWM_disableXCMPMode (uint32_t base)
 
static void EPWM_enableSplitXCMP (uint32_t base)
 
static void EPWM_disableSplitXCMP (uint32_t base)
 
static void EPWM_allocAXCMP (uint32_t base, EPWM_XCMP_ALLOC_CMPA alloctype)
 
static void EPWM_allocBXCMP (uint32_t base, EPWM_XCMP_ALLOC_CMPB alloctype)
 
static void EPWM_setXCMPRegValue (uint32_t base, EPWM_XCMPReg xcmpReg, uint16_t xcmpvalue)
 
static void EPWM_setXCMPActionQualifierAction (uint32_t base, uint32_t shadowset, EPWM_ActionQualifierOutputModule epwmOutput, EPWM_ActionQualifierOutput output, EPWM_XCMPActionQualifierOutputEvent event)
 
static void EPWM_enableXLoad (uint32_t base)
 
static void EPWM_disableXLoad (uint32_t base)
 
static void EPWM_setXCMPLoadMode (uint32_t base, EPWM_XCMPXloadCtlLoadMode mode)
 
static void EPWM_setXCMPShadowLevel (uint32_t base, EPWM_XCMP_XLOADCTL_SHDWLEVEL level)
 
static void EPWM_setXCMPShadowBufPtrLoadOnce (uint32_t base, EPWM_XCMP_XLOADCTL_SHDWBUFPTR ptr)
 
static void EPWM_setXCMPShadowRepeatBufxCount (uint32_t base, uint32_t bufferset, uint8_t count)
 
static void EPWM_enableDiodeEmulationMode (uint32_t base)
 
static void EPWM_disableDiodeEmulationMode (uint32_t base)
 
static void EPWM_setDiodeEmulationMode (uint32_t base, EPWM_DiodeEmulationMode mode)
 
static void EPWM_setDiodeEmulationReentryDelay (uint32_t base, uint8_t delay)
 
static void EPWM_configureDiodeEmulationTripSources (uint32_t base, EPWM_DiodeEmulationTripSource source, uint32_t tripLorH)
 
static void EPWM_selectDiodeEmulationPWMsignal (uint32_t base, uint32_t channel, EPWM_DiodeEmulationSignal signal)
 
static void EPWM_selectDiodeEmulationTripSignal (uint32_t base, uint32_t channel, uint32_t signal)
 
static void EPWM_nobypassDiodeEmulationLogic (uint32_t base)
 
static void EPWM_bypassDiodeEmulationLogic (uint32_t base)
 
static void EPWM_forceDiodeEmulationActive (uint32_t base)
 
static void EPWM_enableDiodeEmulationMonitorModeControl (uint32_t base)
 
static void EPWM_disableDiodeEmulationMonitorModeControl (uint32_t base)
 
static void EPWM_setDiodeEmulationMonitorModeStep (uint32_t base, uint32_t direction, uint8_t stepsize)
 
static void EPWM_setDiodeEmulationMonitorCounterThreshold (uint32_t base, uint16_t threshold)
 
void EPWM_setEmulationMode (uint32_t base, EPWM_EmulationMode emulationMode)
 
void EPWM_configureSignal (uint32_t base, const EPWM_SignalParams *signalParams)
 

Enumerations

enum  EPWM_EmulationMode { EPWM_EMULATION_STOP_AFTER_NEXT_TB = 0, EPWM_EMULATION_STOP_AFTER_FULL_CYCLE = 1, EPWM_EMULATION_FREE_RUN = 2 }
 
enum  EPWM_SyncCountMode { EPWM_COUNT_MODE_DOWN_AFTER_SYNC = 0, EPWM_COUNT_MODE_UP_AFTER_SYNC = 1 }
 
enum  EPWM_ClockDivider {
  EPWM_CLOCK_DIVIDER_1 = 0, EPWM_CLOCK_DIVIDER_2 = 1, EPWM_CLOCK_DIVIDER_4 = 2, EPWM_CLOCK_DIVIDER_8 = 3,
  EPWM_CLOCK_DIVIDER_16 = 4, EPWM_CLOCK_DIVIDER_32 = 5, EPWM_CLOCK_DIVIDER_64 = 6, EPWM_CLOCK_DIVIDER_128 = 7
}
 
enum  EPWM_HSClockDivider {
  EPWM_HSCLOCK_DIVIDER_1 = 0, EPWM_HSCLOCK_DIVIDER_2 = 1, EPWM_HSCLOCK_DIVIDER_4 = 2, EPWM_HSCLOCK_DIVIDER_6 = 3,
  EPWM_HSCLOCK_DIVIDER_8 = 4, EPWM_HSCLOCK_DIVIDER_10 = 5, EPWM_HSCLOCK_DIVIDER_12 = 6, EPWM_HSCLOCK_DIVIDER_14 = 7
}
 
enum  EPWM_SyncInPulseSource {
  EPWM_SYNC_IN_PULSE_SRC_DISABLE = 0x0, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0 = 0x1, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1 = 0x2, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2 = 0x3,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3 = 0x4, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4 = 0x5, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5 = 0x6, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6 = 0x7,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7 = 0x8, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8 = 0x9, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9 = 0xA, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10 = 0xB,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11 = 0xC, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12 = 0xD, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13 = 0xE, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14 = 0xF,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15 = 0x10, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16 = 0x11, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17 = 0x12, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18 = 0x13,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19 = 0x14, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20 = 0x15, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21 = 0x16, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22 = 0x17,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23 = 0x18, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24 = 0x19, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25 = 0x1A, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26 = 0x1B,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27 = 0x1C, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28 = 0x1D, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29 = 0x1E, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30 = 0x1F,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31 = 0x20, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP0 = 0x40, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP1 = 0x41, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP2 = 0x42,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP3 = 0x43, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP4 = 0x44, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP5 = 0x45, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP6 = 0x46,
  EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP7 = 0x47, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP8 = 0x48, EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP9 = 0x49, EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT4 = 0x50,
  EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT20 = 0x51, EPWM_SYNC_IN_PULSE_SRC_C2K_TIMESYNC_XBAR_PWM_OUT0 = 0x58, EPWM_SYNC_IN_PULSE_SRC_C2K_TIMESYNC_XBAR_PWM_OUT1 = 0x59, EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG0 = 0x60,
  EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG1 = 0x61, EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG2 = 0x62, EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG3 = 0x63, EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG0 = 0x64,
  EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG1 = 0x65, EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG2 = 0x66, EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG3 = 0x67, EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG0 = 0x68,
  EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG1 = 0x69, EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG2 = 0x6A, EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG3 = 0x6B, EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG0 = 0x6C,
  EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG1 = 0x6D, EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG2 = 0x6E, EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG3 = 0x6F
}
 
enum  EPWM_OneShotSyncOutTrigger { EPWM_OSHT_SYNC_OUT_TRIG_SYNC = 0x0, EPWM_OSHT_SYNC_OUT_TRIG_RELOAD = 0x1 }
 
enum  EPWM_PeriodLoadMode { EPWM_PERIOD_SHADOW_LOAD = 0, EPWM_PERIOD_DIRECT_LOAD = 1 }
 
enum  EPWM_TimeBaseCountMode { EPWM_COUNTER_MODE_UP = 0, EPWM_COUNTER_MODE_DOWN = 1, EPWM_COUNTER_MODE_UP_DOWN = 2, EPWM_COUNTER_MODE_STOP_FREEZE = 3 }
 
enum  EPWM_PeriodShadowLoadMode { EPWM_SHADOW_LOAD_MODE_COUNTER_ZERO = 0, EPWM_SHADOW_LOAD_MODE_COUNTER_SYNC = 1, EPWM_SHADOW_LOAD_MODE_SYNC = 2 }
 
enum  EPWM_CurrentLink {
  EPWM_LINK_WITH_EPWM_0 = 0, EPWM_LINK_WITH_EPWM_1 = 1, EPWM_LINK_WITH_EPWM_2 = 2, EPWM_LINK_WITH_EPWM_3 = 3,
  EPWM_LINK_WITH_EPWM_4 = 4, EPWM_LINK_WITH_EPWM_5 = 5, EPWM_LINK_WITH_EPWM_6 = 6, EPWM_LINK_WITH_EPWM_7 = 7,
  EPWM_LINK_WITH_EPWM_8 = 8, EPWM_LINK_WITH_EPWM_9 = 9, EPWM_LINK_WITH_EPWM_10 = 10, EPWM_LINK_WITH_EPWM_11 = 11,
  EPWM_LINK_WITH_EPWM_12 = 12, EPWM_LINK_WITH_EPWM_13 = 13, EPWM_LINK_WITH_EPWM_14 = 14, EPWM_LINK_WITH_EPWM_15 = 15,
  EPWM_LINK_WITH_EPWM_16 = 16, EPWM_LINK_WITH_EPWM_17 = 17, EPWM_LINK_WITH_EPWM_18 = 18, EPWM_LINK_WITH_EPWM_19 = 19,
  EPWM_LINK_WITH_EPWM_20 = 20, EPWM_LINK_WITH_EPWM_21 = 21, EPWM_LINK_WITH_EPWM_22 = 22, EPWM_LINK_WITH_EPWM_23 = 23,
  EPWM_LINK_WITH_EPWM_24 = 24, EPWM_LINK_WITH_EPWM_25 = 25, EPWM_LINK_WITH_EPWM_26 = 26, EPWM_LINK_WITH_EPWM_27 = 27,
  EPWM_LINK_WITH_EPWM_28 = 28, EPWM_LINK_WITH_EPWM_29 = 29, EPWM_LINK_WITH_EPWM_30 = 30, EPWM_LINK_WITH_EPWM_31 = 31
}
 
enum  EPWM_LinkComponent {
  EPWM_LINK_TBPRD = 0, EPWM_LINK_COMP_A = 5, EPWM_LINK_COMP_B = 10, EPWM_LINK_COMP_C = 16,
  EPWM_LINK_COMP_D = 21, EPWM_LINK_GLDCTL2 = 26, EPWM_LINK_DBRED = 1, EPWM_LINK_DBFED = 6,
  EPWM_LINK_XLOAD = 2
}
 
enum  EPWM_CounterCompareModule { EPWM_COUNTER_COMPARE_A = 0, EPWM_COUNTER_COMPARE_B = 4, EPWM_COUNTER_COMPARE_C = 10, EPWM_COUNTER_COMPARE_D = 14 }
 
enum  EPWM_CounterCompareLoadMode {
  EPWM_COMP_LOAD_ON_CNTR_ZERO = 0, EPWM_COMP_LOAD_ON_CNTR_PERIOD = 1, EPWM_COMP_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_COMP_LOAD_FREEZE = 3,
  EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO = 4, EPWM_COMP_LOAD_ON_SYNC_CNTR_PERIOD = 5, EPWM_COMP_LOAD_ON_SYNC_CNTR_ZERO_PERIOD = 6, EPWM_COMP_LOAD_ON_SYNC_ONLY = 8
}
 
enum  EPWM_ActionQualifierModule { EPWM_ACTION_QUALIFIER_A = 0, EPWM_ACTION_QUALIFIER_B = 2 }
 
enum  EPWM_ActionQualifierLoadMode {
  EPWM_AQ_LOAD_ON_CNTR_ZERO = 0, EPWM_AQ_LOAD_ON_CNTR_PERIOD = 1, EPWM_AQ_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_AQ_LOAD_FREEZE = 3,
  EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO = 4, EPWM_AQ_LOAD_ON_SYNC_CNTR_PERIOD = 5, EPWM_AQ_LOAD_ON_SYNC_CNTR_ZERO_PERIOD = 6, EPWM_AQ_LOAD_ON_SYNC_ONLY = 8
}
 
enum  EPWM_ActionQualifierTriggerSource {
  EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_1 = 0, EPWM_AQ_TRIGGER_EVENT_TRIG_DCA_2 = 1, EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_1 = 2, EPWM_AQ_TRIGGER_EVENT_TRIG_DCB_2 = 3,
  EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_1 = 4, EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_2 = 5, EPWM_AQ_TRIGGER_EVENT_TRIG_TZ_3 = 6, EPWM_AQ_TRIGGER_EVENT_TRIG_EPWM_SYNCIN = 7,
  EPWM_AQ_TRIGGER_EVENT_TRIG_DC_EVTFILT = 8
}
 
enum  EPWM_ActionQualifierOutputEvent {
  EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO = 0, EPWM_AQ_OUTPUT_ON_TIMEBASE_PERIOD = 2, EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPA = 4, EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPA = 6,
  EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPB = 8, EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPB = 10, EPWM_AQ_OUTPUT_ON_T1_COUNT_UP = 1, EPWM_AQ_OUTPUT_ON_T1_COUNT_DOWN = 3,
  EPWM_AQ_OUTPUT_ON_T2_COUNT_UP = 5, EPWM_AQ_OUTPUT_ON_T2_COUNT_DOWN = 7
}
 
enum  EPWM_ActionQualifierOutput { EPWM_AQ_OUTPUT_NO_CHANGE = 0, EPWM_AQ_OUTPUT_LOW = 1, EPWM_AQ_OUTPUT_HIGH = 2, EPWM_AQ_OUTPUT_TOGGLE = 3 }
 
enum  EPWM_ActionQualifierSWOutput { EPWM_AQ_SW_DISABLED = 0, EPWM_AQ_SW_OUTPUT_LOW = 1, EPWM_AQ_SW_OUTPUT_HIGH = 2 }
 
enum  EPWM_ActionQualifierEventAction {
  EPWM_AQ_OUTPUT_NO_CHANGE_ZERO = 0x0, EPWM_AQ_OUTPUT_LOW_ZERO = 0x1, EPWM_AQ_OUTPUT_HIGH_ZERO = 0x2, EPWM_AQ_OUTPUT_TOGGLE_ZERO = 0x3,
  EPWM_AQ_OUTPUT_NO_CHANGE_PERIOD = 0x0, EPWM_AQ_OUTPUT_LOW_PERIOD = 0x4, EPWM_AQ_OUTPUT_HIGH_PERIOD = 0x8, EPWM_AQ_OUTPUT_TOGGLE_PERIOD = 0xC,
  EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPA = 0x00, EPWM_AQ_OUTPUT_LOW_UP_CMPA = 0x10, EPWM_AQ_OUTPUT_HIGH_UP_CMPA = 0x20, EPWM_AQ_OUTPUT_TOGGLE_UP_CMPA = 0x30,
  EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPA = 0x00, EPWM_AQ_OUTPUT_LOW_DOWN_CMPA = 0x40, EPWM_AQ_OUTPUT_HIGH_DOWN_CMPA = 0x80, EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPA = 0xC0,
  EPWM_AQ_OUTPUT_NO_CHANGE_UP_CMPB = 0x000, EPWM_AQ_OUTPUT_LOW_UP_CMPB = 0x100, EPWM_AQ_OUTPUT_HIGH_UP_CMPB = 0x200, EPWM_AQ_OUTPUT_TOGGLE_UP_CMPB = 0x300,
  EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_CMPB = 0x000, EPWM_AQ_OUTPUT_LOW_DOWN_CMPB = 0x400, EPWM_AQ_OUTPUT_HIGH_DOWN_CMPB = 0x800, EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPB = 0xC00
}
 
enum  EPWM_AdditionalActionQualifierEventAction {
  EPWM_AQ_OUTPUT_NO_CHANGE_UP_T1 = 0x0, EPWM_AQ_OUTPUT_LOW_UP_T1 = 0x1, EPWM_AQ_OUTPUT_HIGH_UP_T1 = 0x2, EPWM_AQ_OUTPUT_TOGGLE_UP_T1 = 0x3,
  EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T1 = 0x0, EPWM_AQ_OUTPUT_LOW_DOWN_T1 = 0x4, EPWM_AQ_OUTPUT_HIGH_DOWN_T1 = 0x8, EPWM_AQ_OUTPUT_TOGGLE_DOWN_T1 = 0xC,
  EPWM_AQ_OUTPUT_NO_CHANGE_UP_T2 = 0x00, EPWM_AQ_OUTPUT_LOW_UP_T2 = 0x10, EPWM_AQ_OUTPUT_HIGH_UP_T2 = 0x20, EPWM_AQ_OUTPUT_TOGGLE_UP_T2 = 0x30,
  EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T2 = 0x00, EPWM_AQ_OUTPUT_LOW_DOWN_T2 = 0x40, EPWM_AQ_OUTPUT_HIGH_DOWN_T2 = 0x80, EPWM_AQ_OUTPUT_TOGGLE_DOWN_T2 = 0xC0
}
 
enum  EPWM_ActionQualifierOutputModule { EPWM_AQ_OUTPUT_A = 0, EPWM_AQ_OUTPUT_B = 4 }
 
enum  EPWM_ActionQualifierContForce { EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO = 0, EPWM_AQ_SW_SH_LOAD_ON_CNTR_PERIOD = 1, EPWM_AQ_SW_SH_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_AQ_SW_IMMEDIATE_LOAD = 3 }
 
enum  EPWM_DeadBandOutput { EPWM_DB_OUTPUT_A = 0, EPWM_DB_OUTPUT_B = 1 }
 
enum  EPWM_DeadBandDelayMode { EPWM_DB_RED = 1, EPWM_DB_FED = 0 }
 
enum  EPWM_DeadBandPolarity { EPWM_DB_POLARITY_ACTIVE_HIGH = 0, EPWM_DB_POLARITY_ACTIVE_LOW = 1 }
 
enum  EPWM_DeadBandControlLoadMode { EPWM_DB_LOAD_ON_CNTR_ZERO = 0, EPWM_DB_LOAD_ON_CNTR_PERIOD = 1, EPWM_DB_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_DB_LOAD_FREEZE = 3 }
 
enum  EPWM_RisingEdgeDelayLoadMode { EPWM_RED_LOAD_ON_CNTR_ZERO = 0, EPWM_RED_LOAD_ON_CNTR_PERIOD = 1, EPWM_RED_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_RED_LOAD_FREEZE = 3 }
 
enum  EPWM_FallingEdgeDelayLoadMode { EPWM_FED_LOAD_ON_CNTR_ZERO = 0, EPWM_FED_LOAD_ON_CNTR_PERIOD = 1, EPWM_FED_LOAD_ON_CNTR_ZERO_PERIOD = 2, EPWM_FED_LOAD_FREEZE = 3 }
 
enum  EPWM_DeadBandClockMode { EPWM_DB_COUNTER_CLOCK_FULL_CYCLE = 0, EPWM_DB_COUNTER_CLOCK_HALF_CYCLE = 1 }
 
enum  EPWM_TripZoneDigitalCompareOutput { EPWM_TZ_DC_OUTPUT_A1 = 0, EPWM_TZ_DC_OUTPUT_A2 = 3, EPWM_TZ_DC_OUTPUT_B1 = 6, EPWM_TZ_DC_OUTPUT_B2 = 9 }
 
enum  EPWM_TripZoneDigitalCompareOutputEvent {
  EPWM_TZ_EVENT_DC_DISABLED = 0, EPWM_TZ_EVENT_DCXH_LOW = 1, EPWM_TZ_EVENT_DCXH_HIGH = 2, EPWM_TZ_EVENT_DCXL_LOW = 3,
  EPWM_TZ_EVENT_DCXL_HIGH = 4, EPWM_TZ_EVENT_DCXL_HIGH_DCXH_LOW = 5
}
 
enum  EPWM_TripZoneEvent {
  EPWM_TZ_ACTION_EVENT_TZA = 0, EPWM_TZ_ACTION_EVENT_TZB = 2, EPWM_TZ_ACTION_EVENT_DCAEVT1 = 4, EPWM_TZ_ACTION_EVENT_DCAEVT2 = 6,
  EPWM_TZ_ACTION_EVENT_DCBEVT1 = 8, EPWM_TZ_ACTION_EVENT_DCBEVT2 = 10
}
 
enum  EPWM_TripZoneAction { EPWM_TZ_ACTION_HIGH_Z = 0, EPWM_TZ_ACTION_HIGH = 1, EPWM_TZ_ACTION_LOW = 2, EPWM_TZ_ACTION_DISABLE = 3 }
 
enum  EPWM_TripZoneAdvancedEvent { EPWM_TZ_ADV_ACTION_EVENT_TZB_D = 9, EPWM_TZ_ADV_ACTION_EVENT_TZB_U = 6, EPWM_TZ_ADV_ACTION_EVENT_TZA_D = 3, EPWM_TZ_ADV_ACTION_EVENT_TZA_U = 0 }
 
enum  EPWM_TripZoneAdvancedAction {
  EPWM_TZ_ADV_ACTION_HIGH_Z = 0, EPWM_TZ_ADV_ACTION_HIGH = 1, EPWM_TZ_ADV_ACTION_LOW = 2, EPWM_TZ_ADV_ACTION_TOGGLE = 3,
  EPWM_TZ_ADV_ACTION_DISABLE = 7
}
 
enum  EPWM_TripZoneAdvDigitalCompareEvent { EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_U = 0, EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_D = 3, EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_U = 6, EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_D = 9 }
 
enum  EPWM_CycleByCycleTripZoneClearMode { EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO = 0, EPWM_TZ_CBC_PULSE_CLR_CNTR_PERIOD = 1, EPWM_TZ_CBC_PULSE_CLR_CNTR_ZERO_PERIOD = 2 }
 
enum  EPWM_ADCStartOfConversionType { EPWM_SOC_A = 0, EPWM_SOC_B = 1 }
 
enum  EPWM_ADCStartOfConversionSource {
  EPWM_SOC_DCxEVT1 = 0, EPWM_SOC_TBCTR_ZERO = 1, EPWM_SOC_TBCTR_PERIOD = 2, EPWM_SOC_TBCTR_MIXED_EVENT = 3,
  EPWM_SOC_TBCTR_U_CMPA = 4, EPWM_SOC_TBCTR_U_CMPC = 8, EPWM_SOC_TBCTR_D_CMPA = 5, EPWM_SOC_TBCTR_D_CMPC = 10,
  EPWM_SOC_TBCTR_U_CMPB = 6, EPWM_SOC_TBCTR_U_CMPD = 12, EPWM_SOC_TBCTR_D_CMPB = 7, EPWM_SOC_TBCTR_D_CMPD = 14
}
 
enum  EPWM_DigitalCompareType { EPWM_DC_TYPE_DCAH = 0, EPWM_DC_TYPE_DCAL = 1, EPWM_DC_TYPE_DCBH = 2, EPWM_DC_TYPE_DCBL = 3 }
 
enum  EPWM_DigitalCompareTripInput {
  EPWM_DC_TRIP_TRIPIN1 = 0, EPWM_DC_TRIP_TRIPIN2 = 1, EPWM_DC_TRIP_TRIPIN3 = 2, EPWM_DC_TRIP_TRIPIN4 = 3,
  EPWM_DC_TRIP_TRIPIN5 = 4, EPWM_DC_TRIP_TRIPIN6 = 5, EPWM_DC_TRIP_TRIPIN7 = 6, EPWM_DC_TRIP_TRIPIN8 = 7,
  EPWM_DC_TRIP_TRIPIN9 = 8, EPWM_DC_TRIP_TRIPIN10 = 9, EPWM_DC_TRIP_TRIPIN11 = 10, EPWM_DC_TRIP_TRIPIN12 = 11,
  EPWM_DC_TRIP_TRIPIN13 = 12, EPWM_DC_TRIP_TRIPIN14 = 13, EPWM_DC_TRIP_TRIPIN15 = 14, EPWM_DC_TRIP_COMBINATION = 15
}
 
enum  EPWM_DigitalCompareBlankingPulse { EPWM_DC_WINDOW_START_TBCTR_PERIOD = 0, EPWM_DC_WINDOW_START_TBCTR_ZERO = 1, EPWM_DC_WINDOW_START_TBCTR_ZERO_PERIOD = 2, EPWM_DC_WINDOW_START_TBCTR_BLANK_PULSE_MIX = 3 }
 
enum  EPWM_DigitalCompareFilterInput { EPWM_DC_WINDOW_SOURCE_DCAEVT1 = 0, EPWM_DC_WINDOW_SOURCE_DCAEVT2 = 1, EPWM_DC_WINDOW_SOURCE_DCBEVT1 = 2, EPWM_DC_WINDOW_SOURCE_DCBEVT2 = 3 }
 
enum  EPWM_DigitalCompareModule { EPWM_DC_MODULE_A = 0, EPWM_DC_MODULE_B = 1 }
 
enum  EPWM_DigitalCompareEvent { EPWM_DC_EVENT_1 = 0, EPWM_DC_EVENT_2 = 1 }
 
enum  EPWM_DigitalCompareEventSource { EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL = 0, EPWM_DC_EVENT_SOURCE_FILT_SIGNAL = 1 }
 
enum  EPWM_DigitalCompareSyncMode { EPWM_DC_EVENT_INPUT_SYNCED = 0, EPWM_DC_EVENT_INPUT_NOT_SYNCED = 1 }
 
enum  EPWM_DigitalCompareCBCLatchMode { EPWM_DC_CBC_LATCH_DISABLED = 0x0, EPWM_DC_CBC_LATCH_ENABLED = 0x1 }
 
enum  EPWM_DigitalCompareCBCLatchClearEvent { EPWM_DC_CBC_LATCH_CLR_CNTR_ZERO = 0x0, EPWM_DC_CBC_LATCH_CLR_ON_CNTR_PERIOD = 0x1, EPWM_DC_CBC_LATCH_CLR_ON_CNTR_ZERO_PERIOD = 0x2 }
 
enum  EPWM_GlobalLoadTrigger {
  EPWM_GL_LOAD_PULSE_CNTR_ZERO = 0x0, EPWM_GL_LOAD_PULSE_CNTR_PERIOD = 0x1, EPWM_GL_LOAD_PULSE_CNTR_ZERO_PERIOD = 0x2, EPWM_GL_LOAD_PULSE_SYNC = 0x3,
  EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_ZERO = 0x4, EPWM_GL_LOAD_PULSE_SYNC_OR_CNTR_PERIOD = 0x5, EPWM_GL_LOAD_PULSE_SYNC_CNTR_ZERO_PERIOD = 0x6, EPWM_GL_LOAD_PULSE_CNTR_CMPC_U = 0x8,
  EPWM_GL_LOAD_PULSE_CNTR_CMPC_D = 0x9, EPWM_GL_LOAD_PULSE_CNTR_CMPD_U = 0xA, EPWM_GL_LOAD_PULSE_CNTR_CMPD_D = 0xB, EPWM_GL_LOAD_PULSE_GLOBAL_FORCE = 0xF
}
 
enum  EPWM_ValleyTriggerSource {
  EPWM_VALLEY_TRIGGER_EVENT_SOFTWARE = 0U, EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO = 1U, EPWM_VALLEY_TRIGGER_EVENT_CNTR_PERIOD = 2U, EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO_PERIOD = 3U,
  EPWM_VALLEY_TRIGGER_EVENT_DCAEVT1 = 4U, EPWM_VALLEY_TRIGGER_EVENT_DCAEVT2 = 5U, EPWM_VALLEY_TRIGGER_EVENT_DCBEVT1 = 6U, EPWM_VALLEY_TRIGGER_EVENT_DCBEVT2 = 7U
}
 
enum  EPWM_ValleyCounterEdge { EPWM_VALLEY_COUNT_START_EDGE = 0, EPWM_VALLEY_COUNT_STOP_EDGE = 1 }
 
enum  EPWM_ValleyDelayMode {
  EPWM_VALLEY_DELAY_MODE_SW_DELAY = 0U, EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SW_DELAY = 1U, EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_1_SW_DELAY = 2U, EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_2_SW_DELAY = 3U,
  EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_4_SW_DELAY = 4U
}
 
enum  EPWM_DigitalCompareEdgeFilterMode { EPWM_DC_EDGEFILT_MODE_RISING = 0, EPWM_DC_EDGEFILT_MODE_FALLING = 1, EPWM_DC_EDGEFILT_MODE_BOTH = 2 }
 
enum  EPWM_DigitalCompareEdgeFilterEdgeCount {
  EPWM_DC_EDGEFILT_EDGECNT_0 = 0, EPWM_DC_EDGEFILT_EDGECNT_1 = 1, EPWM_DC_EDGEFILT_EDGECNT_2 = 2, EPWM_DC_EDGEFILT_EDGECNT_3 = 3,
  EPWM_DC_EDGEFILT_EDGECNT_4 = 4, EPWM_DC_EDGEFILT_EDGECNT_5 = 5, EPWM_DC_EDGEFILT_EDGECNT_6 = 6, EPWM_DC_EDGEFILT_EDGECNT_7 = 7
}
 
enum  EPWM_LockRegisterGroup {
  EPWM_REGISTER_GROUP_HR = 0x1, EPWM_REGISTER_GROUP_GLOBAL_LOAD = 0x2, EPWM_REGISTER_GROUP_TRIP_ZONE = 0x4, EPWM_REGISTER_GROUP_TRIP_ZONE_CLEAR = 0x8,
  EPWM_REGISTER_GROUP_DIGITAL_COMPARE = 0x10
}
 
enum  HRPWM_Channel { HRPWM_CHANNEL_A = 0, HRPWM_CHANNEL_B = 8 }
 
enum  HRPWM_MEPEdgeMode { HRPWM_MEP_CTRL_DISABLE = 0, HRPWM_MEP_CTRL_RISING_EDGE = 1, HRPWM_MEP_CTRL_FALLING_EDGE = 2, HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE = 3 }
 
enum  HRPWM_MEPCtrlMode { HRPWM_MEP_DUTY_PERIOD_CTRL = 0, HRPWM_MEP_PHASE_CTRL = 1 }
 
enum  HRPWM_LoadMode { HRPWM_LOAD_ON_CNTR_ZERO = 0, HRPWM_LOAD_ON_CNTR_PERIOD = 1, HRPWM_LOAD_ON_CNTR_ZERO_PERIOD = 2, HRPWM_LOAD_ON_CMPB_EQ = 3 }
 
enum  HRPWM_ChannelBOutput { HRPWM_OUTPUT_ON_B_NORMAL = 0, HRPWM_OUTPUT_ON_B_INV_A = 1 }
 
enum  HRPWM_SyncPulseSource {
  HRPWM_PWMSYNC_SOURCE_PERIOD = 0, HRPWM_PWMSYNC_SOURCE_ZERO = 1, HRPWM_PWMSYNC_SOURCE_COMPC_UP = 4, HRPWM_PWMSYNC_SOURCE_COMPC_DOWN = 5,
  HRPWM_PWMSYNC_SOURCE_COMPD_UP = 6, HRPWM_PWMSYNC_SOURCE_COMPD_DOWN = 7
}
 
enum  HRPWM_CounterCompareModule { HRPWM_COUNTER_COMPARE_A = 0, HRPWM_COUNTER_COMPARE_B = 4 }
 
enum  HRPWM_MEPDeadBandEdgeMode { HRPWM_DB_MEP_CTRL_DISABLE = 0, HRPWM_DB_MEP_CTRL_RED = 1, HRPWM_DB_MEP_CTRL_FED = 2, HRPWM_DB_MEP_CTRL_RED_FED = 3 }
 
enum  EPWM_XCMPReg {
  EPWM_XCMP1_ACTIVE = 0, EPWM_XCMP2_ACTIVE = 4, EPWM_XCMP3_ACTIVE = 8, EPWM_XCMP4_ACTIVE = 12,
  EPWM_XCMP5_ACTIVE = 16, EPWM_XCMP6_ACTIVE = 20, EPWM_XCMP7_ACTIVE = 24, EPWM_XCMP8_ACTIVE = 28,
  EPWM_XTBPRD_ACTIVE = 32, EPWM_XMINMAX_ACTIVE = 68, EPWM_XCMP1_SHADOW1 = 128, EPWM_XCMP2_SHADOW1 = 132,
  EPWM_XCMP3_SHADOW1 = 136, EPWM_XCMP4_SHADOW1 = 140, EPWM_XCMP5_SHADOW1 = 144, EPWM_XCMP6_SHADOW1 = 148,
  EPWM_XCMP7_SHADOW1 = 152, EPWM_XCMP8_SHADOW1 = 156, EPWM_XTBPRD_SHADOW1 = 160, EPWM_XMINMAX_SHADOW1 = 196,
  EPWM_XCMP1_SHADOW2 = 256, EPWM_XCMP2_SHADOW2 = 260, EPWM_XCMP3_SHADOW2 = 264, EPWM_XCMP4_SHADOW2 = 268,
  EPWM_XCMP5_SHADOW2 = 272, EPWM_XCMP6_SHADOW2 = 276, EPWM_XCMP7_SHADOW2 = 280, EPWM_XCMP8_SHADOW2 = 284,
  EPWM_XTBPRD_SHADOW2 = 288, EPWM_XMINMAX_SHADOW2 = 324, EPWM_XCMP1_SHADOW3 = 384, EPWM_XCMP2_SHADOW3 = 388,
  EPWM_XCMP3_SHADOW3 = 392, EPWM_XCMP4_SHADOW3 = 396, EPWM_XCMP5_SHADOW3 = 400, EPWM_XCMP6_SHADOW3 = 404,
  EPWM_XCMP7_SHADOW3 = 408, EPWM_XCMP8_SHADOW3 = 412, EPWM_XTBPRD_SHADOW3 = 416, EPWM_XMINMAX_SHADOW3 = 452
}
 
enum  EPWM_XCMPActionQualifierOutputEvent {
  EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP1 = 0, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP2 = 2, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP3 = 4, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP4 = 6,
  EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP5 = 8, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP6 = 10, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP7 = 12, EPWM_AQ_OUTPUT_ON_TIMEBASE_XCMP8 = 14
}
 Values that can be passed to EPWM_setXCMPActionQualifierAction() as the event parameter. More...
 
enum  EPWM_XCMP_ALLOC_CMPA {
  EPWM_XCMP_NONE_CMPA = 0, EPWM_XCMP_1_CMPA = 1, EPWM_XCMP_2_CMPA = 2, EPWM_XCMP_3_CMPA = 3,
  EPWM_XCMP_4_CMPA = 4, EPWM_XCMP_5_CMPA = 5, EPWM_XCMP_6_CMPA = 6, EPWM_XCMP_7_CMPA = 7,
  EPWM_XCMP_8_CMPA = 8
}
 Values that can be passed to EPWM_allocAXCMP() as the alloctype parameter. More...
 
enum  EPWM_XCMP_ALLOC_CMPB { EPWM_XCMP_1_CMPB = 5, EPWM_XCMP_2_CMPB = 6, EPWM_XCMP_3_CMPB = 7, EPWM_XCMP_4_CMPB = 8 }
 Values that can be passed to EPWM_allocBXCMP() as the alloctype parameter. More...
 
enum  EPWM_XCMPXloadCtlLoadMode { EPWM_XCMP_XLOADCTL_LOADMODE_LOADONCE = 0, EPWM_XCMP_XLOADCTL_LOADMODE_LOADMULTIPLE = 1 }
 
enum  EPWM_XCMP_XLOADCTL_SHDWLEVEL { EPWM_XCMP_XLOADCTL_SHDWLEVEL_0 = 0, EPWM_XCMP_XLOADCTL_SHDWLEVEL_1 = 1, EPWM_XCMP_XLOADCTL_SHDWLEVEL_2 = 2, EPWM_XCMP_XLOADCTL_SHDWLEVEL_3 = 3 }
 
enum  EPWM_XCMP_XLOADCTL_SHDWBUFPTR { EPWM_XCMP_XLOADCTL_SHDWBUFPTR_NULL = 0, EPWM_XCMP_XLOADCTL_SHDWBUFPTR_ONE = 1, EPWM_XCMP_XLOADCTL_SHDWBUFPTR_TWO = 2, EPWM_XCMP_XLOADCTL_SHDWBUFPTR_THREE =3 }
 
enum  EPWM_DiodeEmulationMode { EPWM_DIODE_EMULATION_CBC = 0, EPWM_DIODE_EMULATION_OST = 1 }
 
enum  EPWM_DiodeEmulationTripSource {
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT0 = 0x01, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT1 = 0x02, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT2 = 0x03, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT3 = 0x04,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT4 = 0x05, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT5 = 0x06, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT6 = 0x07, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT7 = 0x08,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT8 = 0x09, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT9 = 0x0A, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT10 = 0x0B, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT11 = 0x0C,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT12 = 0x0D, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT13 = 0x0E, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT14 = 0x0F, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT15 = 0x10,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT16 = 0x11, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT17 = 0x12, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT18 = 0x13, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT19 = 0x14,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT20 = 0x15, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT21 = 0x16, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT22 = 0x17, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT23 = 0x18,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT24 = 0x19, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT25 = 0x1A, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT26 = 0x1B, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT27 = 0x1C,
  EPWM_DE_TRIP_SRC_INPUTXBAR_OUT28 = 0x1D, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT29 = 0x1E, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT30 = 0x1F, EPWM_DE_TRIP_SRC_INPUTXBAR_OUT31 = 0x20,
  EPWM_DE_TRIP_SRC_CMPSSA0 = 0x21, EPWM_DE_TRIP_SRC_CMPSSA1 = 0x22, EPWM_DE_TRIP_SRC_CMPSSA2 = 0x23, EPWM_DE_TRIP_SRC_CMPSSA3 = 0x24,
  EPWM_DE_TRIP_SRC_CMPSSA4 = 0x25, EPWM_DE_TRIP_SRC_CMPSSA5 = 0x26, EPWM_DE_TRIP_SRC_CMPSSA6 = 0x27, EPWM_DE_TRIP_SRC_CMPSSA7 = 0x28,
  EPWM_DE_TRIP_SRC_CMPSSA8 = 0x29, EPWM_DE_TRIP_SRC_CMPSSA9 = 0x2A, EPWM_DE_TRIP_SRC_CMPSSB0 = 0x31, EPWM_DE_TRIP_SRC_CMPSSB1 = 0x32,
  EPWM_DE_TRIP_SRC_CMPSSB2 = 0x33, EPWM_DE_TRIP_SRC_CMPSSB3 = 0x34, EPWM_DE_TRIP_SRC_CMPSSB4 = 0x35, EPWM_DE_TRIP_SRC_CMPSSB5 = 0x36,
  EPWM_DE_TRIP_SRC_CMPSSB6 = 0x37, EPWM_DE_TRIP_SRC_CMPSSB7 = 0x38, EPWM_DE_TRIP_SRC_CMPSSB8 = 0x39, EPWM_DE_TRIP_SRC_CMPSSB9 = 0x3A
}
 
enum  EPWM_DiodeEmulationSignal { EPWM_DE_SYNC_TRIPHorL = 0x00, EPWM_DE_SYNC_INV_TRIPHorL = 0x01, EPWM_DE_LOW = 0x10, EPWM_DE_HIGH = 0x11 }
 

Macros

#define EPWM_SYNC_OUT_SOURCE_M
 
#define EPWM_SYNC_OUT_PULSE_ON_SOFTWARE   CSL_EPWM_EPWMSYNCOUTEN_SWEN_MASK
 Software force generated EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO   CSL_EPWM_EPWMSYNCOUTEN_ZEROEN_MASK
 Counter zero event generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B   CSL_EPWM_EPWMSYNCOUTEN_CMPBEN_MASK
 Counter equal to CMPB event generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C   CSL_EPWM_EPWMSYNCOUTEN_CMPCEN_MASK
 Counter equal to CMPC event generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D   CSL_EPWM_EPWMSYNCOUTEN_CMPDEN_MASK
 Counter equal to CMPD event generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC   CSL_EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK
 DCA Event 1 Sync signal generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC   CSL_EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK
 DCB Event 1 Sync signal generates EPWM sync-out pulse. More...
 
#define EPWM_SYNC_OUT_PULSE_ON_ALL   EPWM_SYNC_OUT_SOURCE_M
 Enable all the above sources. More...
 
#define EPWM_TIME_BASE_STATUS_COUNT_DOWN   (0U)
 Time base counter is counting down. More...
 
#define EPWM_TIME_BASE_STATUS_COUNT_UP   (1U)
 Time base counter is counting up. More...
 
#define EPWM_DB_INPUT_EPWMA   (0U)
 Input signal is ePWMA. More...
 
#define EPWM_DB_INPUT_EPWMB   (1U)
 Input signal is ePWMB. More...
 
#define EPWM_DB_INPUT_DB_RED   (2U)
 Input signal is the output of Rising Edge delay. More...
 
#define EPWM_TZ_SIGNAL_CBC1   (0x1U)
 TZ1 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_CBC2   (0x2U)
 TZ2 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_CBC3   (0x4U)
 TZ3 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_CBC4   (0x8U)
 TZ4 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_CBC5   (0x10U)
 TZ5 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_CBC6   (0x20U)
 TZ6 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_DCAEVT2   (0x40U)
 DCAEVT2 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_DCBEVT2   (0x80U)
 DCBEVT2 Cycle By Cycle. More...
 
#define EPWM_TZ_SIGNAL_OSHT1   (0x100U)
 One-shot TZ1. More...
 
#define EPWM_TZ_SIGNAL_OSHT2   (0x200U)
 One-shot TZ2. More...
 
#define EPWM_TZ_SIGNAL_OSHT3   (0x400U)
 One-shot TZ3. More...
 
#define EPWM_TZ_SIGNAL_OSHT4   (0x800U)
 One-shot TZ4. More...
 
#define EPWM_TZ_SIGNAL_OSHT5   (0x1000U)
 One-shot TZ5. More...
 
#define EPWM_TZ_SIGNAL_OSHT6   (0x2000U)
 One-shot TZ6. More...
 
#define EPWM_TZ_SIGNAL_DCAEVT1   (0x4000U)
 One-shot DCAEVT1. More...
 
#define EPWM_TZ_SIGNAL_DCBEVT1   (0x8000U)
 One-shot DCBEVT1. More...
 
#define EPWM_TZ_SIGNAL_CAPEVT_OST   (0x10000U)
 One-shot Capture event. More...
 
#define EPWM_TZ_SIGNAL_CAPEVT_CBC   (0x1000000U)
 Cycle by cycle capture event. More...
 
#define EPWM_TZ_INTERRUPT_CBC   (0x2U)
 Trip Zones Cycle By Cycle interrupt. More...
 
#define EPWM_TZ_INTERRUPT_OST   (0x4U)
 Trip Zones One Shot interrupt. More...
 
#define EPWM_TZ_INTERRUPT_DCAEVT1   (0x8U)
 Digital Compare A Event 1 interrupt. More...
 
#define EPWM_TZ_INTERRUPT_DCAEVT2   (0x10U)
 Digital Compare A Event 2 interrupt. More...
 
#define EPWM_TZ_INTERRUPT_DCBEVT1   (0x20U)
 Digital Compare B Event 1 interrupt. More...
 
#define EPWM_TZ_INTERRUPT_DCBEVT2   (0x40U)
 Digital Compare B Event 2 interrupt. More...
 
#define EPWM_TZ_INTERRUPT_CAPEVT   (0x80U)
 Capture Event interrupt. More...
 
#define EPWM_TZ_FLAG_CBC   (0x2U)
 Trip Zones Cycle By Cycle flag. More...
 
#define EPWM_TZ_FLAG_OST   (0x4U)
 Trip Zones One Shot flag. More...
 
#define EPWM_TZ_FLAG_DCAEVT1   (0x8U)
 Digital Compare A Event 1 flag. More...
 
#define EPWM_TZ_FLAG_DCAEVT2   (0x10U)
 Digital Compare A Event 2 flag. More...
 
#define EPWM_TZ_FLAG_DCBEVT1   (0x20U)
 Digital Compare B Event 1 flag. More...
 
#define EPWM_TZ_FLAG_DCBEVT2   (0x40U)
 Digital Compare B Event 2 flag. More...
 
#define EPWM_TZ_FLAG_CAPEVT   (0x80U)
 Capture Event flag. More...
 
#define EPWM_TZ_INTERRUPT   (0x1U)
 Trip Zone interrupt. More...
 
#define EPWM_TZ_CBC_FLAG_1   (0x1U)
 CBC flag 1. More...
 
#define EPWM_TZ_CBC_FLAG_2   (0x2U)
 CBC flag 2. More...
 
#define EPWM_TZ_CBC_FLAG_3   (0x4U)
 CBC flag 3. More...
 
#define EPWM_TZ_CBC_FLAG_4   (0x8U)
 CBC flag 4. More...
 
#define EPWM_TZ_CBC_FLAG_5   (0x10U)
 CBC flag 5. More...
 
#define EPWM_TZ_CBC_FLAG_6   (0x20U)
 CBC flag 6. More...
 
#define EPWM_TZ_CBC_FLAG_DCAEVT2   (0x40U)
 CBC flag Digital compare event A2. More...
 
#define EPWM_TZ_CBC_FLAG_DCBEVT2   (0x80U)
 CBC flag Digital compare event B2. More...
 
#define EPWM_TZ_CBC_FLAG_CAPEVT   (0x100U)
 CBC flag Capture event. More...
 
#define EPWM_TZ_OST_FLAG_OST1   (0x1U)
 OST flag OST1. More...
 
#define EPWM_TZ_OST_FLAG_OST2   (0x2U)
 OST flag OST2. More...
 
#define EPWM_TZ_OST_FLAG_OST3   (0x4U)
 OST flag OST3. More...
 
#define EPWM_TZ_OST_FLAG_OST4   (0x8U)
 OST flag OST4. More...
 
#define EPWM_TZ_OST_FLAG_OST5   (0x10U)
 OST flag OST5. More...
 
#define EPWM_TZ_OST_FLAG_OST6   (0x20U)
 OST flag OST6. More...
 
#define EPWM_TZ_OST_FLAG_DCAEVT1   (0x40U)
 OST flag Digital compare event A1. More...
 
#define EPWM_TZ_OST_FLAG_DCBEVT1   (0x80U)
 OST flag Digital compare event B1. More...
 
#define EPWM_TZ_OST_FLAG_CAPEVT   (0x100U)
 OST flag Capture Event. More...
 
#define EPWM_TZ_FORCE_EVENT_CBC   (0x2U)
 Force Cycle By Cycle trip event. More...
 
#define EPWM_TZ_FORCE_EVENT_OST   (0x4U)
 Force a One-Shot Trip Event. More...
 
#define EPWM_TZ_FORCE_EVENT_DCAEVT1   (0x8U)
 Force Digital Compare Output A Event 1. More...
 
#define EPWM_TZ_FORCE_EVENT_DCAEVT2   (0x10U)
 Force Digital Compare Output A Event 2. More...
 
#define EPWM_TZ_FORCE_EVENT_DCBEVT1   (0x20U)
 Force Digital Compare Output B Event 1. More...
 
#define EPWM_TZ_FORCE_EVENT_DCBEVT2   (0x40U)
 Force Digital Compare Output B Event 2. More...
 
#define EPWM_TZ_FORCE_EVENT_CAPEVT   (0x80U)
 Force Capture event. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_OST   (0x1)
 One shot. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_CBC   (0x2)
 Cycle by cycle. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ1   (0x4)
 Trip Zone 1. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ2   (0x8)
 Trip Zone 2. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ3   (0x10)
 Trip Zone 3. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ4   (0x20)
 Trip Zone 4. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ5   (0x40)
 Trip Zone 5. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_TZ6   (0x80)
 Trip Zone 6. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_DCAEVT1   (0x100)
 Digital capture A Event 1. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_DCAEVT2   (0x200)
 Digital capture A Event 2. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_DCBEVT1   (0x400)
 Digital capture B Event 1. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_DCBEVT2   (0x800)
 Digtial capture B Event 2. More...
 
#define EPWM_TZ_SELECT_TRIPOUT_CAPEVT   (0x1000)
 Capture Event. More...
 
#define EPWM_INT_TBCTR_ZERO   (1U)
 Time-base counter equal to zero. More...
 
#define EPWM_INT_TBCTR_PERIOD   (2U)
 Time-base counter equal to period. More...
 
#define EPWM_INT_TBCTR_ETINTMIX   (3U)
 Time-base counter based on mix events. More...
 
#define EPWM_INT_TBCTR_U_CMPA   (4U)
 time-base counter equal to CMPA when the timer is incrementing More...
 
#define EPWM_INT_TBCTR_U_CMPC   (8U)
 time-base counter equal to CMPC when the timer is incrementing More...
 
#define EPWM_INT_TBCTR_D_CMPA   (5U)
 time-base counter equal to CMPA when the timer is decrementing More...
 
#define EPWM_INT_TBCTR_D_CMPC   (10U)
 time-base counter equal to CMPC when the timer is decrementing More...
 
#define EPWM_INT_TBCTR_U_CMPB   (6U)
 time-base counter equal to CMPB when the timer is incrementing More...
 
#define EPWM_INT_TBCTR_U_CMPD   (12U)
 time-base counter equal to CMPD when the timer is incrementing More...
 
#define EPWM_INT_TBCTR_D_CMPB   (7U)
 time-base counter equal to CMPB when the timer is decrementing More...
 
#define EPWM_INT_TBCTR_D_CMPD   (14U)
 time-base counter equal to CMPD when the timer is decrementing More...
 
#define EPWM_INT_MIX_TBCTR_ZERO   (0x1)
 Time-base counter equal to zero. More...
 
#define EPWM_INT_MIX_TBCTR_PERIOD   (0x2)
 Time-base counter equal to period. More...
 
#define EPWM_INT_MIX_TBCTR_U_CMPA   (0x4)
 time-base counter equal to CMPA when the timer is incrementing More...
 
#define EPWM_INT_MIX_TBCTR_D_CMPA   (0x8)
 time-base counter equal to CMPA when the timer is decrementing More...
 
#define EPWM_INT_MIX_TBCTR_U_CMPB   (0x10)
 time-base counter equal to CMPB when the timer is incrementing More...
 
#define EPWM_INT_MIX_TBCTR_D_CMPB   (0x20)
 time-base counter equal to CMPB when the timer is decrementing More...
 
#define EPWM_INT_MIX_TBCTR_U_CMPC   (0x40)
 time-base counter equal to CMPC when the timer is incrementing More...
 
#define EPWM_INT_MIX_TBCTR_D_CMPC   (0x80)
 time-base counter equal to CMPC when the timer is decrementing More...
 
#define EPWM_INT_MIX_TBCTR_U_CMPD   (0x100)
 time-base counter equal to CMPD when the timer is incrementing More...
 
#define EPWM_INT_MIX_TBCTR_D_CMPD   (0x200)
 time-base counter equal to CMPD when the timer is decrementing More...
 
#define EPWM_INT_MIX_DCAEVT1   (0x400)
 DCAEVT1 interrupt. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN1   (0x1U)
 Combinational Trip 1 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN2   (0x2U)
 Combinational Trip 2 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN3   (0x4U)
 Combinational Trip 3 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN4   (0x8U)
 Combinational Trip 4 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN5   (0x10U)
 Combinational Trip 5 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN6   (0x20U)
 Combinational Trip 6 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN7   (0x40U)
 Combinational Trip 7 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN8   (0x80U)
 Combinational Trip 8 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN9   (0x100U)
 Combinational Trip 9 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN10   (0x200U)
 Combinational Trip 10 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN11   (0x400U)
 Combinational Trip 11 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN12   (0x800U)
 Combinational Trip 12 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN13   (0x1000U)
 Combinational Trip 13 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN14   (0x2000U)
 Combinational Trip 14 input. More...
 
#define EPWM_DC_COMBINATIONAL_TRIPIN15   (0x4000U)
 Combinational Trip 15 input. More...
 
#define EPWM_DC_TBCTR_ZERO   (0x1)
 Time-base counter equal to zero. More...
 
#define EPWM_DC_TBCTR_PERIOD   (0x2)
 Time-base counter equal to period. More...
 
#define EPWM_DC_TBCTR_U_CMPA   (0x4)
 time-base counter equal to CMPA when the timer is incrementing More...
 
#define EPWM_DC_TBCTR_D_CMPA   (0x8)
 time-base counter equal to CMPA when the timer is decrementing More...
 
#define EPWM_DC_TBCTR_U_CMPB   (0x10)
 time-base counter equal to CMPB when the timer is incrementing More...
 
#define EPWM_DC_TBCTR_D_CMPB   (0x20)
 time-base counter equal to CMPB when the timer is decrementing More...
 
#define EPWM_DC_TBCTR_U_CMPC   (0x40)
 time-base counter equal to CMPC when the timer is incrementing More...
 
#define EPWM_DC_TBCTR_D_CMPC   (0x80)
 time-base counter equal to CMPC when the timer is decrementing More...
 
#define EPWM_DC_TBCTR_U_CMPD   (0x100)
 time-base counter equal to CMPD when the timer is incrementing More...
 
#define EPWM_DC_TBCTR_D_CMPD   (0x200)
 time-base counter equal to CMPD when the timer is decrementing More...
 
#define EPWM_GL_REGISTER_TBPRD_TBPRDHR   (0x1U)
 Global load TBPRD : TBPRDHR. More...
 
#define EPWM_GL_REGISTER_CMPA_CMPAHR   (0x2U)
 Global load CMPA : CMPAHR. More...
 
#define EPWM_GL_REGISTER_CMPB_CMPBHR   (0x4U)
 Global load CMPB : CMPBHR. More...
 
#define EPWM_GL_REGISTER_CMPC   (0x8U)
 Global load CMPC. More...
 
#define EPWM_GL_REGISTER_CMPD   (0x10U)
 Global load CMPD. More...
 
#define EPWM_GL_REGISTER_DBRED_DBREDHR   (0x20U)
 Global load DBRED : DBREDHR. More...
 
#define EPWM_GL_REGISTER_DBFED_DBFEDHR   (0x40U)
 Global load DBFED : DBFEDHR. More...
 
#define EPWM_GL_REGISTER_DBCTL   (0x80U)
 Global load DBCTL. More...
 
#define EPWM_GL_REGISTER_AQCTLA_AQCTLA2   (0x100U)
 Global load AQCTLA/A2. More...
 
#define EPWM_GL_REGISTER_AQCTLB_AQCTLB2   (0x200U)
 Global load AQCTLB/B2. More...
 
#define EPWM_GL_REGISTER_AQCSFRC   (0x400U)
 Global load AQCSFRC. More...
 
#define EPWM_MINDB_BLOCK_A   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_BLOCK_B   (0x1)
 
#define EPWM_MINDB_NO_INVERT   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_INVERT   (0x1)
 
#define EPWM_MINDB_INVERT_LOGICAL_AND   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_LOGICAL_OR   (0x1)
 
#define EPWM_MINDB_PWMB   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT1   (0x1)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 2. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT2   (0x2)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 3. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT3   (0x3)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 4. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT4   (0x4)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 5. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT5   (0x5)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 6. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT6   (0x6)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 7. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT7   (0x7)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 8. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT8   (0x8)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 9. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT9   (0x9)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 10. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT10   (0xA)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 11. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT11   (0xB)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 12. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT12   (0xC)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 13. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT13   (0xD)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 14. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT14   (0xE)
 Minimum Dead Band Reference Signal PWM Output Xbar Output 15. More...
 
#define EPWM_MINDB_PWM_OUTXBAR_OUT15   (0xF)
 
#define EPWM_MINDB_BLOCKING_SIGNAL_SAME   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_BLOCKING_SIGNAL_DIFF   (0x1)
 
#define EPWM_MINDB_ICSS_XBAR_OUT0   (0x0)
 Values that can be passed to. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT1   (0x1)
 ICSS Xbar Out 2. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT2   (0x2)
 ICSS Xbar Out 3. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT3   (0x3)
 ICSS Xbar Out 4. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT4   (0x4)
 ICSS Xbar Out 5. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT5   (0x5)
 ICSS Xbar Out 6. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT6   (0x6)
 ICSS Xbar Out 7. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT7   (0x7)
 ICSS Xbar Out 8. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT8   (0x8)
 ICSS Xbar Out 9. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT9   (0x9)
 ICSS Xbar Out 10. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT10   (0xA)
 ICSS Xbar Out 11. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT11   (0xB)
 ICSS Xbar Out 12. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT12   (0xC)
 ICSS Xbar Out 13. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT13   (0xD)
 ICSS Xbar Out 14. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT14   (0xE)
 ICSS Xbar Out 15. More...
 
#define EPWM_MINDB_ICSS_XBAR_OUT15   (0xF)
 
#define EPWM_XCMP_ACTIVE   (0x0)
 < XCMP set = Active More...
 
#define EPWM_XCMP_SHADOW1   (0x1)
 XCMP set = Shadow 2. More...
 
#define EPWM_XCMP_SHADOW2   (0x2)
 XCMP set = Shadow 3. More...
 
#define EPWM_XCMP_SHADOW3   (0x3)
 
#define EPWM_DE_CHANNEL_A   (0x0)
 < Diode emulation channel A More...
 
#define EPWM_DE_CHANNEL_B   (0x1)
 
#define EPWM_DE_COUNT_UP   (0x0)
 Values that can be passed to EPWM_setDiodeEmulationMonitorModeStep() More...
 
#define EPWM_DE_COUNT_DOWN   (0x1)
 
#define EPWM_DE_TRIPL   (0x1)
 Values that can be passed to EPWM_configureDiodeEmulationTripSources() More...
 
#define EPWM_DE_TRIPH   (0x0)
 
#define EPWM_DCxCTL_STEP   (CSL_EPWM_DCBCTL - CSL_EPWM_DCACTL)
 Defines to be used by the driver. More...
 
#define EPWM_DCxxTRIPSEL   (CSL_EPWM_DCALTRIPSEL - CSL_EPWM_DCAHTRIPSEL)
 
#define EPWM_XREGSHDWxSTS_STEP   (CSL_EPWM_XREGSHDW2STS-CSL_EPWM_XREGSHDW1STS)
 
#define EPWM_XCMPx_ACTIVE_STEP   (CSL_EPWM_XCMP2_ACTIVE-CSL_EPWM_XCMP1_ACTIVE)
 
#define EPWM_XCMPx_STEP   (CSL_EPWM_XCMP1_SHDW2-CSL_EPWM_XCMP1_SHDW1)
 
#define EPWM_XCMPx_SHDWx_STEP   (CSL_EPWM_XCMP2_SHDW1-CSL_EPWM_XCMP1_SHDW1)
 
#define EPWM_LOCK_KEY   (0xA5A50000U)
 

Macro Definition Documentation

◆ EPWM_SYNC_OUT_SOURCE_M

#define EPWM_SYNC_OUT_SOURCE_M
Value:
((uint16_t)CSL_EPWM_EPWMSYNCOUTEN_SWEN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_ZEROEN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_CMPBEN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_CMPCEN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_CMPDEN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK |\
(uint16_t)CSL_EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK)

◆ EPWM_SYNC_OUT_PULSE_ON_SOFTWARE

#define EPWM_SYNC_OUT_PULSE_ON_SOFTWARE   CSL_EPWM_EPWMSYNCOUTEN_SWEN_MASK

Software force generated EPWM sync-out pulse.

◆ EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO

#define EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO   CSL_EPWM_EPWMSYNCOUTEN_ZEROEN_MASK

Counter zero event generates EPWM sync-out pulse.

◆ EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B

#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B   CSL_EPWM_EPWMSYNCOUTEN_CMPBEN_MASK

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

◆ EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C

#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C   CSL_EPWM_EPWMSYNCOUTEN_CMPCEN_MASK

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

◆ EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D

#define EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D   CSL_EPWM_EPWMSYNCOUTEN_CMPDEN_MASK

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

◆ EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC

#define EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC   CSL_EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK

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

◆ EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC

#define EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC   CSL_EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK

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

◆ EPWM_SYNC_OUT_PULSE_ON_ALL

#define EPWM_SYNC_OUT_PULSE_ON_ALL   EPWM_SYNC_OUT_SOURCE_M

Enable all the above sources.

◆ EPWM_TIME_BASE_STATUS_COUNT_DOWN

#define EPWM_TIME_BASE_STATUS_COUNT_DOWN   (0U)

Time base counter is counting down.

◆ EPWM_TIME_BASE_STATUS_COUNT_UP

#define EPWM_TIME_BASE_STATUS_COUNT_UP   (1U)

Time base counter is counting up.

◆ EPWM_DB_INPUT_EPWMA

#define EPWM_DB_INPUT_EPWMA   (0U)

Input signal is ePWMA.

◆ EPWM_DB_INPUT_EPWMB

#define EPWM_DB_INPUT_EPWMB   (1U)

Input signal is ePWMB.

◆ EPWM_DB_INPUT_DB_RED

#define EPWM_DB_INPUT_DB_RED   (2U)

Input signal is the output of Rising Edge delay.

◆ EPWM_TZ_SIGNAL_CBC1

#define EPWM_TZ_SIGNAL_CBC1   (0x1U)

TZ1 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_CBC2

#define EPWM_TZ_SIGNAL_CBC2   (0x2U)

TZ2 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_CBC3

#define EPWM_TZ_SIGNAL_CBC3   (0x4U)

TZ3 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_CBC4

#define EPWM_TZ_SIGNAL_CBC4   (0x8U)

TZ4 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_CBC5

#define EPWM_TZ_SIGNAL_CBC5   (0x10U)

TZ5 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_CBC6

#define EPWM_TZ_SIGNAL_CBC6   (0x20U)

TZ6 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_DCAEVT2

#define EPWM_TZ_SIGNAL_DCAEVT2   (0x40U)

DCAEVT2 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_DCBEVT2

#define EPWM_TZ_SIGNAL_DCBEVT2   (0x80U)

DCBEVT2 Cycle By Cycle.

◆ EPWM_TZ_SIGNAL_OSHT1

#define EPWM_TZ_SIGNAL_OSHT1   (0x100U)

One-shot TZ1.

◆ EPWM_TZ_SIGNAL_OSHT2

#define EPWM_TZ_SIGNAL_OSHT2   (0x200U)

One-shot TZ2.

◆ EPWM_TZ_SIGNAL_OSHT3

#define EPWM_TZ_SIGNAL_OSHT3   (0x400U)

One-shot TZ3.

◆ EPWM_TZ_SIGNAL_OSHT4

#define EPWM_TZ_SIGNAL_OSHT4   (0x800U)

One-shot TZ4.

◆ EPWM_TZ_SIGNAL_OSHT5

#define EPWM_TZ_SIGNAL_OSHT5   (0x1000U)

One-shot TZ5.

◆ EPWM_TZ_SIGNAL_OSHT6

#define EPWM_TZ_SIGNAL_OSHT6   (0x2000U)

One-shot TZ6.

◆ EPWM_TZ_SIGNAL_DCAEVT1

#define EPWM_TZ_SIGNAL_DCAEVT1   (0x4000U)

One-shot DCAEVT1.

◆ EPWM_TZ_SIGNAL_DCBEVT1

#define EPWM_TZ_SIGNAL_DCBEVT1   (0x8000U)

One-shot DCBEVT1.

◆ EPWM_TZ_SIGNAL_CAPEVT_OST

#define EPWM_TZ_SIGNAL_CAPEVT_OST   (0x10000U)

One-shot Capture event.

◆ EPWM_TZ_SIGNAL_CAPEVT_CBC

#define EPWM_TZ_SIGNAL_CAPEVT_CBC   (0x1000000U)

Cycle by cycle capture event.

◆ EPWM_TZ_INTERRUPT_CBC

#define EPWM_TZ_INTERRUPT_CBC   (0x2U)

Trip Zones Cycle By Cycle interrupt.

◆ EPWM_TZ_INTERRUPT_OST

#define EPWM_TZ_INTERRUPT_OST   (0x4U)

Trip Zones One Shot interrupt.

◆ EPWM_TZ_INTERRUPT_DCAEVT1

#define EPWM_TZ_INTERRUPT_DCAEVT1   (0x8U)

Digital Compare A Event 1 interrupt.

◆ EPWM_TZ_INTERRUPT_DCAEVT2

#define EPWM_TZ_INTERRUPT_DCAEVT2   (0x10U)

Digital Compare A Event 2 interrupt.

◆ EPWM_TZ_INTERRUPT_DCBEVT1

#define EPWM_TZ_INTERRUPT_DCBEVT1   (0x20U)

Digital Compare B Event 1 interrupt.

◆ EPWM_TZ_INTERRUPT_DCBEVT2

#define EPWM_TZ_INTERRUPT_DCBEVT2   (0x40U)

Digital Compare B Event 2 interrupt.

◆ EPWM_TZ_INTERRUPT_CAPEVT

#define EPWM_TZ_INTERRUPT_CAPEVT   (0x80U)

Capture Event interrupt.

◆ EPWM_TZ_FLAG_CBC

#define EPWM_TZ_FLAG_CBC   (0x2U)

Trip Zones Cycle By Cycle flag.

◆ EPWM_TZ_FLAG_OST

#define EPWM_TZ_FLAG_OST   (0x4U)

Trip Zones One Shot flag.

◆ EPWM_TZ_FLAG_DCAEVT1

#define EPWM_TZ_FLAG_DCAEVT1   (0x8U)

Digital Compare A Event 1 flag.

◆ EPWM_TZ_FLAG_DCAEVT2

#define EPWM_TZ_FLAG_DCAEVT2   (0x10U)

Digital Compare A Event 2 flag.

◆ EPWM_TZ_FLAG_DCBEVT1

#define EPWM_TZ_FLAG_DCBEVT1   (0x20U)

Digital Compare B Event 1 flag.

◆ EPWM_TZ_FLAG_DCBEVT2

#define EPWM_TZ_FLAG_DCBEVT2   (0x40U)

Digital Compare B Event 2 flag.

◆ EPWM_TZ_FLAG_CAPEVT

#define EPWM_TZ_FLAG_CAPEVT   (0x80U)

Capture Event flag.

◆ EPWM_TZ_INTERRUPT

#define EPWM_TZ_INTERRUPT   (0x1U)

Trip Zone interrupt.

◆ EPWM_TZ_CBC_FLAG_1

#define EPWM_TZ_CBC_FLAG_1   (0x1U)

CBC flag 1.

◆ EPWM_TZ_CBC_FLAG_2

#define EPWM_TZ_CBC_FLAG_2   (0x2U)

CBC flag 2.

◆ EPWM_TZ_CBC_FLAG_3

#define EPWM_TZ_CBC_FLAG_3   (0x4U)

CBC flag 3.

◆ EPWM_TZ_CBC_FLAG_4

#define EPWM_TZ_CBC_FLAG_4   (0x8U)

CBC flag 4.

◆ EPWM_TZ_CBC_FLAG_5

#define EPWM_TZ_CBC_FLAG_5   (0x10U)

CBC flag 5.

◆ EPWM_TZ_CBC_FLAG_6

#define EPWM_TZ_CBC_FLAG_6   (0x20U)

CBC flag 6.

◆ EPWM_TZ_CBC_FLAG_DCAEVT2

#define EPWM_TZ_CBC_FLAG_DCAEVT2   (0x40U)

CBC flag Digital compare event A2.

◆ EPWM_TZ_CBC_FLAG_DCBEVT2

#define EPWM_TZ_CBC_FLAG_DCBEVT2   (0x80U)

CBC flag Digital compare event B2.

◆ EPWM_TZ_CBC_FLAG_CAPEVT

#define EPWM_TZ_CBC_FLAG_CAPEVT   (0x100U)

CBC flag Capture event.

◆ EPWM_TZ_OST_FLAG_OST1

#define EPWM_TZ_OST_FLAG_OST1   (0x1U)

OST flag OST1.

◆ EPWM_TZ_OST_FLAG_OST2

#define EPWM_TZ_OST_FLAG_OST2   (0x2U)

OST flag OST2.

◆ EPWM_TZ_OST_FLAG_OST3

#define EPWM_TZ_OST_FLAG_OST3   (0x4U)

OST flag OST3.

◆ EPWM_TZ_OST_FLAG_OST4

#define EPWM_TZ_OST_FLAG_OST4   (0x8U)

OST flag OST4.

◆ EPWM_TZ_OST_FLAG_OST5

#define EPWM_TZ_OST_FLAG_OST5   (0x10U)

OST flag OST5.

◆ EPWM_TZ_OST_FLAG_OST6

#define EPWM_TZ_OST_FLAG_OST6   (0x20U)

OST flag OST6.

◆ EPWM_TZ_OST_FLAG_DCAEVT1

#define EPWM_TZ_OST_FLAG_DCAEVT1   (0x40U)

OST flag Digital compare event A1.

◆ EPWM_TZ_OST_FLAG_DCBEVT1

#define EPWM_TZ_OST_FLAG_DCBEVT1   (0x80U)

OST flag Digital compare event B1.

◆ EPWM_TZ_OST_FLAG_CAPEVT

#define EPWM_TZ_OST_FLAG_CAPEVT   (0x100U)

OST flag Capture Event.

◆ EPWM_TZ_FORCE_EVENT_CBC

#define EPWM_TZ_FORCE_EVENT_CBC   (0x2U)

Force Cycle By Cycle trip event.

◆ EPWM_TZ_FORCE_EVENT_OST

#define EPWM_TZ_FORCE_EVENT_OST   (0x4U)

Force a One-Shot Trip Event.

◆ EPWM_TZ_FORCE_EVENT_DCAEVT1

#define EPWM_TZ_FORCE_EVENT_DCAEVT1   (0x8U)

Force Digital Compare Output A Event 1.

◆ EPWM_TZ_FORCE_EVENT_DCAEVT2

#define EPWM_TZ_FORCE_EVENT_DCAEVT2   (0x10U)

Force Digital Compare Output A Event 2.

◆ EPWM_TZ_FORCE_EVENT_DCBEVT1

#define EPWM_TZ_FORCE_EVENT_DCBEVT1   (0x20U)

Force Digital Compare Output B Event 1.

◆ EPWM_TZ_FORCE_EVENT_DCBEVT2

#define EPWM_TZ_FORCE_EVENT_DCBEVT2   (0x40U)

Force Digital Compare Output B Event 2.

◆ EPWM_TZ_FORCE_EVENT_CAPEVT

#define EPWM_TZ_FORCE_EVENT_CAPEVT   (0x80U)

Force Capture event.

◆ EPWM_TZ_SELECT_TRIPOUT_OST

#define EPWM_TZ_SELECT_TRIPOUT_OST   (0x1)

One shot.

◆ EPWM_TZ_SELECT_TRIPOUT_CBC

#define EPWM_TZ_SELECT_TRIPOUT_CBC   (0x2)

Cycle by cycle.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ1

#define EPWM_TZ_SELECT_TRIPOUT_TZ1   (0x4)

Trip Zone 1.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ2

#define EPWM_TZ_SELECT_TRIPOUT_TZ2   (0x8)

Trip Zone 2.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ3

#define EPWM_TZ_SELECT_TRIPOUT_TZ3   (0x10)

Trip Zone 3.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ4

#define EPWM_TZ_SELECT_TRIPOUT_TZ4   (0x20)

Trip Zone 4.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ5

#define EPWM_TZ_SELECT_TRIPOUT_TZ5   (0x40)

Trip Zone 5.

◆ EPWM_TZ_SELECT_TRIPOUT_TZ6

#define EPWM_TZ_SELECT_TRIPOUT_TZ6   (0x80)

Trip Zone 6.

◆ EPWM_TZ_SELECT_TRIPOUT_DCAEVT1

#define EPWM_TZ_SELECT_TRIPOUT_DCAEVT1   (0x100)

Digital capture A Event 1.

◆ EPWM_TZ_SELECT_TRIPOUT_DCAEVT2

#define EPWM_TZ_SELECT_TRIPOUT_DCAEVT2   (0x200)

Digital capture A Event 2.

◆ EPWM_TZ_SELECT_TRIPOUT_DCBEVT1

#define EPWM_TZ_SELECT_TRIPOUT_DCBEVT1   (0x400)

Digital capture B Event 1.

◆ EPWM_TZ_SELECT_TRIPOUT_DCBEVT2

#define EPWM_TZ_SELECT_TRIPOUT_DCBEVT2   (0x800)

Digtial capture B Event 2.

◆ EPWM_TZ_SELECT_TRIPOUT_CAPEVT

#define EPWM_TZ_SELECT_TRIPOUT_CAPEVT   (0x1000)

Capture Event.

◆ EPWM_INT_TBCTR_ZERO

#define EPWM_INT_TBCTR_ZERO   (1U)

Time-base counter equal to zero.

◆ EPWM_INT_TBCTR_PERIOD

#define EPWM_INT_TBCTR_PERIOD   (2U)

Time-base counter equal to period.

◆ EPWM_INT_TBCTR_ETINTMIX

#define EPWM_INT_TBCTR_ETINTMIX   (3U)

Time-base counter based on mix events.

◆ EPWM_INT_TBCTR_U_CMPA

#define EPWM_INT_TBCTR_U_CMPA   (4U)

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

◆ EPWM_INT_TBCTR_U_CMPC

#define EPWM_INT_TBCTR_U_CMPC   (8U)

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

◆ EPWM_INT_TBCTR_D_CMPA

#define EPWM_INT_TBCTR_D_CMPA   (5U)

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

◆ EPWM_INT_TBCTR_D_CMPC

#define EPWM_INT_TBCTR_D_CMPC   (10U)

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

◆ EPWM_INT_TBCTR_U_CMPB

#define EPWM_INT_TBCTR_U_CMPB   (6U)

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

◆ EPWM_INT_TBCTR_U_CMPD

#define EPWM_INT_TBCTR_U_CMPD   (12U)

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

◆ EPWM_INT_TBCTR_D_CMPB

#define EPWM_INT_TBCTR_D_CMPB   (7U)

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

◆ EPWM_INT_TBCTR_D_CMPD

#define EPWM_INT_TBCTR_D_CMPD   (14U)

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

◆ EPWM_INT_MIX_TBCTR_ZERO

#define EPWM_INT_MIX_TBCTR_ZERO   (0x1)

Time-base counter equal to zero.

◆ EPWM_INT_MIX_TBCTR_PERIOD

#define EPWM_INT_MIX_TBCTR_PERIOD   (0x2)

Time-base counter equal to period.

◆ EPWM_INT_MIX_TBCTR_U_CMPA

#define EPWM_INT_MIX_TBCTR_U_CMPA   (0x4)

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

◆ EPWM_INT_MIX_TBCTR_D_CMPA

#define EPWM_INT_MIX_TBCTR_D_CMPA   (0x8)

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

◆ EPWM_INT_MIX_TBCTR_U_CMPB

#define EPWM_INT_MIX_TBCTR_U_CMPB   (0x10)

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

◆ EPWM_INT_MIX_TBCTR_D_CMPB

#define EPWM_INT_MIX_TBCTR_D_CMPB   (0x20)

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

◆ EPWM_INT_MIX_TBCTR_U_CMPC

#define EPWM_INT_MIX_TBCTR_U_CMPC   (0x40)

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

◆ EPWM_INT_MIX_TBCTR_D_CMPC

#define EPWM_INT_MIX_TBCTR_D_CMPC   (0x80)

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

◆ EPWM_INT_MIX_TBCTR_U_CMPD

#define EPWM_INT_MIX_TBCTR_U_CMPD   (0x100)

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

◆ EPWM_INT_MIX_TBCTR_D_CMPD

#define EPWM_INT_MIX_TBCTR_D_CMPD   (0x200)

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

◆ EPWM_INT_MIX_DCAEVT1

#define EPWM_INT_MIX_DCAEVT1   (0x400)

DCAEVT1 interrupt.

◆ EPWM_DC_COMBINATIONAL_TRIPIN1

#define EPWM_DC_COMBINATIONAL_TRIPIN1   (0x1U)

Combinational Trip 1 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN2

#define EPWM_DC_COMBINATIONAL_TRIPIN2   (0x2U)

Combinational Trip 2 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN3

#define EPWM_DC_COMBINATIONAL_TRIPIN3   (0x4U)

Combinational Trip 3 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN4

#define EPWM_DC_COMBINATIONAL_TRIPIN4   (0x8U)

Combinational Trip 4 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN5

#define EPWM_DC_COMBINATIONAL_TRIPIN5   (0x10U)

Combinational Trip 5 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN6

#define EPWM_DC_COMBINATIONAL_TRIPIN6   (0x20U)

Combinational Trip 6 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN7

#define EPWM_DC_COMBINATIONAL_TRIPIN7   (0x40U)

Combinational Trip 7 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN8

#define EPWM_DC_COMBINATIONAL_TRIPIN8   (0x80U)

Combinational Trip 8 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN9

#define EPWM_DC_COMBINATIONAL_TRIPIN9   (0x100U)

Combinational Trip 9 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN10

#define EPWM_DC_COMBINATIONAL_TRIPIN10   (0x200U)

Combinational Trip 10 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN11

#define EPWM_DC_COMBINATIONAL_TRIPIN11   (0x400U)

Combinational Trip 11 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN12

#define EPWM_DC_COMBINATIONAL_TRIPIN12   (0x800U)

Combinational Trip 12 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN13

#define EPWM_DC_COMBINATIONAL_TRIPIN13   (0x1000U)

Combinational Trip 13 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN14

#define EPWM_DC_COMBINATIONAL_TRIPIN14   (0x2000U)

Combinational Trip 14 input.

◆ EPWM_DC_COMBINATIONAL_TRIPIN15

#define EPWM_DC_COMBINATIONAL_TRIPIN15   (0x4000U)

Combinational Trip 15 input.

◆ EPWM_DC_TBCTR_ZERO

#define EPWM_DC_TBCTR_ZERO   (0x1)

Time-base counter equal to zero.

◆ EPWM_DC_TBCTR_PERIOD

#define EPWM_DC_TBCTR_PERIOD   (0x2)

Time-base counter equal to period.

◆ EPWM_DC_TBCTR_U_CMPA

#define EPWM_DC_TBCTR_U_CMPA   (0x4)

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

◆ EPWM_DC_TBCTR_D_CMPA

#define EPWM_DC_TBCTR_D_CMPA   (0x8)

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

◆ EPWM_DC_TBCTR_U_CMPB

#define EPWM_DC_TBCTR_U_CMPB   (0x10)

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

◆ EPWM_DC_TBCTR_D_CMPB

#define EPWM_DC_TBCTR_D_CMPB   (0x20)

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

◆ EPWM_DC_TBCTR_U_CMPC

#define EPWM_DC_TBCTR_U_CMPC   (0x40)

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

◆ EPWM_DC_TBCTR_D_CMPC

#define EPWM_DC_TBCTR_D_CMPC   (0x80)

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

◆ EPWM_DC_TBCTR_U_CMPD

#define EPWM_DC_TBCTR_U_CMPD   (0x100)

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

◆ EPWM_DC_TBCTR_D_CMPD

#define EPWM_DC_TBCTR_D_CMPD   (0x200)

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

◆ EPWM_GL_REGISTER_TBPRD_TBPRDHR

#define EPWM_GL_REGISTER_TBPRD_TBPRDHR   (0x1U)

Global load TBPRD : TBPRDHR.

◆ EPWM_GL_REGISTER_CMPA_CMPAHR

#define EPWM_GL_REGISTER_CMPA_CMPAHR   (0x2U)

Global load CMPA : CMPAHR.

◆ EPWM_GL_REGISTER_CMPB_CMPBHR

#define EPWM_GL_REGISTER_CMPB_CMPBHR   (0x4U)

Global load CMPB : CMPBHR.

◆ EPWM_GL_REGISTER_CMPC

#define EPWM_GL_REGISTER_CMPC   (0x8U)

Global load CMPC.

◆ EPWM_GL_REGISTER_CMPD

#define EPWM_GL_REGISTER_CMPD   (0x10U)

Global load CMPD.

◆ EPWM_GL_REGISTER_DBRED_DBREDHR

#define EPWM_GL_REGISTER_DBRED_DBREDHR   (0x20U)

Global load DBRED : DBREDHR.

◆ EPWM_GL_REGISTER_DBFED_DBFEDHR

#define EPWM_GL_REGISTER_DBFED_DBFEDHR   (0x40U)

Global load DBFED : DBFEDHR.

◆ EPWM_GL_REGISTER_DBCTL

#define EPWM_GL_REGISTER_DBCTL   (0x80U)

Global load DBCTL.

◆ EPWM_GL_REGISTER_AQCTLA_AQCTLA2

#define EPWM_GL_REGISTER_AQCTLA_AQCTLA2   (0x100U)

Global load AQCTLA/A2.

◆ EPWM_GL_REGISTER_AQCTLB_AQCTLB2

#define EPWM_GL_REGISTER_AQCTLB_AQCTLB2   (0x200U)

Global load AQCTLB/B2.

◆ EPWM_GL_REGISTER_AQCSFRC

#define EPWM_GL_REGISTER_AQCSFRC   (0x400U)

Global load AQCSFRC.

◆ EPWM_MINDB_BLOCK_A

#define EPWM_MINDB_BLOCK_A   (0x0)

Values that can be passed to.

< Minimum Dead Band Block A Minimum Dead Band Block B

◆ EPWM_MINDB_BLOCK_B

#define EPWM_MINDB_BLOCK_B   (0x1)

◆ EPWM_MINDB_NO_INVERT

#define EPWM_MINDB_NO_INVERT   (0x0)

Values that can be passed to.

< Minimum Dead Band don't invert Minimum Dead invert reference signal

◆ EPWM_MINDB_INVERT

#define EPWM_MINDB_INVERT   (0x1)

◆ EPWM_MINDB_INVERT_LOGICAL_AND

#define EPWM_MINDB_INVERT_LOGICAL_AND   (0x0)

Values that can be passed to.

< Minimum Dead Band Invert and perform logical AND Minimum Dead Band Block perform logical OR

◆ EPWM_MINDB_LOGICAL_OR

#define EPWM_MINDB_LOGICAL_OR   (0x1)

◆ EPWM_MINDB_PWMB

#define EPWM_MINDB_PWMB   (0x0)

Values that can be passed to.

< Minimum Dead Band Reference signal Minimum Dead Band Reference Signal PWM Output Xbar Output 1

◆ EPWM_MINDB_PWM_OUTXBAR_OUT1

#define EPWM_MINDB_PWM_OUTXBAR_OUT1   (0x1)

Minimum Dead Band Reference Signal PWM Output Xbar Output 2.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT2

#define EPWM_MINDB_PWM_OUTXBAR_OUT2   (0x2)

Minimum Dead Band Reference Signal PWM Output Xbar Output 3.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT3

#define EPWM_MINDB_PWM_OUTXBAR_OUT3   (0x3)

Minimum Dead Band Reference Signal PWM Output Xbar Output 4.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT4

#define EPWM_MINDB_PWM_OUTXBAR_OUT4   (0x4)

Minimum Dead Band Reference Signal PWM Output Xbar Output 5.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT5

#define EPWM_MINDB_PWM_OUTXBAR_OUT5   (0x5)

Minimum Dead Band Reference Signal PWM Output Xbar Output 6.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT6

#define EPWM_MINDB_PWM_OUTXBAR_OUT6   (0x6)

Minimum Dead Band Reference Signal PWM Output Xbar Output 7.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT7

#define EPWM_MINDB_PWM_OUTXBAR_OUT7   (0x7)

Minimum Dead Band Reference Signal PWM Output Xbar Output 8.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT8

#define EPWM_MINDB_PWM_OUTXBAR_OUT8   (0x8)

Minimum Dead Band Reference Signal PWM Output Xbar Output 9.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT9

#define EPWM_MINDB_PWM_OUTXBAR_OUT9   (0x9)

Minimum Dead Band Reference Signal PWM Output Xbar Output 10.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT10

#define EPWM_MINDB_PWM_OUTXBAR_OUT10   (0xA)

Minimum Dead Band Reference Signal PWM Output Xbar Output 11.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT11

#define EPWM_MINDB_PWM_OUTXBAR_OUT11   (0xB)

Minimum Dead Band Reference Signal PWM Output Xbar Output 12.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT12

#define EPWM_MINDB_PWM_OUTXBAR_OUT12   (0xC)

Minimum Dead Band Reference Signal PWM Output Xbar Output 13.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT13

#define EPWM_MINDB_PWM_OUTXBAR_OUT13   (0xD)

Minimum Dead Band Reference Signal PWM Output Xbar Output 14.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT14

#define EPWM_MINDB_PWM_OUTXBAR_OUT14   (0xE)

Minimum Dead Band Reference Signal PWM Output Xbar Output 15.

◆ EPWM_MINDB_PWM_OUTXBAR_OUT15

#define EPWM_MINDB_PWM_OUTXBAR_OUT15   (0xF)

◆ EPWM_MINDB_BLOCKING_SIGNAL_SAME

#define EPWM_MINDB_BLOCKING_SIGNAL_SAME   (0x0)

Values that can be passed to.

< Minimum Dead Band Invert signal Minimum Dead Band Block B

◆ EPWM_MINDB_BLOCKING_SIGNAL_DIFF

#define EPWM_MINDB_BLOCKING_SIGNAL_DIFF   (0x1)

◆ EPWM_MINDB_ICSS_XBAR_OUT0

#define EPWM_MINDB_ICSS_XBAR_OUT0   (0x0)

Values that can be passed to.

< ICSS Xbar Out 0 ICSS Xbar Out 1

◆ EPWM_MINDB_ICSS_XBAR_OUT1

#define EPWM_MINDB_ICSS_XBAR_OUT1   (0x1)

ICSS Xbar Out 2.

◆ EPWM_MINDB_ICSS_XBAR_OUT2

#define EPWM_MINDB_ICSS_XBAR_OUT2   (0x2)

ICSS Xbar Out 3.

◆ EPWM_MINDB_ICSS_XBAR_OUT3

#define EPWM_MINDB_ICSS_XBAR_OUT3   (0x3)

ICSS Xbar Out 4.

◆ EPWM_MINDB_ICSS_XBAR_OUT4

#define EPWM_MINDB_ICSS_XBAR_OUT4   (0x4)

ICSS Xbar Out 5.

◆ EPWM_MINDB_ICSS_XBAR_OUT5

#define EPWM_MINDB_ICSS_XBAR_OUT5   (0x5)

ICSS Xbar Out 6.

◆ EPWM_MINDB_ICSS_XBAR_OUT6

#define EPWM_MINDB_ICSS_XBAR_OUT6   (0x6)

ICSS Xbar Out 7.

◆ EPWM_MINDB_ICSS_XBAR_OUT7

#define EPWM_MINDB_ICSS_XBAR_OUT7   (0x7)

ICSS Xbar Out 8.

◆ EPWM_MINDB_ICSS_XBAR_OUT8

#define EPWM_MINDB_ICSS_XBAR_OUT8   (0x8)

ICSS Xbar Out 9.

◆ EPWM_MINDB_ICSS_XBAR_OUT9

#define EPWM_MINDB_ICSS_XBAR_OUT9   (0x9)

ICSS Xbar Out 10.

◆ EPWM_MINDB_ICSS_XBAR_OUT10

#define EPWM_MINDB_ICSS_XBAR_OUT10   (0xA)

ICSS Xbar Out 11.

◆ EPWM_MINDB_ICSS_XBAR_OUT11

#define EPWM_MINDB_ICSS_XBAR_OUT11   (0xB)

ICSS Xbar Out 12.

◆ EPWM_MINDB_ICSS_XBAR_OUT12

#define EPWM_MINDB_ICSS_XBAR_OUT12   (0xC)

ICSS Xbar Out 13.

◆ EPWM_MINDB_ICSS_XBAR_OUT13

#define EPWM_MINDB_ICSS_XBAR_OUT13   (0xD)

ICSS Xbar Out 14.

◆ EPWM_MINDB_ICSS_XBAR_OUT14

#define EPWM_MINDB_ICSS_XBAR_OUT14   (0xE)

ICSS Xbar Out 15.

◆ EPWM_MINDB_ICSS_XBAR_OUT15

#define EPWM_MINDB_ICSS_XBAR_OUT15   (0xF)

◆ EPWM_XCMP_ACTIVE

#define EPWM_XCMP_ACTIVE   (0x0)

< XCMP set = Active

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

◆ EPWM_XCMP_SHADOW1

#define EPWM_XCMP_SHADOW1   (0x1)

XCMP set = Shadow 2.

◆ EPWM_XCMP_SHADOW2

#define EPWM_XCMP_SHADOW2   (0x2)

XCMP set = Shadow 3.

◆ EPWM_XCMP_SHADOW3

#define EPWM_XCMP_SHADOW3   (0x3)

◆ EPWM_DE_CHANNEL_A

#define EPWM_DE_CHANNEL_A   (0x0)

< Diode emulation channel A

Values that can be passed to EPWM_selectDiodeEmulationPWMsignal() and EPWM_selectDiodeEmulationTripSignal() Diode emulation channel B

◆ EPWM_DE_CHANNEL_B

#define EPWM_DE_CHANNEL_B   (0x1)

◆ EPWM_DE_COUNT_UP

#define EPWM_DE_COUNT_UP   (0x0)

Values that can be passed to EPWM_setDiodeEmulationMonitorModeStep()

< Diode emulation count up step size Diode emulation count down step size

◆ EPWM_DE_COUNT_DOWN

#define EPWM_DE_COUNT_DOWN   (0x1)

◆ EPWM_DE_TRIPL

#define EPWM_DE_TRIPL   (0x1)

Values that can be passed to EPWM_configureDiodeEmulationTripSources()

< Diode emulation Trip L Diode emulation Trip H

◆ EPWM_DE_TRIPH

#define EPWM_DE_TRIPH   (0x0)

◆ EPWM_DCxCTL_STEP

#define EPWM_DCxCTL_STEP   (CSL_EPWM_DCBCTL - CSL_EPWM_DCACTL)

Defines to be used by the driver.

◆ EPWM_DCxxTRIPSEL

#define EPWM_DCxxTRIPSEL   (CSL_EPWM_DCALTRIPSEL - CSL_EPWM_DCAHTRIPSEL)

◆ EPWM_XREGSHDWxSTS_STEP

#define EPWM_XREGSHDWxSTS_STEP   (CSL_EPWM_XREGSHDW2STS-CSL_EPWM_XREGSHDW1STS)

◆ EPWM_XCMPx_ACTIVE_STEP

#define EPWM_XCMPx_ACTIVE_STEP   (CSL_EPWM_XCMP2_ACTIVE-CSL_EPWM_XCMP1_ACTIVE)

◆ EPWM_XCMPx_STEP

#define EPWM_XCMPx_STEP   (CSL_EPWM_XCMP1_SHDW2-CSL_EPWM_XCMP1_SHDW1)

◆ EPWM_XCMPx_SHDWx_STEP

#define EPWM_XCMPx_SHDWx_STEP   (CSL_EPWM_XCMP2_SHDW1-CSL_EPWM_XCMP1_SHDW1)

◆ EPWM_LOCK_KEY

#define EPWM_LOCK_KEY   (0xA5A50000U)

Enumeration Type Documentation

◆ EPWM_EmulationMode

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

Enumerator
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.

◆ EPWM_SyncCountMode

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

Enumerator
EPWM_COUNT_MODE_DOWN_AFTER_SYNC 

Count down after sync event.

EPWM_COUNT_MODE_UP_AFTER_SYNC 

Count up after sync event.

◆ EPWM_ClockDivider

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

Enumerator
EPWM_CLOCK_DIVIDER_1 

Divide clock by 1.

EPWM_CLOCK_DIVIDER_2 

Divide clock by 2.

EPWM_CLOCK_DIVIDER_4 

Divide clock by 4.

EPWM_CLOCK_DIVIDER_8 

Divide clock by 8.

EPWM_CLOCK_DIVIDER_16 

Divide clock by 16.

EPWM_CLOCK_DIVIDER_32 

Divide clock by 32.

EPWM_CLOCK_DIVIDER_64 

Divide clock by 64.

EPWM_CLOCK_DIVIDER_128 

Divide clock by 128.

◆ EPWM_HSClockDivider

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

Enumerator
EPWM_HSCLOCK_DIVIDER_1 

Divide clock by 1.

EPWM_HSCLOCK_DIVIDER_2 

Divide clock by 2.

EPWM_HSCLOCK_DIVIDER_4 

Divide clock by 4.

EPWM_HSCLOCK_DIVIDER_6 

Divide clock by 6.

EPWM_HSCLOCK_DIVIDER_8 

Divide clock by 8.

EPWM_HSCLOCK_DIVIDER_10 

Divide clock by 10.

EPWM_HSCLOCK_DIVIDER_12 

Divide clock by 12.

EPWM_HSCLOCK_DIVIDER_14 

Divide clock by 14.

◆ EPWM_SyncInPulseSource

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

Enumerator
EPWM_SYNC_IN_PULSE_SRC_DISABLE 

Disable Sync-in.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM0 

Sync-in source is EPWM0 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1 

Sync-in source is EPWM1 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM2 

Sync-in source is EPWM2 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM3 

Sync-in source is EPWM3 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM4 

Sync-in source is EPWM4 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM5 

Sync-in source is EPWM5 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM6 

Sync-in source is EPWM6 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM7 

Sync-in source is EPWM7 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM8 

Sync-in source is EPWM8 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM9 

Sync-in source is EPWM9 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM10 

Sync-in source is EPWM10 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM11 

Sync-in source is EPWM11 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM12 

Sync-in source is EPWM12 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM13 

Sync-in source is EPWM13 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM14 

Sync-in source is EPWM14 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM15 

Sync-in source is EPWM15 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM16 

Sync-in source is EPWM16 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM17 

Sync-in source is EPWM17 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM18 

Sync-in source is EPWM18 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM19 

Sync-in source is EPWM19 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM20 

Sync-in source is EPWM20 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM21 

Sync-in source is EPWM21 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM22 

Sync-in source is EPWM22 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM23 

Sync-in source is EPWM23 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM24 

Sync-in source is EPWM24 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM25 

Sync-in source is EPWM25 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM26 

Sync-in source is EPWM26 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM27 

Sync-in source is EPWM27 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM28 

Sync-in source is EPWM28 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM29 

Sync-in source is EPWM29 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM30 

Sync-in source is EPWM30 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM31 

Sync-in source is EPWM31 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP0 

Sync-in source is ECAP0 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP1 

Sync-in source is ECAP1 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP2 

Sync-in source is ECAP2 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP3 

Sync-in source is ECAP3 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP4 

Sync-in source is ECAP4 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP5 

Sync-in source is ECAP5 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP6 

Sync-in source is ECAP6 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP7 

Sync-in source is ECAP7 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP8 

Sync-in source is ECAP8 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP9 

Sync-in source is ECAP9 sync-out signal.

EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT4 

Sync-in source is Input XBAR out4 signal.

EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT20 

Sync-in source is Input XBAR out20 signal.

EPWM_SYNC_IN_PULSE_SRC_C2K_TIMESYNC_XBAR_PWM_OUT0 

Sync-in source is C2K Timesync xbar sync pwm out0 signal.

EPWM_SYNC_IN_PULSE_SRC_C2K_TIMESYNC_XBAR_PWM_OUT1 

Sync-in source is C2K Timesync xbar sync pwm out1 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG0 

Sync-in source is FSI-RX0 RX Trigger 0 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG1 

Sync-in source is FSI-RX0 RX Trigger 1 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG2 

Sync-in source is FSI-RX0 RX Trigger 2 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX0_RX_TRIG3 

Sync-in source is FSI-RX0 RX Trigger 3 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG0 

Sync-in source is FSI-RX1 RX Trigger 0 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG1 

Sync-in source is FSI-RX1 RX Trigger 1 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG2 

Sync-in source is FSI-RX1 RX Trigger 2 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX1_RX_TRIG3 

Sync-in source is FSI-RX1 RX Trigger 3 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG0 

Sync-in source is FSI-RX2 RX Trigger 0 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG1 

Sync-in source is FSI-RX2 RX Trigger 1 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG2 

Sync-in source is FSI-RX2 RX Trigger 2 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX2_RX_TRIG3 

Sync-in source is FSI-RX2 RX Trigger 3 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG0 

Sync-in source is FSI-RX3 RX Trigger 0 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG1 

Sync-in source is FSI-RX3 RX Trigger 1 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG2 

Sync-in source is FSI-RX3 RX Trigger 2 signal.

EPWM_SYNC_IN_PULSE_SRC_FSIRX3_RX_TRIG3 

Sync-in source is FSI-RX3 RX Trigger 3 signal.

◆ EPWM_OneShotSyncOutTrigger

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

Enumerator
EPWM_OSHT_SYNC_OUT_TRIG_SYNC 

Trigger is OSHT sync.

EPWM_OSHT_SYNC_OUT_TRIG_RELOAD 

Trigger is OSHT reload.

◆ EPWM_PeriodLoadMode

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

Enumerator
EPWM_PERIOD_SHADOW_LOAD 

PWM Period register access is through shadow register.

EPWM_PERIOD_DIRECT_LOAD 

PWM Period register access is directly.

◆ EPWM_TimeBaseCountMode

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

Enumerator
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.

◆ EPWM_PeriodShadowLoadMode

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

Enumerator
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

◆ EPWM_CurrentLink

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

Enumerator
EPWM_LINK_WITH_EPWM_0 

link current ePWM with ePWM0

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

EPWM_LINK_WITH_EPWM_17 

link current ePWM with ePWM17

EPWM_LINK_WITH_EPWM_18 

link current ePWM with ePWM18

EPWM_LINK_WITH_EPWM_19 

link current ePWM with ePWM19

EPWM_LINK_WITH_EPWM_20 

link current ePWM with ePWM20

EPWM_LINK_WITH_EPWM_21 

link current ePWM with ePWM21

EPWM_LINK_WITH_EPWM_22 

link current ePWM with ePWM22

EPWM_LINK_WITH_EPWM_23 

link current ePWM with ePWM23

EPWM_LINK_WITH_EPWM_24 

link current ePWM with ePWM24

EPWM_LINK_WITH_EPWM_25 

link current ePWM with ePWM25

EPWM_LINK_WITH_EPWM_26 

link current ePWM with ePWM26

EPWM_LINK_WITH_EPWM_27 

link current ePWM with ePWM27

EPWM_LINK_WITH_EPWM_28 

link current ePWM with ePWM28

EPWM_LINK_WITH_EPWM_29 

link current ePWM with ePWM29

EPWM_LINK_WITH_EPWM_30 

link current ePWM with ePWM30

EPWM_LINK_WITH_EPWM_31 

link current ePWM with ePWM31

◆ EPWM_LinkComponent

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

Enumerator
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

◆ EPWM_CounterCompareModule

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

Enumerator
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

◆ EPWM_CounterCompareLoadMode

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

Enumerator
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

◆ EPWM_ActionQualifierModule

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

Enumerator
EPWM_ACTION_QUALIFIER_A 

Action Qualifier A.

EPWM_ACTION_QUALIFIER_B 

Action Qualifier B.

◆ EPWM_ActionQualifierLoadMode

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

Enumerator
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

◆ EPWM_ActionQualifierTriggerSource

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

Enumerator
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.

◆ EPWM_ActionQualifierOutputEvent

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

Enumerator
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.

◆ EPWM_ActionQualifierOutput

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

Enumerator
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.

◆ EPWM_ActionQualifierSWOutput

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

Enumerator
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.

◆ EPWM_ActionQualifierEventAction

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

Enumerator
EPWM_AQ_OUTPUT_NO_CHANGE_ZERO 

Time base counter equals zero and no change in the 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.

EPWM_AQ_OUTPUT_NO_CHANGE_PERIOD 

Time base counter equals period and no change in the 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.

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 to low.

EPWM_AQ_OUTPUT_HIGH_UP_CMPA 

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

EPWM_AQ_OUTPUT_TOGGLE_UP_CMPA 

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

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 to low.

EPWM_AQ_OUTPUT_HIGH_DOWN_CMPA 

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

EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPA 

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

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 to low.

EPWM_AQ_OUTPUT_HIGH_UP_CMPB 

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

EPWM_AQ_OUTPUT_TOGGLE_UP_CMPB 

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

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 to low.

EPWM_AQ_OUTPUT_HIGH_DOWN_CMPB 

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

EPWM_AQ_OUTPUT_TOGGLE_DOWN_CMPB 

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

◆ EPWM_AdditionalActionQualifierEventAction

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

Enumerator
EPWM_AQ_OUTPUT_NO_CHANGE_UP_T1 

T1 event on count up and no change in the 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.

EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T1 

T1 event on count down and no change in the 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.

EPWM_AQ_OUTPUT_NO_CHANGE_UP_T2 

T2 event on count up and no change in the 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.

EPWM_AQ_OUTPUT_NO_CHANGE_DOWN_T2 

T2 event on count down and no change in the 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.

◆ EPWM_ActionQualifierOutputModule

◆ EPWM_ActionQualifierContForce

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

Enumerator
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 

No shadow load mode. Immediate mode only.

◆ EPWM_DeadBandOutput

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

Enumerator
EPWM_DB_OUTPUT_A 

DB output is ePWMA.

EPWM_DB_OUTPUT_B 

DB output is ePWMB.

◆ EPWM_DeadBandDelayMode

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

Enumerator
EPWM_DB_RED 

DB RED (Rising Edge Delay) mode.

EPWM_DB_FED 

DB FED (Falling Edge Delay) mode.

◆ EPWM_DeadBandPolarity

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

Enumerator
EPWM_DB_POLARITY_ACTIVE_HIGH 

DB polarity is not inverted.

EPWM_DB_POLARITY_ACTIVE_LOW 

DB polarity is inverted.

◆ EPWM_DeadBandControlLoadMode

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

Enumerator
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.

◆ EPWM_RisingEdgeDelayLoadMode

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

Enumerator
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.

◆ EPWM_FallingEdgeDelayLoadMode

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

Enumerator
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.

◆ EPWM_DeadBandClockMode

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

Enumerator
EPWM_DB_COUNTER_CLOCK_FULL_CYCLE 

Dead band counter runs at TBCLK rate.

EPWM_DB_COUNTER_CLOCK_HALF_CYCLE 

Dead band counter runs at 2*TBCLK rate.

◆ EPWM_TripZoneDigitalCompareOutput

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

Enumerator
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.

◆ EPWM_TripZoneDigitalCompareOutputEvent

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

Enumerator
EPWM_TZ_EVENT_DC_DISABLED 

Event is disabled.

EPWM_TZ_EVENT_DCXH_LOW 

Event when DCxH low.

EPWM_TZ_EVENT_DCXH_HIGH 

Event when DCxH high.

EPWM_TZ_EVENT_DCXL_LOW 

Event when DCxL low.

EPWM_TZ_EVENT_DCXL_HIGH 

Event when DCxL high.

EPWM_TZ_EVENT_DCXL_HIGH_DCXH_LOW 

Event when DCxL high DCxH low.

◆ EPWM_TripZoneEvent

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

Enumerator
EPWM_TZ_ACTION_EVENT_TZA 

TZ1 - TZ6, DCAEVT2, DCAEVT1.

EPWM_TZ_ACTION_EVENT_TZB 

TZ1 - TZ6, DCBEVT2, DCBEVT1.

EPWM_TZ_ACTION_EVENT_DCAEVT1 

DCAEVT1 (Digital Compare A event 1)

EPWM_TZ_ACTION_EVENT_DCAEVT2 

DCAEVT2 (Digital Compare A event 2)

EPWM_TZ_ACTION_EVENT_DCBEVT1 

DCBEVT1 (Digital Compare B event 1)

EPWM_TZ_ACTION_EVENT_DCBEVT2 

DCBEVT2 (Digital Compare B event 2)

◆ EPWM_TripZoneAction

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

Enumerator
EPWM_TZ_ACTION_HIGH_Z 

high impedance output

EPWM_TZ_ACTION_HIGH 

high voltage state

EPWM_TZ_ACTION_LOW 

low voltage state

EPWM_TZ_ACTION_DISABLE 

disable action

◆ EPWM_TripZoneAdvancedEvent

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

Enumerator
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.

◆ EPWM_TripZoneAdvancedAction

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

Enumerator
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 the output

EPWM_TZ_ADV_ACTION_DISABLE 

disable action

◆ EPWM_TripZoneAdvDigitalCompareEvent

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

Enumerator
EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_U 

Digital Compare event A/B 1 while counting up.

EPWM_TZ_ADV_ACTION_EVENT_DCxEVT1_D 

Digital Compare event A/B 1 while counting down.

EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_U 

Digital Compare event A/B 2 while counting up.

EPWM_TZ_ADV_ACTION_EVENT_DCxEVT2_D 

Digital Compare event A/B 2 while counting down.

◆ EPWM_CycleByCycleTripZoneClearMode

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

Enumerator
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.

◆ EPWM_ADCStartOfConversionType

◆ EPWM_ADCStartOfConversionSource

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

Enumerator
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_MIXED_EVENT 

Time-base counter equal to zero or period.

EPWM_SOC_TBCTR_U_CMPA 

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

EPWM_SOC_TBCTR_U_CMPC 

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

EPWM_SOC_TBCTR_D_CMPA 

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

EPWM_SOC_TBCTR_D_CMPC 

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

EPWM_SOC_TBCTR_U_CMPB 

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

EPWM_SOC_TBCTR_U_CMPD 

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

EPWM_SOC_TBCTR_D_CMPB 

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

EPWM_SOC_TBCTR_D_CMPD 

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

◆ EPWM_DigitalCompareType

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

Enumerator
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.

◆ EPWM_DigitalCompareTripInput

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

Enumerator
EPWM_DC_TRIP_TRIPIN1 

Trip 1.

EPWM_DC_TRIP_TRIPIN2 

Trip 2.

EPWM_DC_TRIP_TRIPIN3 

Trip 3.

EPWM_DC_TRIP_TRIPIN4 

Trip 4.

EPWM_DC_TRIP_TRIPIN5 

Trip 5.

EPWM_DC_TRIP_TRIPIN6 

Trip 6.

EPWM_DC_TRIP_TRIPIN7 

Trip 7.

EPWM_DC_TRIP_TRIPIN8 

Trip 8.

EPWM_DC_TRIP_TRIPIN9 

Trip 9.

EPWM_DC_TRIP_TRIPIN10 

Trip 10.

EPWM_DC_TRIP_TRIPIN11 

Trip 11.

EPWM_DC_TRIP_TRIPIN12 

Trip 12.

EPWM_DC_TRIP_TRIPIN13 

Trip 13.

EPWM_DC_TRIP_TRIPIN14 

Trip 14.

EPWM_DC_TRIP_TRIPIN15 

Trip 15.

EPWM_DC_TRIP_COMBINATION 

All Trips (Trip1 - Trip 15) are selected.

◆ EPWM_DigitalCompareBlankingPulse

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

Enumerator
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.

EPWM_DC_WINDOW_START_TBCTR_BLANK_PULSE_MIX 

Time base counter blank pulse mix.

◆ EPWM_DigitalCompareFilterInput

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

Enumerator
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.

◆ EPWM_DigitalCompareModule

◆ EPWM_DigitalCompareEvent

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

Enumerator
EPWM_DC_EVENT_1 

Digital Compare Event number 1.

EPWM_DC_EVENT_2 

Digital Compare Event number 2.

◆ EPWM_DigitalCompareEventSource

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

Enumerator
EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL 

signal source is unfiltered (DCAEVT1/2)

EPWM_DC_EVENT_SOURCE_FILT_SIGNAL 

signal source is filtered (DCEVTFILT)

◆ EPWM_DigitalCompareSyncMode

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

Enumerator
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.

◆ EPWM_DigitalCompareCBCLatchMode

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

Enumerator
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.

◆ EPWM_DigitalCompareCBCLatchClearEvent

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

Enumerator
EPWM_DC_CBC_LATCH_CLR_CNTR_ZERO 

Clear CBC latch when counter equals zero.

EPWM_DC_CBC_LATCH_CLR_ON_CNTR_PERIOD 

Clear CBC latch when counter equals period.

EPWM_DC_CBC_LATCH_CLR_ON_CNTR_ZERO_PERIOD 

Clear CBC latch when counter equals zero or period.

◆ EPWM_GlobalLoadTrigger

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

Enumerator
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_CMPC_U 

load when counter is equal to cmpc and cmpc is incrementing

EPWM_GL_LOAD_PULSE_CNTR_CMPC_D 

load when counter is equal to cmpc and cmpc is decrementing

EPWM_GL_LOAD_PULSE_CNTR_CMPD_U 

load when counter is equal to cmpd and cmpd is incrementing

EPWM_GL_LOAD_PULSE_CNTR_CMPD_D 

load when counter is equal to cmpd and cmpd is decrementing

EPWM_GL_LOAD_PULSE_GLOBAL_FORCE 

load on global force

◆ EPWM_ValleyTriggerSource

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

Enumerator
EPWM_VALLEY_TRIGGER_EVENT_SOFTWARE 

Valley capture trigged by software.

EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO 

Valley capture trigged by when counter is equal to zero.

EPWM_VALLEY_TRIGGER_EVENT_CNTR_PERIOD 

Valley capture trigged by when counter is equal period.

EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO_PERIOD 

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

EPWM_VALLEY_TRIGGER_EVENT_DCAEVT1 

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

EPWM_VALLEY_TRIGGER_EVENT_DCAEVT2 

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

EPWM_VALLEY_TRIGGER_EVENT_DCBEVT1 

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

EPWM_VALLEY_TRIGGER_EVENT_DCBEVT2 

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

◆ EPWM_ValleyCounterEdge

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

Enumerator
EPWM_VALLEY_COUNT_START_EDGE 

Valley count start edge.

EPWM_VALLEY_COUNT_STOP_EDGE 

Valley count stop edge.

◆ EPWM_ValleyDelayMode

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

Enumerator
EPWM_VALLEY_DELAY_MODE_SW_DELAY 

Delay value equals the offset value defines by software.

EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SW_DELAY 

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

EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_1_SW_DELAY 

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

EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_2_SW_DELAY 

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

EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_4_SW_DELAY 

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

◆ EPWM_DigitalCompareEdgeFilterMode

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

Enumerator
EPWM_DC_EDGEFILT_MODE_RISING 

Digital Compare Edge filter low to high edge mode.

Digital Compare Edge filter high to low edge mode

EPWM_DC_EDGEFILT_MODE_FALLING 

Digital Compare Edge filter both edges mode.

EPWM_DC_EDGEFILT_MODE_BOTH 

◆ EPWM_DigitalCompareEdgeFilterEdgeCount

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

Enumerator
EPWM_DC_EDGEFILT_EDGECNT_0 

Digital Compare Edge filter edge count = 0.

Digital Compare Edge filter edge count = 1

EPWM_DC_EDGEFILT_EDGECNT_1 

Digital Compare Edge filter edge count = 2.

EPWM_DC_EDGEFILT_EDGECNT_2 

Digital Compare Edge filter edge count = 3.

EPWM_DC_EDGEFILT_EDGECNT_3 

Digital Compare Edge filter edge count = 4.

EPWM_DC_EDGEFILT_EDGECNT_4 

Digital Compare Edge filter edge count = 5.

EPWM_DC_EDGEFILT_EDGECNT_5 

Digital Compare Edge filter edge count = 6.

EPWM_DC_EDGEFILT_EDGECNT_6 

Digital Compare Edge filter edge count = 7.

EPWM_DC_EDGEFILT_EDGECNT_7 

◆ EPWM_LockRegisterGroup

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

Enumerator
EPWM_REGISTER_GROUP_HR 

HRPWM register group.

EPWM_REGISTER_GROUP_GLOBAL_LOAD 

Global load register group.

EPWM_REGISTER_GROUP_TRIP_ZONE 

Trip zone register group.

EPWM_REGISTER_GROUP_TRIP_ZONE_CLEAR 

Trip zone clear group.

EPWM_REGISTER_GROUP_DIGITAL_COMPARE 

Digital compare group.

◆ HRPWM_Channel

Values that can be passed to HRPWM_setMEPEdgeSelect(), HRPWM_setMEPControlMode(), HRPWM_setCounterCompareShadowLoadEvent() as the channel parameter.

Enumerator
HRPWM_CHANNEL_A 

HRPWM A.

HRPWM_CHANNEL_B 

HRPWM B.

◆ HRPWM_MEPEdgeMode

Values that can be passed to HRPWM_setMEPEdgeSelect() as the mepEdgeMode parameter.

Enumerator
HRPWM_MEP_CTRL_DISABLE 

HRPWM is disabled.

HRPWM_MEP_CTRL_RISING_EDGE 

MEP controls rising edge.

HRPWM_MEP_CTRL_FALLING_EDGE 

MEP controls falling edge.

HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE 

MEP controls both rising and falling edge.

◆ HRPWM_MEPCtrlMode

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

Enumerator
HRPWM_MEP_DUTY_PERIOD_CTRL 

CMPAHR/CMPBHR or TBPRDHR controls MEP edge.

HRPWM_MEP_PHASE_CTRL 

TBPHSHR controls MEP edge.

◆ HRPWM_LoadMode

Values that can be passed to HRPWM_setCounterCompareShadowLoadEvent(), HRPWM_setRisingEdgeDelayLoadMode() and HRPWM_setFallingEdgeDelayLoadMode as the loadEvent parameter.

Enumerator
HRPWM_LOAD_ON_CNTR_ZERO 

load when counter equals zero

HRPWM_LOAD_ON_CNTR_PERIOD 

load when counter equals period

HRPWM_LOAD_ON_CNTR_ZERO_PERIOD 

load when counter equals zero or period

HRPWM_LOAD_ON_CMPB_EQ 

load on translater event CMPB-3

◆ HRPWM_ChannelBOutput

Values that can be passed to HRPWM_setChannelBOutputPath() as the outputOnB parameter.

Enumerator
HRPWM_OUTPUT_ON_B_NORMAL 

ePWMxB output is normal.

ePWMxB output is inverted version of ePWMxA signal

HRPWM_OUTPUT_ON_B_INV_A 

◆ HRPWM_SyncPulseSource

Values that can be passed to HRPWM_setSyncPulseSource() as the syncPulseSource parameter.

Enumerator
HRPWM_PWMSYNC_SOURCE_PERIOD 

Counter equals Period.

HRPWM_PWMSYNC_SOURCE_ZERO 

Counter equals zero.

HRPWM_PWMSYNC_SOURCE_COMPC_UP 

Counter equals COMPC when counting up.

HRPWM_PWMSYNC_SOURCE_COMPC_DOWN 

Counter equals COMPC when counting down.

HRPWM_PWMSYNC_SOURCE_COMPD_UP 

Counter equals COMPD when counting up.

HRPWM_PWMSYNC_SOURCE_COMPD_DOWN 

Counter equals COMPD when counting down.

◆ HRPWM_CounterCompareModule

Values that can be passed to HRPWM_setCounterCompareValue() as the compModule parameter.

Enumerator
HRPWM_COUNTER_COMPARE_A 

counter compare A

HRPWM_COUNTER_COMPARE_B 

counter compare B

◆ HRPWM_MEPDeadBandEdgeMode

Values that can be passed to HRPWM_setDeadbandMEPEdgeSelect() as the mepDBEdge.

Enumerator
HRPWM_DB_MEP_CTRL_DISABLE 

HRPWM is disabled.

HRPWM_DB_MEP_CTRL_RED 

MEP controls Rising Edge Delay.

HRPWM_DB_MEP_CTRL_FED 

MEP controls Falling Edge Delay.

HRPWM_DB_MEP_CTRL_RED_FED 

MEP controls both Falling and Rising edge delay.

◆ EPWM_XCMPReg

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

Enumerator
EPWM_XCMP1_ACTIVE 

XCMP1_ACTIVE.

EPWM_XCMP2_ACTIVE 

XCMP2_ACTIVE.

EPWM_XCMP3_ACTIVE 

XCMP3_ACTIVE.

EPWM_XCMP4_ACTIVE 

XCMP4_ACTIVE.

EPWM_XCMP5_ACTIVE 

XCMP5_ACTIVE.

EPWM_XCMP6_ACTIVE 

XCMP6_ACTIVE.

EPWM_XCMP7_ACTIVE 

XCMP7_ACTIVE.

EPWM_XCMP8_ACTIVE 

XCMP8_ACTIVE.

EPWM_XTBPRD_ACTIVE 

XTBPRD_ACTIVE.

EPWM_XMINMAX_ACTIVE 

XMINMAX_ACTIVE.

EPWM_XCMP1_SHADOW1 

XCMP1_SHADOW1.

EPWM_XCMP2_SHADOW1 

XCMP2_SHADOW1.

EPWM_XCMP3_SHADOW1 

XCMP3_SHADOW1.

EPWM_XCMP4_SHADOW1 

XCMP4_SHADOW1.

EPWM_XCMP5_SHADOW1 

XCMP5_SHADOW1.

EPWM_XCMP6_SHADOW1 

XCMP6_SHADOW1.

EPWM_XCMP7_SHADOW1 

XCMP7_SHADOW1.

EPWM_XCMP8_SHADOW1 

XCMP8_SHADOW1.

EPWM_XTBPRD_SHADOW1 

XTBPRD_SHADOW1.

EPWM_XMINMAX_SHADOW1 

XMINMAX_SHADOW1.

EPWM_XCMP1_SHADOW2 

XCMP1_SHADOW2.

EPWM_XCMP2_SHADOW2 

XCMP2_SHADOW2.

EPWM_XCMP3_SHADOW2 

XCMP3_SHADOW2.

EPWM_XCMP4_SHADOW2 

XCMP4_SHADOW2.

EPWM_XCMP5_SHADOW2 

XCMP5_SHADOW2.

EPWM_XCMP6_SHADOW2 

XCMP6_SHADOW2.

EPWM_XCMP7_SHADOW2 

XCMP7_SHADOW2.

EPWM_XCMP8_SHADOW2 

XCMP8_SHADOW2.

EPWM_XTBPRD_SHADOW2 

XTBPRD_SHADOW2.

EPWM_XMINMAX_SHADOW2 

XMINMAX_SHADOW2.

EPWM_XCMP1_SHADOW3 

XCMP1_SHADOW3.

EPWM_XCMP2_SHADOW3 

XCMP2_SHADOW3.

EPWM_XCMP3_SHADOW3 

XCMP3_SHADOW3.

EPWM_XCMP4_SHADOW3 

XCMP4_SHADOW3.

EPWM_XCMP5_SHADOW3 

XCMP5_SHADOW3.

EPWM_XCMP6_SHADOW3 

XCMP6_SHADOW3.

EPWM_XCMP7_SHADOW3 

XCMP7_SHADOW3.

EPWM_XCMP8_SHADOW3 

XCMP8_SHADOW3.

EPWM_XTBPRD_SHADOW3 

XTBPRD_SHADOW3.

EPWM_XMINMAX_SHADOW3 

XMINMAX_SHADOW3.

◆ EPWM_XCMPActionQualifierOutputEvent

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

Enumerator
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.

◆ EPWM_XCMP_ALLOC_CMPA

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

Enumerator
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 registers to CMPA.

EPWM_XCMP_4_CMPA 

Allocate XCMP1 - XCMP4 registers to CMPA.

EPWM_XCMP_5_CMPA 

Allocate XCMP1 - XCMP5 registers to CMPA.

EPWM_XCMP_6_CMPA 

Allocate XCMP1 - XCMP6 registers to CMPA.

EPWM_XCMP_7_CMPA 

Allocate XCMP1 - XCMP7 registers to CMPA.

EPWM_XCMP_8_CMPA 

Allocate XCMP1 - XCMP8 registers to CMPA.

◆ EPWM_XCMP_ALLOC_CMPB

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

Enumerator
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 registers to CMPB.

EPWM_XCMP_4_CMPB 

Allocate XCMP5 - XCMP8 registers to CMPB.

◆ EPWM_XCMPXloadCtlLoadMode

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

Enumerator
EPWM_XCMP_XLOADCTL_LOADMODE_LOADONCE 

Load mode is LOADONCE.

EPWM_XCMP_XLOADCTL_LOADMODE_LOADMULTIPLE 

Load mode is LOADMULTIPLE.

◆ EPWM_XCMP_XLOADCTL_SHDWLEVEL

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

Enumerator
EPWM_XCMP_XLOADCTL_SHDWLEVEL_0 

Only Active register is available.

EPWM_XCMP_XLOADCTL_SHDWLEVEL_1 

SHDW1 and Active registers are available.

EPWM_XCMP_XLOADCTL_SHDWLEVEL_2 

SHDW2, SHDW1 and Active registers are available.

EPWM_XCMP_XLOADCTL_SHDWLEVEL_3 

SHDW3, SHDW2, SHDW1 and Active registers are available.

◆ EPWM_XCMP_XLOADCTL_SHDWBUFPTR

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

Enumerator
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.

◆ EPWM_DiodeEmulationMode

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

Enumerator
EPWM_DIODE_EMULATION_CBC 

Diode Emulation mode is Cycle by Cycle.

EPWM_DIODE_EMULATION_OST 

Diode Emulation mode is One Shot.

◆ EPWM_DiodeEmulationTripSource

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

Enumerator
EPWM_DE_TRIP_SRC_INPUTXBAR_OUT0 

Trip source is INPUTXBAR out0 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT1 

Trip source is INPUTXBAR out1 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT2 

Trip source is INPUTXBAR out2 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT3 

Trip source is INPUTXBAR out3 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT4 

Trip source is INPUTXBAR out4 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT5 

Trip source is INPUTXBAR out5 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT6 

Trip source is INPUTXBAR out6 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT7 

Trip source is INPUTXBAR out7 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT8 

Trip source is INPUTXBAR out8 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT9 

Trip source is INPUTXBAR out9 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT10 

Trip source is INPUTXBAR out10 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT11 

Trip source is INPUTXBAR out11 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT12 

Trip source is INPUTXBAR out12 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT13 

Trip source is INPUTXBAR out13 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT14 

Trip source is INPUTXBAR out14 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT15 

Trip source is INPUTXBAR out15 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT16 

Trip source is INPUTXBAR out16 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT17 

Trip source is INPUTXBAR out17 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT18 

Trip source is INPUTXBAR out18 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT19 

Trip source is INPUTXBAR out19 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT20 

Trip source is INPUTXBAR out20 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT21 

Trip source is INPUTXBAR out21 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT22 

Trip source is INPUTXBAR out22 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT23 

Trip source is INPUTXBAR out23 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT24 

Trip source is INPUTXBAR out24 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT25 

Trip source is INPUTXBAR out25 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT26 

Trip source is INPUTXBAR out26 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT27 

Trip source is INPUTXBAR out27 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT28 

Trip source is INPUTXBAR out28 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT29 

Trip source is INPUTXBAR out29 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT30 

Trip source is INPUTXBAR out30 signal.

EPWM_DE_TRIP_SRC_INPUTXBAR_OUT31 

Trip source is INPUTXBAR out31 signal.

EPWM_DE_TRIP_SRC_CMPSSA0 

Trip source is CMPSSA0 signal.

EPWM_DE_TRIP_SRC_CMPSSA1 

Trip source is CMPSSA1 signal.

EPWM_DE_TRIP_SRC_CMPSSA2 

Trip source is CMPSSA2 signal.

EPWM_DE_TRIP_SRC_CMPSSA3 

Trip source is CMPSSA3 signal.

EPWM_DE_TRIP_SRC_CMPSSA4 

Trip source is CMPSSA4 signal.

EPWM_DE_TRIP_SRC_CMPSSA5 

Trip source is CMPSSA5 signal.

EPWM_DE_TRIP_SRC_CMPSSA6 

Trip source is CMPSSA6 signal.

EPWM_DE_TRIP_SRC_CMPSSA7 

Trip source is CMPSSA7 signal.

EPWM_DE_TRIP_SRC_CMPSSA8 

Trip source is CMPSSA8 signal.

EPWM_DE_TRIP_SRC_CMPSSA9 

Trip source is CMPSSA9 signal.

EPWM_DE_TRIP_SRC_CMPSSB0 

Trip source is CMPSSB0 signal.

EPWM_DE_TRIP_SRC_CMPSSB1 

Trip source is CMPSSB1 signal.

EPWM_DE_TRIP_SRC_CMPSSB2 

Trip source is CMPSSB2 signal.

EPWM_DE_TRIP_SRC_CMPSSB3 

Trip source is CMPSSB3 signal.

EPWM_DE_TRIP_SRC_CMPSSB4 

Trip source is CMPSSB4 signal.

EPWM_DE_TRIP_SRC_CMPSSB5 

Trip source is CMPSSB5 signal.

EPWM_DE_TRIP_SRC_CMPSSB6 

Trip source is CMPSSB6 signal.

EPWM_DE_TRIP_SRC_CMPSSB7 

Trip source is CMPSSB7 signal.

EPWM_DE_TRIP_SRC_CMPSSB8 

Trip source is CMPSSB8 signal.

EPWM_DE_TRIP_SRC_CMPSSB9 

Trip source is CMPSSB9 signal.

◆ EPWM_DiodeEmulationSignal

Enumerator
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

Function Documentation

◆ EPWM_setTimeBaseCounter()

static void EPWM_setTimeBaseCounter ( uint32_t  base,
uint16_t  count 
)
inlinestatic

Set the time base count

Parameters
baseis the base address of the EPWM module.
countis the time base count value.

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

Returns
None.

◆ EPWM_setCountModeAfterSync()

static void EPWM_setCountModeAfterSync ( uint32_t  base,
EPWM_SyncCountMode  mode 
)
inlinestatic

Set count mode after phase shift sync

Parameters
baseis the base address of the EPWM module.
modeis the count mode.

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
Returns
None.

◆ EPWM_setClockPrescaler()

static void EPWM_setClockPrescaler ( uint32_t  base,
EPWM_ClockDivider  prescaler,
EPWM_HSClockDivider  highSpeedPrescaler 
)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.
prescaleris the time base count pre scale value.
highSpeedPrescaleris the high speed time base count pre scale value.

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)

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

Returns
None.

◆ EPWM_forceSyncPulse()

static void EPWM_forceSyncPulse ( uint32_t  base)
inlinestatic

Force a software sync pulse

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setSyncInPulseSource()

static void EPWM_setSyncInPulseSource ( uint32_t  base,
EPWM_SyncInPulseSource  source 
)
inlinestatic

Set up the source for sync-in pulse.

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

This function set the sync in pulse source. Valid values for source are:

  • EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_EPWM1-32 - sync-in pulse source can be any of the EPWM1-32 sync-out signal
  • EPWM_SYNC_IN_PULSE_SRC_SYNCOUT_ECAP1-10 - sync-in pulse source can be selected as any of the ECAP1-10 sync-out signal
  • EPWM_SYNC_IN_PULSE_SRC_INPUTXBAR_OUT4, 20 - sync-in pulse source can be selected as any of the Input xbar out4 and 20 signal
  • EPWM_SYNC_IN_PULSE_SRC_C2K_TIMESYNC_XBAR_PWM_OUT0-1 - sync-in pulse source can be selected as any of the timesync xbar pwm out0-1
  • EPWM_SYNC_IN_PULSE_SRC_FSIRX[0-3]_RX_TRIG[0-3] - sync-in pulse source can be selected as any of fsirx[0-3] rx trig[0-3] signal
  • EPWM_SYNC_IN_PULSE_SRC_DISABLE - sync-in pulse is disabled for the EPWM module
Returns
None.

◆ EPWM_enableSyncOutPulseSource()

static void EPWM_enableSyncOutPulseSource ( uint32_t  base,
uint16_t  source 
)
inlinestatic

Enables sync-out pulse source.

Parameters
baseis the base address of the EPWM module.
sourceis the 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 or by EPWMxSYNCI signal.
  • 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
Returns
None.

◆ EPWM_disableSyncOutPulseSource()

static void EPWM_disableSyncOutPulseSource ( uint32_t  base,
uint16_t  source 
)
inlinestatic

Disables sync-out pulse source.

Parameters
baseis the base address of the EPWM module.
sourceis the 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
Returns
None.

◆ EPWM_setOneShotSyncOutTrigger()

static void EPWM_setOneShotSyncOutTrigger ( uint32_t  base,
EPWM_OneShotSyncOutTrigger  trigger 
)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.
triggeris the one-shot sync-out signal 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.
Returns
None.

◆ EPWM_setPeriodLoadMode()

static void EPWM_setPeriodLoadMode ( uint32_t  base,
EPWM_PeriodLoadMode  loadMode 
)
inlinestatic

Set PWM period load mode.

Parameters
baseis the base address of the EPWM module.
loadModeis the 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.

Returns
None.

◆ EPWM_enablePhaseShiftLoad()

static void EPWM_enablePhaseShiftLoad ( uint32_t  base)
inlinestatic

Enable phase shift load

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_disablePhaseShiftLoad()

static void EPWM_disablePhaseShiftLoad ( uint32_t  base)
inlinestatic

Disable phase shift load

Parameters
baseis the base address of the EPWM module.

This function disables loading of phase shift.

Returns
None.

◆ EPWM_setTimeBaseCounterMode()

static void EPWM_setTimeBaseCounterMode ( uint32_t  base,
EPWM_TimeBaseCountMode  counterMode 
)
inlinestatic

Set time base counter mode

Parameters
baseis the base address of the EPWM module.
counterModeis the 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.
Returns
None.

◆ EPWM_selectPeriodLoadEvent()

static void EPWM_selectPeriodLoadEvent ( uint32_t  base,
EPWM_PeriodShadowLoadMode  shadowLoadMode 
)
inlinestatic

Set shadow to active period load on sync mode

Parameters
baseis the base address of the EPWM module.
shadowLoadModeis the shadow to active load 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.
Returns
None.

◆ EPWM_enableOneShotSync()

static void EPWM_enableOneShotSync ( uint32_t  base)
inlinestatic

Enable one shot sync mode

Parameters
baseis the base address of the EPWM module.

This function enables one shot sync mode.

Returns
None.

◆ EPWM_disableOneShotSync()

static void EPWM_disableOneShotSync ( uint32_t  base)
inlinestatic

Disable one shot sync mode

Parameters
baseis the base address of the EPWM module.

This function disables one shot sync mode.

Returns
None.

◆ EPWM_startOneShotSync()

static void EPWM_startOneShotSync ( uint32_t  base)
inlinestatic

Start one shot sync mode

Parameters
baseis the base address of the EPWM module.

This function propagates a one shot sync pulse.

Returns
None.

◆ EPWM_getTimeBaseCounterValue()

static uint16_t EPWM_getTimeBaseCounterValue ( uint32_t  base)
inlinestatic

Returns time base counter value.

Parameters
baseis the base address of the EPWM module.

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

Returns
returns time base counter value

◆ EPWM_getTimeBaseCounterOverflowStatus()

static bool EPWM_getTimeBaseCounterOverflowStatus ( uint32_t  base)
inlinestatic

Return time base counter maximum status.

Parameters
baseis the base address of the EPWM module.

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

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

◆ EPWM_clearTimeBaseCounterOverflowEvent()

static void EPWM_clearTimeBaseCounterOverflowEvent ( uint32_t  base)
inlinestatic

Clear max time base counter event.

Parameters
baseis the base address of the EPWM module.

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.

Returns
None.

◆ EPWM_getSyncStatus()

static bool EPWM_getSyncStatus ( uint32_t  base)
inlinestatic

Return external sync signal status.

Parameters
baseis the base address of the EPWM module.

This function returns the external sync signal status.

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

◆ EPWM_clearSyncEvent()

static void EPWM_clearSyncEvent ( uint32_t  base)
inlinestatic

Clear external sync signal event.

Parameters
baseis the base address of the EPWM module.

This function clears the external sync signal latch event.

Returns
None.

◆ EPWM_getTimeBaseCounterDirection()

static uint16_t EPWM_getTimeBaseCounterDirection ( uint32_t  base)
inlinestatic

Return time base counter direction.

Parameters
baseis the base address of the EPWM module.

This function returns the direction of the time base counter.

Returns
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.

◆ EPWM_setPhaseShift()

static void EPWM_setPhaseShift ( uint32_t  base,
uint16_t  phaseCount 
)
inlinestatic

Sets the phase shift offset counter value.

Parameters
baseis the base address of the EPWM module.
phaseCountis the phase shift count 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.

Returns
None.

◆ EPWM_setTimeBasePeriod()

static void EPWM_setTimeBasePeriod ( uint32_t  base,
uint16_t  periodCount 
)
inlinestatic

Sets the PWM period count.

Parameters
baseis the base address of the EPWM module.
periodCountis period count value.

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

Returns
None.

◆ EPWM_getTimeBasePeriod()

static uint16_t EPWM_getTimeBasePeriod ( uint32_t  base)
inlinestatic

Gets the PWM period count.

Parameters
baseis the base address of the EPWM module.

This function gets the period of the PWM count.

Returns
The period count value.

◆ EPWM_setupEPWMLinks()

static void EPWM_setupEPWMLinks ( uint32_t  base,
EPWM_CurrentLink  epwmLink,
EPWM_LinkComponent  linkComp 
)
inlinestatic

Sets the EPWM links.

Parameters
baseis the base address of the EPWM module.
epwmLinkis the ePWM instance to link with.
linkCompis the ePWM component to link.

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_0 - link current ePWM with ePWM0
  • 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
  • EPWM_LINK_WITH_EPWM_17 - link current ePWM with ePWM17
  • EPWM_LINK_WITH_EPWM_18 - link current ePWM with ePWM18
  • EPWM_LINK_WITH_EPWM_19 - link current ePWM with ePWM19
  • EPWM_LINK_WITH_EPWM_20 - link current ePWM with ePWM20
  • EPWM_LINK_WITH_EPWM_21 - link current ePWM with ePWM21
  • EPWM_LINK_WITH_EPWM_22 - link current ePWM with ePWM22
  • EPWM_LINK_WITH_EPWM_23 - link current ePWM with ePWM23
  • EPWM_LINK_WITH_EPWM_24 - link current ePWM with ePWM24
  • EPWM_LINK_WITH_EPWM_25 - link current ePWM with ePWM25
  • EPWM_LINK_WITH_EPWM_26 - link current ePWM with ePWM26
  • EPWM_LINK_WITH_EPWM_27 - link current ePWM with ePWM27
  • EPWM_LINK_WITH_EPWM_28 - link current ePWM with ePWM28
  • EPWM_LINK_WITH_EPWM_29 - link current ePWM with ePWM29
  • EPWM_LINK_WITH_EPWM_30 - link current ePWM with ePWM30
  • EPWM_LINK_WITH_EPWM_31 - link current ePWM with ePWM31

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
Returns
None.

◆ EPWM_setCounterCompareShadowLoadMode()

static void EPWM_setCounterCompareShadowLoadMode ( uint32_t  base,
EPWM_CounterCompareModule  compModule,
EPWM_CounterCompareLoadMode  loadMode 
)
inlinestatic

Sets up the Counter Compare shadow load mode

Parameters
baseis the base address of the EPWM module.
compModuleis the counter compare module.
loadModeis the shadow to active 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
Returns
None.

◆ EPWM_disableCounterCompareShadowLoadMode()

static void EPWM_disableCounterCompareShadowLoadMode ( uint32_t  base,
EPWM_CounterCompareModule  compModule 
)
inlinestatic

Disable Counter Compare shadow load mode

Parameters
baseis the base address of the EPWM module.
compModuleis the counter compare module.

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.
Returns
None.

◆ EPWM_setCounterCompareValue()

static void EPWM_setCounterCompareValue ( uint32_t  base,
EPWM_CounterCompareModule  compModule,
uint16_t  compCount 
)
inlinestatic

Set counter compare values.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare value module.
compCountis the counter compare count value.

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.
Returns
None.

◆ EPWM_getCounterCompareValue()

static uint16_t EPWM_getCounterCompareValue ( uint32_t  base,
EPWM_CounterCompareModule  compModule 
)
inlinestatic

Get counter compare values.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare value module.

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.
Returns
The counter compare count value.

◆ EPWM_getCounterCompareShadowStatus()

static bool EPWM_getCounterCompareShadowStatus ( uint32_t  base,
EPWM_CounterCompareModule  compModule 
)
inlinestatic

Return the counter compare shadow register full status.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare value module.

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.
Returns
Returns true if the shadow register is full. Returns false if the shadow register is not full.

◆ EPWM_setActionQualifierShadowLoadMode()

static void EPWM_setActionQualifierShadowLoadMode ( uint32_t  base,
EPWM_ActionQualifierModule  aqModule,
EPWM_ActionQualifierLoadMode  loadMode 
)
inlinestatic

Sets the Action Qualifier shadow load mode

Parameters
baseis the base address of the EPWM module.
aqModuleis the Action Qualifier module value.
loadModeis the shadow to active 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
Returns
None.

◆ EPWM_disableActionQualifierShadowLoadMode()

static void EPWM_disableActionQualifierShadowLoadMode ( uint32_t  base,
EPWM_ActionQualifierModule  aqModule 
)
inlinestatic

Disable Action Qualifier shadow load mode

Parameters
baseis the base address of the EPWM module.
aqModuleis the Action Qualifier module value.

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.
Returns
None.

◆ EPWM_setActionQualifierT1TriggerSource()

static void EPWM_setActionQualifierT1TriggerSource ( uint32_t  base,
EPWM_ActionQualifierTriggerSource  trigger 
)
inlinestatic

Set up Action qualifier trigger source for event T1

Parameters
baseis the base address of the EPWM module.
triggersources for Action Qualifier triggers.

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
Returns
None.

◆ EPWM_setActionQualifierT2TriggerSource()

static void EPWM_setActionQualifierT2TriggerSource ( uint32_t  base,
EPWM_ActionQualifierTriggerSource  trigger 
)
inlinestatic

Set up Action qualifier trigger source for event T2

Parameters
baseis the base address of the EPWM module.
triggersources for Action Qualifier triggers.

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
Returns
None.

◆ EPWM_setActionQualifierAction()

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

Set up Action qualifier outputs

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.
outputis the Action Qualifier output.
eventis the event that causes a change in output.

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
Returns
None.

◆ EPWM_setActionQualifierActionComplete()

static void EPWM_setActionQualifierActionComplete ( uint32_t  base,
EPWM_ActionQualifierOutputModule  epwmOutput,
EPWM_ActionQualifierEventAction  action 
)
inlinestatic

Set up Action qualifier event outputs

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.
actionis the desired action when the specified event occurs

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 - Timebase 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

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.

Returns
None.

◆ EPWM_setAdditionalActionQualifierActionComplete()

static void EPWM_setAdditionalActionQualifierActionComplete ( uint32_t  base,
EPWM_ActionQualifierOutputModule  epwmOutput,
EPWM_AdditionalActionQualifierEventAction  action 
)
inlinestatic

Set up Additional action qualifier event outputs

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.
actionis the desired action when the specified event occurs

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

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

Returns
None.

◆ EPWM_setActionQualifierContSWForceShadowMode()

static void EPWM_setActionQualifierContSWForceShadowMode ( uint32_t  base,
EPWM_ActionQualifierContForce  mode 
)
inlinestatic

Sets up Action qualifier continuous software load mode.

Parameters
baseis the base address of the EPWM module.
modeis the mode for shadow to active 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
Returns
None.

◆ EPWM_setActionQualifierContSWForceAction()

static void EPWM_setActionQualifierContSWForceAction ( uint32_t  base,
EPWM_ActionQualifierOutputModule  epwmOutput,
EPWM_ActionQualifierSWOutput  output 
)
inlinestatic

Triggers a continuous software forced event.

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.
outputis the Action Qualifier output.

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
Returns
None.

◆ EPWM_setActionQualifierSWAction()

static void EPWM_setActionQualifierSWAction ( uint32_t  base,
EPWM_ActionQualifierOutputModule  epwmOutput,
EPWM_ActionQualifierOutput  output 
)
inlinestatic

Set up one time software forced Action qualifier outputs

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.
outputis the Action Qualifier output.

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
Returns
None.

◆ EPWM_forceActionQualifierSWAction()

static void EPWM_forceActionQualifierSWAction ( uint32_t  base,
EPWM_ActionQualifierOutputModule  epwmOutput 
)
inlinestatic

Triggers a one time software forced event on Action qualifier

Parameters
baseis the base address of the EPWM module.
epwmOutputis the ePWM pin type.

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
Returns
None.

◆ EPWM_setDeadBandOutputSwapMode()

static void EPWM_setDeadBandOutputSwapMode ( uint32_t  base,
EPWM_DeadBandOutput  output,
bool  enableSwapMode 
)
inlinestatic

Sets Dead Band signal output swap mode.

Parameters
baseis the base address of the EPWM module.
outputis the ePWM Dead Band output.
enableSwapModeis the 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.
Returns
None.

◆ EPWM_setDeadBandDelayMode()

static void EPWM_setDeadBandDelayMode ( uint32_t  base,
EPWM_DeadBandDelayMode  delayMode,
bool  enableDelayMode 
)
inlinestatic

Sets Dead Band signal output mode.

Parameters
baseis the base address of the EPWM module.
delayModeis the Dead Band delay type.
enableDelayModeis the dead band delay 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.
Returns
None.

◆ EPWM_setDeadBandDelayPolarity()

static void EPWM_setDeadBandDelayPolarity ( uint32_t  base,
EPWM_DeadBandDelayMode  delayMode,
EPWM_DeadBandPolarity  polarity 
)
inlinestatic

Sets Dead Band delay polarity.

Parameters
baseis the base address of the EPWM module.
delayModeis the Dead Band delay type.
polarityis the polarity of the delayed signal.

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.
Returns
None.

◆ EPWM_setRisingEdgeDeadBandDelayInput()

static void EPWM_setRisingEdgeDeadBandDelayInput ( uint32_t  base,
uint16_t  input 
)
inlinestatic

Sets Rising Edge Dead Band delay input.

Parameters
baseis the base address of the EPWM module.
inputis the input signal to the dead band.

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)
Returns
None.

◆ EPWM_setFallingEdgeDeadBandDelayInput()

static void EPWM_setFallingEdgeDeadBandDelayInput ( uint32_t  base,
uint16_t  input 
)
inlinestatic

Sets Dead Band delay input.

Parameters
baseis the base address of the EPWM module.
inputis the input signal to the dead band.

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)
Returns
None.

◆ EPWM_setDeadBandControlShadowLoadMode()

static void EPWM_setDeadBandControlShadowLoadMode ( uint32_t  base,
EPWM_DeadBandControlLoadMode  loadMode 
)
inlinestatic

Set the Dead Band control shadow load mode.

Parameters
baseis the base address of the EPWM module.
loadModeis the shadow to active 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.
Returns
None.

◆ EPWM_disableDeadBandControlShadowLoadMode()

static void EPWM_disableDeadBandControlShadowLoadMode ( uint32_t  base)
inlinestatic

Disable Dead Band control shadow load mode.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setRisingEdgeDelayCountShadowLoadMode()

static void EPWM_setRisingEdgeDelayCountShadowLoadMode ( uint32_t  base,
EPWM_RisingEdgeDelayLoadMode  loadMode 
)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.
loadModeis the shadow to active load event.

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.
Returns
None.

◆ EPWM_disableRisingEdgeDelayCountShadowLoadMode()

static void EPWM_disableRisingEdgeDelayCountShadowLoadMode ( uint32_t  base)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setFallingEdgeDelayCountShadowLoadMode()

static void EPWM_setFallingEdgeDelayCountShadowLoadMode ( uint32_t  base,
EPWM_FallingEdgeDelayLoadMode  loadMode 
)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.
loadModeis the shadow to active load event.

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.
Returns
None.

◆ EPWM_disableFallingEdgeDelayCountShadowLoadMode()

static void EPWM_disableFallingEdgeDelayCountShadowLoadMode ( uint32_t  base)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setDeadBandCounterClock()

static void EPWM_setDeadBandCounterClock ( uint32_t  base,
EPWM_DeadBandClockMode  clockMode 
)
inlinestatic

Sets Dead Band Counter clock rate.

Parameters
baseis the base address of the EPWM module.
clockModeis the Dead Band counter clock mode.

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.
Returns
None.

◆ EPWM_setRisingEdgeDelayCount()

static void EPWM_setRisingEdgeDelayCount ( uint32_t  base,
uint16_t  redCount 
)
inlinestatic

Set ePWM RED count

Parameters
baseis the base address of the EPWM module.
redCountis the RED(Rising Edge Delay) count.

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

Returns
None.

◆ EPWM_setFallingEdgeDelayCount()

static void EPWM_setFallingEdgeDelayCount ( uint32_t  base,
uint16_t  fedCount 
)
inlinestatic

Set ePWM FED count

Parameters
baseis the base address of the EPWM module.
fedCountis the FED(Falling Edge Delay) count.

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

Returns
None.

◆ EPWM_enableChopper()

static void EPWM_enableChopper ( uint32_t  base)
inlinestatic

Enable chopper mode

Parameters
baseis the base address of the EPWM module.

This function enables ePWM chopper module.

Returns
None.

◆ EPWM_disableChopper()

static void EPWM_disableChopper ( uint32_t  base)
inlinestatic

Disable chopper mode

Parameters
baseis the base address of the EPWM module.

This function disables ePWM chopper module.

Returns
None.

◆ EPWM_setChopperDutyCycle()

static void EPWM_setChopperDutyCycle ( uint32_t  base,
uint16_t  dutyCycleCount 
)
inlinestatic

Set chopper duty cycle.

Parameters
baseis the base address of the EPWM module.
dutyCycleCountis the chopping clock duty cycle count.

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

Returns
None.

◆ EPWM_setChopperFreq()

static void EPWM_setChopperFreq ( uint32_t  base,
uint16_t  freqDiv 
)
inlinestatic

Set chopper clock frequency scaler.

Parameters
baseis the base address of the EPWM module.
freqDivis the chopping clock frequency divider.

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)

Returns
None.

◆ EPWM_setChopperFirstPulseWidth()

static void EPWM_setChopperFirstPulseWidth ( uint32_t  base,
uint16_t  firstPulseWidth 
)
inlinestatic

Set chopper clock frequency scaler.

Parameters
baseis the base address of the EPWM module.
firstPulseWidthis the width of the first pulse.

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)

Returns
None.

◆ EPWM_enableTripZoneSignals()

static void EPWM_enableTripZoneSignals ( uint32_t  base,
uint32_t  tzSignal 
)
inlinestatic

Enables Trip Zone signal.

Parameters
baseis the base address of the EPWM module.
tzSignalis the 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

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

Returns
None.

◆ EPWM_disableTripZoneSignals()

static void EPWM_disableTripZoneSignals ( uint32_t  base,
uint32_t  tzSignal 
)
inlinestatic

Disables Trip Zone signal.

Parameters
baseis the base address of the EPWM module.
tzSignalis the 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

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

Returns
None.

◆ EPWM_setTripZoneDigitalCompareEventCondition()

static void EPWM_setTripZoneDigitalCompareEventCondition ( uint32_t  base,
EPWM_TripZoneDigitalCompareOutput  dcType,
EPWM_TripZoneDigitalCompareOutputEvent  dcEvent 
)
inlinestatic

Set Digital compare conditions that cause Trip Zone event.

Parameters
baseis the base address of the EPWM module.
dcTypeis the Digital compare output type.
dcEventis the Digital Compare output 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
Note
x in DCxH/DCxL represents DCAH/DCAL or DCBH/DCBL
Returns
None.

◆ EPWM_enableTripZoneAdvAction()

static void EPWM_enableTripZoneAdvAction ( uint32_t  base)
inlinestatic

Enable advanced Trip Zone event Action.

Parameters
baseis the base address of the EPWM module.

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.

Returns
None.

◆ EPWM_disableTripZoneAdvAction()

static void EPWM_disableTripZoneAdvAction ( uint32_t  base)
inlinestatic

Disable advanced Trip Zone event Action.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setTripZoneAction()

static void EPWM_setTripZoneAction ( uint32_t  base,
EPWM_TripZoneEvent  tzEvent,
EPWM_TripZoneAction  tzAction 
)
inlinestatic

Set Trip Zone Action.

Parameters
baseis the base address of the EPWM module.
tzEventis the Trip Zone event type.
tzActionis the 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
Note
Disable the advanced Trip Zone event using EPWM_disableTripZoneAdvAction() before calling this function.
This function operates on both ePWMA and ePWMB depending on the tzEvent parameter.
Returns
None.

◆ EPWM_setTripZoneAdvAction()

static void EPWM_setTripZoneAdvAction ( uint32_t  base,
EPWM_TripZoneAdvancedEvent  tzAdvEvent,
EPWM_TripZoneAdvancedAction  tzAdvAction 
)
inlinestatic

Set Advanced Trip Zone Action.

Parameters
baseis the base address of the EPWM module.
tzAdvEventis the Trip Zone event type.
tzAdvActionis the Trip zone Action.

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

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.
This function operates on both ePWMA and ePWMB depending on the tzAdvEvent parameter.
Advanced Trip Zone events take into consideration the direction of the counter in addition to Trip Zone events.
Returns
None.

◆ EPWM_setTripZoneAdvDigitalCompareActionA()

static void EPWM_setTripZoneAdvDigitalCompareActionA ( uint32_t  base,
EPWM_TripZoneAdvDigitalCompareEvent  tzAdvDCEvent,
EPWM_TripZoneAdvancedAction  tzAdvDCAction 
)
inlinestatic

Set Advanced Digital Compare Trip Zone Action on ePWMA.

Parameters
baseis the base address of the EPWM module.
tzAdvDCEventis the Digital Compare Trip Zone event type.
tzAdvDCActionis the Digital Compare Trip zone Action.

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
Note
This function enables the advanced Trip Zone event.
Advanced Trip Zone events take into consideration the direction of the counter in addition to Digital Compare Trip Zone events.
Returns
None.

◆ EPWM_setTripZoneAdvDigitalCompareActionB()

static void EPWM_setTripZoneAdvDigitalCompareActionB ( uint32_t  base,
EPWM_TripZoneAdvDigitalCompareEvent  tzAdvDCEvent,
EPWM_TripZoneAdvancedAction  tzAdvDCAction 
)
inlinestatic

Set Advanced Digital Compare Trip Zone Action on ePWMB.

Parameters
baseis the base address of the EPWM module.
tzAdvDCEventis the Digital Compare Trip Zone event type.
tzAdvDCActionis the Digital Compare Trip zone Action.

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
Note
This function enables the advanced Trip Zone event.
Advanced Trip Zone events take into consideration the direction of the counter in addition to Digital Compare Trip Zone events.
Returns
None.

◆ EPWM_enableTripZoneInterrupt()

static void EPWM_enableTripZoneInterrupt ( uint32_t  base,
uint16_t  tzInterrupt 
)
inlinestatic

Enable Trip Zone interrupts.

Parameters
baseis the base address of the EPWM module.
tzInterruptis the Trip Zone interrupt.

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

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

Returns
None.

◆ EPWM_disableTripZoneInterrupt()

static void EPWM_disableTripZoneInterrupt ( uint32_t  base,
uint16_t  tzInterrupt 
)
inlinestatic

Disable Trip Zone interrupts.

Parameters
baseis the base address of the EPWM module.
tzInterruptis the Trip Zone interrupt.

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

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

Returns
None.

◆ EPWM_getTripZoneFlagStatus()

static uint16_t EPWM_getTripZoneFlagStatus ( uint32_t  base)
inlinestatic

Gets the Trip Zone status flag

Parameters
baseis the base address of the EPWM module.

This function returns the Trip Zone status flag.

Returns
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_getCycleByCycleTripZoneFlagStatus()

static uint16_t EPWM_getCycleByCycleTripZoneFlagStatus ( uint32_t  base)
inlinestatic

Gets the Trip Zone Cycle by Cycle flag status

Parameters
baseis the base address of the EPWM module.

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

Returns
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

◆ EPWM_getOneShotTripZoneFlagStatus()

static uint16_t EPWM_getOneShotTripZoneFlagStatus ( uint32_t  base)
inlinestatic

Gets the Trip Zone One Shot flag status

Parameters
baseis the base address of the EPWM module.

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

Returns
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_selectCycleByCycleTripZoneClearEvent()

static void EPWM_selectCycleByCycleTripZoneClearEvent ( uint32_t  base,
EPWM_CycleByCycleTripZoneClearMode  clearEvent 
)
inlinestatic

Set the Trip Zone CBC pulse clear event.

Parameters
baseis the base address of the EPWM module.
clearEventis the CBC trip zone 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
Returns
None.

◆ EPWM_clearTripZoneFlag()

static void EPWM_clearTripZoneFlag ( uint32_t  base,
uint16_t  tzFlags 
)
inlinestatic

Clear Trip Zone flag

Parameters
baseis the base address of the EPWM module.
tzFlagsis the Trip Zone flags.

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

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

Returns
None.

◆ EPWM_clearCycleByCycleTripZoneFlag()

static void EPWM_clearCycleByCycleTripZoneFlag ( uint32_t  base,
uint16_t  tzCBCFlags 
)
inlinestatic

Clear the Trip Zone Cycle by Cycle flag.

Parameters
baseis the base address of the EPWM module.
tzCBCFlagsis the CBC flag to be cleared.

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
Returns
None.

◆ EPWM_clearOneShotTripZoneFlag()

static void EPWM_clearOneShotTripZoneFlag ( uint32_t  base,
uint16_t  tzOSTFlags 
)
inlinestatic

Clear the Trip Zone One Shot flag.

Parameters
baseis the base address of the EPWM module.
tzOSTFlagsis the OST flags to be cleared.

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_CBC_FLAG_CAPEVT - CBC status flag for capture event
Returns
None.

◆ EPWM_forceTripZoneEvent()

static void EPWM_forceTripZoneEvent ( uint32_t  base,
uint16_t  tzForceEvent 
)
inlinestatic

Force Trip Zone events.

Parameters
baseis the base address of the EPWM module.
tzForceEventis the forced Trip Zone event.

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
Returns
None.

◆ EPWM_enableTripZoneOutput()

static void EPWM_enableTripZoneOutput ( uint32_t  base,
uint16_t  tzOutput 
)
inlinestatic

Enable Trip Zone outputs.

Parameters
baseis the base address of the EPWM module.
tzOutputis the mask of Trip Zone signals to be enabled.

This function enables Trip Zone outputs. We can enable multiple signals by passing a mask to the function. Mask can be created by doing logical OR of the following macros:

  • EPWM_TZ_SELECT_TRIPOUT_OST, EPWM_TZ_SELECT_TRIPOUT_CBC,
  • EPWM_TZ_SELECT_TRIPOUT_TZ[1-6], EPWM_TZ_SELECT_TRIPOUT_CAPEVT
  • EPWM_TZ_SELECT_TRIPOUT_DC[A-B]EVT[1-2].
Returns
None.

◆ EPWM_disableTripZoneOutput()

static void EPWM_disableTripZoneOutput ( uint32_t  base,
uint16_t  tzOutput 
)
inlinestatic

Disable Trip Zone outputs.

Parameters
baseis the base address of the EPWM module.
tzOutputis the mask of Trip Zone signals to be disabled.

This function disables Trip Zone outputs. We can disable multiple signals by passing a mask to the function. Mask can be created by doing logical OR of the following macros:

  • EPWM_TZ_SELECT_TRIPOUT_OST, EPWM_TZ_SELECT_TRIPOUT_CBC,
  • EPWM_TZ_SELECT_TRIPOUT_TZ[1-6], EPWM_TZ_SELECT_TRIPOUT_CAPEVT
  • EPWM_TZ_SELECT_TRIPOUT_DC[A-B]EVT[1-2].
Returns
None.

◆ EPWM_enableInterrupt()

static void EPWM_enableInterrupt ( uint32_t  base)
inlinestatic

Enable ePWM interrupt.

Parameters
baseis the base address of the EPWM module.

This function enables the ePWM interrupt.

Returns
None.

◆ EPWM_disableInterrupt()

static void EPWM_disableInterrupt ( uint32_t  base)
inlinestatic

disable ePWM interrupt.

Parameters
baseis the base address of the EPWM module.

This function disables the ePWM interrupt.

Returns
None.

◆ EPWM_setInterruptSource()

static void EPWM_setInterruptSource ( uint32_t  base,
uint16_t  interruptSource,
uint16_t  mixedSource 
)
inlinestatic

Sets the ePWM interrupt source.

Parameters
baseis the base address of the EPWM module.
interruptSourceis the ePWM interrupt source.
mixedSourceis the set of mixed signals to be enabled.

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

  • EPWM_INT_TBCTR_ZERO - Time-base counter equal to zero
  • EPWM_INT_TBCTR_PERIOD - Time-base counter equal to period
  • EPWM_INT_TBCTR_ETINT_MIX - Time-base counter event according to mix event
  • 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
Returns
None.

◆ EPWM_setInterruptEventCount()

static void EPWM_setInterruptEventCount ( uint32_t  base,
uint16_t  eventCount 
)
inlinestatic

Sets the ePWM interrupt event counts.

Parameters
baseis the base address of the EPWM module.
eventCountis the event count for interrupt scale

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.

Returns
None.

◆ EPWM_getEventTriggerInterruptStatus()

static bool EPWM_getEventTriggerInterruptStatus ( uint32_t  base)
inlinestatic

Return the interrupt status.

Parameters
baseis the base address of the EPWM module.

This function returns the ePWM interrupt status. Note This function doesn't return the Trip Zone status.

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

◆ EPWM_clearEventTriggerInterruptFlag()

static void EPWM_clearEventTriggerInterruptFlag ( uint32_t  base)
inlinestatic

Clear interrupt flag.

Parameters
baseis the base address of the EPWM module.

This function clears the ePWM interrupt flag.

Returns
None

◆ EPWM_enableInterruptEventCountInit()

static void EPWM_enableInterruptEventCountInit ( uint32_t  base)
inlinestatic

Enable Pre-interrupt count load.

Parameters
baseis the base address of the EPWM module.

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

Note
This is valid only for advanced/expanded interrupt mode
Returns
None.

◆ EPWM_disableInterruptEventCountInit()

static void EPWM_disableInterruptEventCountInit ( uint32_t  base)
inlinestatic

Disable interrupt count load.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_forceInterruptEventCountInit()

static void EPWM_forceInterruptEventCountInit ( uint32_t  base)
inlinestatic

Force a software pre interrupt event counter load.

Parameters
baseis the base address of the EPWM module.

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

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

◆ EPWM_setInterruptEventCountInitValue()

static void EPWM_setInterruptEventCountInitValue ( uint32_t  base,
uint16_t  eventCount 
)
inlinestatic

Set interrupt count.

Parameters
baseis the base address of the EPWM module.
eventCountis the ePWM interrupt count value.

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.

Returns
None.

◆ EPWM_getInterruptEventCount()

static uint16_t EPWM_getInterruptEventCount ( uint32_t  base)
inlinestatic

Get the interrupt count.

Parameters
baseis the base address of the EPWM module.

This function returns the ePWM interrupt event count.

Returns
The interrupt event counts that have occurred.

◆ EPWM_forceEventTriggerInterrupt()

static void EPWM_forceEventTriggerInterrupt ( uint32_t  base)
inlinestatic

Force ePWM interrupt.

Parameters
baseis the base address of the EPWM module.

This function forces an ePWM interrupt.

Returns
None

◆ EPWM_enableADCTrigger()

static void EPWM_enableADCTrigger ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Enable ADC SOC event.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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
Returns
None.

◆ EPWM_disableADCTrigger()

static void EPWM_disableADCTrigger ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Disable ADC SOC event.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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
Returns
None.

◆ EPWM_setADCTriggerSource()

static void EPWM_setADCTriggerSource ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType,
EPWM_ADCStartOfConversionSource  socSource,
uint16_t  mixedSource 
)
inlinestatic

Sets the ePWM SOC source.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.
socSourceis the SOC source.
mixedSourceis the set of mixed signals to be enabled.

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_ZERO_OR_PERIOD - Time-base counter equal to zero or period
    • 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
Returns
None.

◆ EPWM_setADCTriggerEventPrescale()

static void EPWM_setADCTriggerEventPrescale ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType,
uint16_t  preScaleCount 
)
inlinestatic

Sets the ePWM SOC event counts.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.
preScaleCountis the event count number.

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.
Note
A preScaleCount value of 0 disables the prescale.
Returns
None.

◆ EPWM_getADCTriggerFlagStatus()

static bool EPWM_getADCTriggerFlagStatus ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Return the SOC event status.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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

  • EPWM_SOC_A - SOC A
  • EPWM_SOC_B - SOC B
Returns
Returns true if the selected adcSOCType SOC was generated. Returns false if the selected adcSOCType SOC was not generated.

◆ EPWM_clearADCTriggerFlag()

static void EPWM_clearADCTriggerFlag ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Clear SOC flag.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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

  • EPWM_SOC_A - SOC A
  • EPWM_SOC_B - SOC B
Returns
None

◆ EPWM_enableADCTriggerEventCountInit()

static void EPWM_enableADCTriggerEventCountInit ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Enable Pre-SOC event count load.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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
Note
This is valid only for advanced/expanded SOC mode
Returns
None.

◆ EPWM_disableADCTriggerEventCountInit()

static void EPWM_disableADCTriggerEventCountInit ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Disable Pre-SOC event count load.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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
Note
This is valid only for advanced/expanded SOC mode
Returns
None.

◆ EPWM_forceADCTriggerEventCountInit()

static void EPWM_forceADCTriggerEventCountInit ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Force a software pre SOC event counter load.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type

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

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

◆ EPWM_setADCTriggerEventCountInitValue()

static void EPWM_setADCTriggerEventCountInitValue ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType,
uint16_t  eventCount 
)
inlinestatic

Set ADC Trigger count values.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.
eventCountis the ePWM interrupt count value.

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.
Returns
None.

◆ EPWM_getADCTriggerEventCount()

static uint16_t EPWM_getADCTriggerEventCount ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Get the SOC event count.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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

  • EPWM_SOC_A - SOC A
  • EPWM_SOC_B - SOC B
Returns
The SOC event counts that have occurred.

◆ EPWM_forceADCTrigger()

static void EPWM_forceADCTrigger ( uint32_t  base,
EPWM_ADCStartOfConversionType  adcSOCType 
)
inlinestatic

Force SOC event.

Parameters
baseis the base address of the EPWM module.
adcSOCTypeis the ADC SOC type.

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

  • EPWM_SOC_A - SOC A
  • EPWM_SOC_B - SOC B
Returns
None

◆ EPWM_selectDigitalCompareTripInput()

static void EPWM_selectDigitalCompareTripInput ( uint32_t  base,
EPWM_DigitalCompareTripInput  tripSource,
EPWM_DigitalCompareType  dcType 
)
inlinestatic

Set the DC trip input.

Parameters
baseis the base address of the EPWM module.
tripSourceis the tripSource.
dcTypeis the Digital Compare type.

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
  • 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
Returns
None

◆ EPWM_enableDigitalCompareBlankingWindow()

static void EPWM_enableDigitalCompareBlankingWindow ( uint32_t  base)
inlinestatic

Enable DC filter blanking window.

Parameters
baseis the base address of the EPWM module.

This function enables the DC filter blanking window.

Returns
None

◆ EPWM_disableDigitalCompareBlankingWindow()

static void EPWM_disableDigitalCompareBlankingWindow ( uint32_t  base)
inlinestatic

Disable DC filter blanking window.

Parameters
baseis the base address of the EPWM module.

This function disables the DC filter blanking window.

Returns
None

◆ EPWM_enableDigitalCompareWindowInverseMode()

static void EPWM_enableDigitalCompareWindowInverseMode ( uint32_t  base)
inlinestatic

Enable Digital Compare Window inverse mode.

Parameters
baseis the base address of the EPWM module.

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

Returns
None

◆ EPWM_disableDigitalCompareWindowInverseMode()

static void EPWM_disableDigitalCompareWindowInverseMode ( uint32_t  base)
inlinestatic

Disable Digital Compare Window inverse mode.

Parameters
baseis the base address of the EPWM module.

This function disables the Digital Compare Window inverse mode.

Returns
None

◆ EPWM_setDigitalCompareBlankingEvent()

static void EPWM_setDigitalCompareBlankingEvent ( uint32_t  base,
EPWM_DigitalCompareBlankingPulse  blankingPulse,
uint16_t  mixedSource 
)
inlinestatic

Set the Digital Compare filter blanking pulse.

Parameters
baseis the base address of the EPWM module.
blankingPulseis Pulse that starts blanking window.
mixedSourceis the set of mixed signals to be enabled.

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.
Returns
None

◆ EPWM_setDigitalCompareFilterInput()

static void EPWM_setDigitalCompareFilterInput ( uint32_t  base,
EPWM_DigitalCompareFilterInput  filterInput 
)
inlinestatic

Set up the Digital Compare filter input.

Parameters
baseis the base address of the EPWM module.
filterInputis Digital Compare signal source.

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
Returns
None

◆ EPWM_enableDigitalCompareEdgeFilter()

static void EPWM_enableDigitalCompareEdgeFilter ( uint32_t  base)
inlinestatic

Enable Digital Compare Edge Filter.

Parameters
baseis the base address of the EPWM module.

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

Returns
None

◆ EPWM_disableDigitalCompareEdgeFilter()

static void EPWM_disableDigitalCompareEdgeFilter ( uint32_t  base)
inlinestatic

Disable Digital Compare Edge Filter.

Parameters
baseis the base address of the EPWM module.

This function disables the Digital Compare Edge filter.

Returns
None

◆ EPWM_setDigitalCompareEdgeFilterMode()

static void EPWM_setDigitalCompareEdgeFilterMode ( uint32_t  base,
EPWM_DigitalCompareEdgeFilterMode  edgeMode 
)
inlinestatic

Set the Digital Compare Edge Filter Mode.

Parameters
baseis the base address of the EPWM module.
edgeModeis 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
Returns
None

◆ EPWM_setDigitalCompareEdgeFilterEdgeCount()

static void EPWM_setDigitalCompareEdgeFilterEdgeCount ( uint32_t  base,
EPWM_DigitalCompareEdgeFilterEdgeCount  edgeCount 
)
inlinestatic

Set the Digital Compare Edge Filter Edge Count.

Parameters
baseis the base address of the EPWM module.
edgeCountis Digital Compare event filter 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
Returns
None

◆ EPWM_getDigitalCompareEdgeFilterEdgeCount()

static uint16_t EPWM_getDigitalCompareEdgeFilterEdgeCount ( uint32_t  base)
inlinestatic

Returns the Digital Compare Edge Filter Edge Count.

Parameters
baseis the base address of the EPWM module.

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

Returns
Returns the configured DigitalCompare Edge filter edge count.

◆ EPWM_getDigitalCompareEdgeFilterEdgeStatus()

static uint16_t EPWM_getDigitalCompareEdgeFilterEdgeStatus ( uint32_t  base)
inlinestatic

Returns the Digital Compare Edge filter captured edge count status.

Parameters
baseis the base address of the EPWM module.

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

Returns
Returns the count of captured edges

◆ EPWM_setDigitalCompareWindowOffset()

static void EPWM_setDigitalCompareWindowOffset ( uint32_t  base,
uint16_t  windowOffsetCount 
)
inlinestatic

Set up the Digital Compare filter window offset

Parameters
baseis the base address of the EPWM module.
windowOffsetCountis blanking window offset length.

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.

Returns
None

◆ EPWM_setDigitalCompareWindowLength()

static void EPWM_setDigitalCompareWindowLength ( uint32_t  base,
uint16_t  windowLengthCount 
)
inlinestatic

Set up the Digital Compare filter window length

Parameters
baseis the base address of the EPWM module.
windowLengthCountis blanking 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.

Returns
None

◆ EPWM_getDigitalCompareBlankingWindowOffsetCount()

static uint16_t EPWM_getDigitalCompareBlankingWindowOffsetCount ( uint32_t  base)
inlinestatic

Return DC filter blanking window offset count.

Parameters
baseis the base address of the EPWM module.

This function returns DC filter blanking window offset count.

Returns
None

◆ EPWM_getDigitalCompareBlankingWindowLengthCount()

static uint16_t EPWM_getDigitalCompareBlankingWindowLengthCount ( uint32_t  base)
inlinestatic

Return DC filter blanking window length count.

Parameters
baseis the base address of the EPWM module.

This function returns DC filter blanking window length count.

Returns
None

◆ EPWM_setDigitalCompareEventSource()

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

Set up the Digital Compare Event source.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.
dcEventis the Digital Compare Event number.
dcEventSourceis 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 DCEVTFILT.
      Returns
      None

◆ EPWM_setDigitalCompareEventSyncMode()

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

Set up the Digital Compare input sync mode.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.
dcEventis the Digital Compare Event number.
syncModeis the Digital Compare Event 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
Returns
None

◆ EPWM_enableDigitalCompareADCTrigger()

static void EPWM_enableDigitalCompareADCTrigger ( uint32_t  base,
EPWM_DigitalCompareModule  dcModule 
)
inlinestatic

Enable Digital Compare to generate Start of Conversion.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.

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
Returns
None

◆ EPWM_disableDigitalCompareADCTrigger()

static void EPWM_disableDigitalCompareADCTrigger ( uint32_t  base,
EPWM_DigitalCompareModule  dcModule 
)
inlinestatic

Disable Digital Compare from generating Start of Conversion.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.

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
Returns
None

◆ EPWM_enableDigitalCompareSyncEvent()

static void EPWM_enableDigitalCompareSyncEvent ( uint32_t  base,
EPWM_DigitalCompareModule  dcModule 
)
inlinestatic

Enable Digital Compare to generate sync out pulse.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.

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
Returns
None

◆ EPWM_disableDigitalCompareSyncEvent()

static void EPWM_disableDigitalCompareSyncEvent ( uint32_t  base,
EPWM_DigitalCompareModule  dcModule 
)
inlinestatic

Disable Digital Compare from generating Start of Conversion.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.

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
Returns
None

◆ EPWM_setDigitalCompareCBCLatchMode()

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

Set up the Digital Compare CBC latch mode.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.
dcEventis the Digital Compare Event number.
latchModeis 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
Returns
None

◆ EPWM_selectDigitalCompareCBCLatchClearEvent()

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

Sets the Digital Compare CBC latch clear event.

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.
dcEventis the Digital Compare Event number.
clearEventis 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
Returns
None

◆ EPWM_getDigitalCompareCBCLatchStatus()

static bool EPWM_getDigitalCompareCBCLatchStatus ( uint32_t  base,
EPWM_DigitalCompareModule  dcModule,
EPWM_DigitalCompareEvent  dcEvent 
)
inlinestatic

Gets the Digital Compare CBC latch status

Parameters
baseis the base address of the EPWM module.
dcModuleis the Digital Compare module.
dcEventis the Digital Compare Event number.

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
Returns
Returns Digital Compare CBC latch status. -true - CBC latch is enabled -false - CBC latch is disabled

◆ EPWM_enableDigitalCompareCounterCapture()

static void EPWM_enableDigitalCompareCounterCapture ( uint32_t  base)
inlinestatic

Enables the Time Base Counter Capture controller.

Parameters
baseis the base address of the EPWM module.

This function enables the time Base Counter Capture.

Returns
None.

◆ EPWM_disableDigitalCompareCounterCapture()

static void EPWM_disableDigitalCompareCounterCapture ( uint32_t  base)
inlinestatic

Disables the Time Base Counter Capture controller.

Parameters
baseis the base address of the EPWM module.

This function disable the time Base Counter Capture.

Returns
None.

◆ EPWM_setDigitalCompareCounterShadowMode()

static void EPWM_setDigitalCompareCounterShadowMode ( uint32_t  base,
bool  enableShadowMode 
)
inlinestatic

Set the Time Base Counter Capture mode.

Parameters
baseis the base address of the EPWM module.
enableShadowModeis the shadow read mode flag.

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.

Returns
None.

◆ EPWM_getDigitalCompareCaptureStatus()

static bool EPWM_getDigitalCompareCaptureStatus ( uint32_t  base)
inlinestatic

Return the DC Capture event status.

Parameters
baseis the base address of the EPWM module.

This function returns the DC capture event status.

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

◆ EPWM_getDigitalCompareCaptureCount()

static uint16_t EPWM_getDigitalCompareCaptureCount ( uint32_t  base)
inlinestatic

Return the DC Time Base Counter capture value.

Parameters
baseis the base address of the EPWM module.

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.

Returns
Returns the DC Time Base Counter Capture count value.

◆ EPWM_enableDigitalCompareTripCombinationInput()

static void EPWM_enableDigitalCompareTripCombinationInput ( uint32_t  base,
uint16_t  tripInput,
EPWM_DigitalCompareType  dcType 
)
inlinestatic

Enable DC TRIP combinational input.

Parameters
baseis the base address of the EPWM module.
tripInputis the Trip number.
dcTypeis the Digital Compare module.

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

  • tripInput
    • EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,...12,13,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
Returns
None.

◆ EPWM_disableDigitalCompareTripCombinationInput()

static void EPWM_disableDigitalCompareTripCombinationInput ( uint32_t  base,
uint16_t  tripInput,
EPWM_DigitalCompareType  dcType 
)
inlinestatic

Disable DC TRIP combinational input.

Parameters
baseis the base address of the EPWM module.
tripInputis the Trip number.
dcTypeis the Digital Compare module.

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

  • tripInput
    • EPWM_DC_COMBINATIONAL_TRIPINx, where x is 1,2,...12,13,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
Returns
None.

◆ EPWM_enableValleyCapture()

static void EPWM_enableValleyCapture ( uint32_t  base)
inlinestatic

Enable valley capture mode.

Parameters
baseis the base address of the EPWM module.

This function enables Valley Capture mode.

Returns
None.

◆ EPWM_disableValleyCapture()

static void EPWM_disableValleyCapture ( uint32_t  base)
inlinestatic

Disable valley capture mode.

Parameters
baseis the base address of the EPWM module.

This function disables Valley Capture mode.

Returns
None.

◆ EPWM_startValleyCapture()

static void EPWM_startValleyCapture ( uint32_t  base)
inlinestatic

Start valley capture mode.

Parameters
baseis the base address of the EPWM module.

This function starts Valley Capture sequence.

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

Returns
None.

◆ EPWM_setValleyTriggerSource()

static void EPWM_setValleyTriggerSource ( uint32_t  base,
EPWM_ValleyTriggerSource  trigger 
)
inlinestatic

Set valley capture trigger.

Parameters
baseis the base address of the EPWM module.
triggeris the Valley counter trigger.

This function sets the trigger value that initiates Valley Capture sequence

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

Returns
None.

◆ EPWM_setValleyTriggerEdgeCounts()

static void EPWM_setValleyTriggerEdgeCounts ( uint32_t  base,
uint16_t  startCount,
uint16_t  stopCount 
)
inlinestatic

Set valley capture trigger source count.

Parameters
baseis the base address of the EPWM module.
startCount
stopCountThis 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.

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

Returns
None.

◆ EPWM_enableValleyHWDelay()

static void EPWM_enableValleyHWDelay ( uint32_t  base)
inlinestatic

Enable valley switching delay.

Parameters
baseis the base address of the EPWM module.

This function enables Valley switching delay.

Returns
None.

◆ EPWM_disableValleyHWDelay()

static void EPWM_disableValleyHWDelay ( uint32_t  base)
inlinestatic

Disable valley switching delay.

Parameters
baseis the base address of the EPWM module.

This function disables Valley switching delay.

Returns
None.

◆ EPWM_setValleySWDelayValue()

static void EPWM_setValleySWDelayValue ( uint32_t  base,
uint16_t  delayOffsetValue 
)
inlinestatic

Set Valley delay values.

Parameters
baseis the base address of the EPWM module.
delayOffsetValueis the software defined delay offset value.

This function sets the Valley delay value.

Returns
None.

◆ EPWM_setValleyDelayDivider()

static void EPWM_setValleyDelayDivider ( uint32_t  base,
EPWM_ValleyDelayMode  delayMode 
)
inlinestatic

Set Valley delay mode.

Parameters
baseis the base address of the EPWM module.
delayModeis the Valley delay mode.

This function sets the Valley delay mode values.

Returns
None.

◆ EPWM_getValleyEdgeStatus()

static bool EPWM_getValleyEdgeStatus ( uint32_t  base,
EPWM_ValleyCounterEdge  edge 
)
inlinestatic

Get the valley edge status bit.

Parameters
baseis the base address of the EPWM module.
edgeis the start or stop edge.

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.

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

◆ EPWM_getValleyCount()

static uint16_t EPWM_getValleyCount ( uint32_t  base)
inlinestatic

Get the Valley Counter value.

Parameters
baseis the base address of the EPWM module.

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.

Returns
Returns the valley base time count.

◆ EPWM_getValleyHWDelay()

static uint16_t EPWM_getValleyHWDelay ( uint32_t  base)
inlinestatic

Get the Valley delay value.

Parameters
baseis the base address of the EPWM module.

This function returns the hardware valley delay count.

Returns
Returns the valley delay count.

◆ EPWM_enableGlobalLoad()

static void EPWM_enableGlobalLoad ( uint32_t  base)
inlinestatic

Enable Global shadow load mode.

Parameters
baseis the base address of the EPWM module.

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.

Returns
None.

◆ EPWM_disableGlobalLoad()

static void EPWM_disableGlobalLoad ( uint32_t  base)
inlinestatic

Disable Global shadow load mode.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setGlobalLoadTrigger()

static void EPWM_setGlobalLoadTrigger ( uint32_t  base,
EPWM_GlobalLoadTrigger  loadTrigger 
)
inlinestatic

Set the Global shadow load pulse.

Parameters
baseis the base address of the EPWM module.
loadTriggeris the pulse that causes global shadow load.

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

  • 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_GLOBAL_FORCE - load on global force
Returns
None.

◆ EPWM_setGlobalLoadEventPrescale()

static void EPWM_setGlobalLoadEventPrescale ( uint32_t  base,
uint16_t  prescalePulseCount 
)
inlinestatic

Set the number of Global load pulse event counts

Parameters
baseis the base address of the EPWM module.
prescalePulseCountis the 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.

Returns
None.

◆ EPWM_getGlobalLoadEventCount()

static uint16_t EPWM_getGlobalLoadEventCount ( uint32_t  base)
inlinestatic

Return the number of Global load pulse event counts

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_disableGlobalLoadOneShotMode()

static void EPWM_disableGlobalLoadOneShotMode ( uint32_t  base)
inlinestatic

Enable continuous global shadow to active load.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_enableGlobalLoadOneShotMode()

static void EPWM_enableGlobalLoadOneShotMode ( uint32_t  base)
inlinestatic

Enable One shot global shadow to active load.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_setGlobalLoadOneShotLatch()

static void EPWM_setGlobalLoadOneShotLatch ( uint32_t  base)
inlinestatic

Set One shot global shadow to active load pulse.

Parameters
baseis the base address of the EPWM module.

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.

Returns
None.

◆ EPWM_forceGlobalLoadOneShotEvent()

static void EPWM_forceGlobalLoadOneShotEvent ( uint32_t  base)
inlinestatic

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

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_enableGlobalLoadRegisters()

static void EPWM_enableGlobalLoadRegisters ( uint32_t  base,
uint16_t  loadRegister 
)
inlinestatic

Enable a register to be loaded Globally.

Parameters
baseis the base address of the EPWM module.
loadRegisteris the register.

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
Returns
None.

◆ EPWM_disableGlobalLoadRegisters()

static void EPWM_disableGlobalLoadRegisters ( uint32_t  base,
uint16_t  loadRegister 
)
inlinestatic

Disable a register to be loaded Globally.

Parameters
baseis the base address of the EPWM module.
loadRegisteris the register.

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
Returns
None.

◆ EPWM_lockRegisters()

static void EPWM_lockRegisters ( uint32_t  base,
EPWM_LockRegisterGroup  registerGroup 
)
inlinestatic

Lock EALLOW protected register groups

Parameters
baseis the base address of the EPWM module.
registerGroupis the EALLOW register groups.

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

Returns
None.

◆ EPWM_enableMinimumDeadBand()

static void EPWM_enableMinimumDeadBand ( uint32_t  base,
uint32_t  block 
)
inlinestatic

Enable Minimum DeadBand module

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand Block to be enabled.

This function enables the Minimum DeadBand module.

Returns
None.

◆ EPWM_disableMinimumDeadBand()

static void EPWM_disableMinimumDeadBand ( uint32_t  base,
uint32_t  block 
)
inlinestatic

Disable Minimum DeadBand module

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand Block to be enabled.

This function disables the Minimum DeadBand module.

Returns
None.

◆ EPWM_invertMinimumDeadBandSignal()

static void EPWM_invertMinimumDeadBandSignal ( uint32_t  base,
uint32_t  block,
uint32_t  invert 
)
inlinestatic

Invert the Minimum DeadBand Reference Signal

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block to be configured.
invertspecifies whether reference signal is to be inverted or not.

This function configures the Minimum DeadBand module to invert reference signal which is used in the Minimum DeadBand module.

Returns
None.

◆ EPWM_selectMinimumDeadBandAndOrLogic()

static void EPWM_selectMinimumDeadBandAndOrLogic ( uint32_t  base,
uint32_t  block,
uint32_t  referenceSignal 
)
inlinestatic

Select signal for AND OR logic of Minimum DeadBand Module

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block to be configured.
referenceSignalspecifies how the signal will be combined.

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.

Returns
None.

◆ EPWM_selectMinimumDeadBandBlockingSignal()

static void EPWM_selectMinimumDeadBandBlockingSignal ( uint32_t  base,
uint32_t  block,
uint32_t  blockingSignal 
)
inlinestatic

Select Minimum DeadBand Blocking Signal

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block to be configured.
blockingSignalis the blocking signal to be used for a block.

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.

Returns
None.

◆ EPWM_selectMinimumDeadBandReferenceSignal()

static void EPWM_selectMinimumDeadBandReferenceSignal ( uint32_t  base,
uint32_t  block,
uint32_t  referenceSignal 
)
inlinestatic

Select Minimum DeadBand Reference Signal

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block to be configured.
referenceSignalspecifies the reference signal to be selected.

This function selects the reference signal for Minimum DeadBand module.

Returns
None.

◆ EPWM_getMinDeadBandDelay()

static uint32_t EPWM_getMinDeadBandDelay ( uint32_t  base,
uint32_t  block 
)
inlinestatic

Get Minimum DeadBand Delay Value

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block whose value is needed.

This function returns the delay value for the Minimum DeadBand module.

Returns
Delay value of the Minimum DeadBand module.

◆ EPWM_setMinDeadBandDelay()

static void EPWM_setMinDeadBandDelay ( uint32_t  base,
uint32_t  block,
uint32_t  delay 
)
inlinestatic

Set the Minimum DeadBand Delay Value

Parameters
baseis the base address of the EPWM module.
blockis the Minimum DeadBand block to be configured.
delayis the delay value to be programmed for the Minimum DeadBand.

This function configures the Minimum DeadBand delay value for the specified block.

Returns
None.

◆ EPWM_enableIllegalComboLogic()

static void EPWM_enableIllegalComboLogic ( uint32_t  base,
uint32_t  block 
)
inlinestatic

Enable Illegal Combo Logic

Parameters
baseis the base address of the EPWM module.
blockis the Illegal Combo Logic block to be enabled.

This function enables the Illegal Combo Logic block.

Returns
None.

◆ EPWM_disableIllegalComboLogic()

static void EPWM_disableIllegalComboLogic ( uint32_t  base,
uint32_t  block 
)
inlinestatic

Disable Illegal Combo Logic

Parameters
baseis the base address of the EPWM module.
blockis the Illegal Combo Logic block to be disabled.

This function disables the Illegal Combo Logic block.

Returns
None.

◆ EPWM_selectXbarInput()

static void EPWM_selectXbarInput ( uint32_t  base,
uint32_t  block,
uint32_t  xbarInput 
)
inlinestatic

Select XBar input for Illegal Combo Logic

Parameters
baseis the base address of the EPWM module.
blockis the Illegal Combo Logic block to be configured.
xbarInputis the Xbar signal to feed into the Illegal Combo Logic.

This function selects which Xbar signal feeds into the Illegal Combo Logic.

Returns
None.

◆ EPWM_setLutDecX()

static void EPWM_setLutDecX ( uint32_t  base,
uint32_t  block,
uint32_t  decx,
uint32_t  force 
)
inlinestatic

Force Decx values

Parameters
baseis the base address of the EPWM module.
blockis the Illegal Combo Logic block to be configured.
decxis the register to be programmed.
forceis the value to be programmed in the register.

This function programs value in the Decx register fields of the Illegal Combo Logic module.

Returns
None.

◆ HRPWM_setPhaseShift()

static void HRPWM_setPhaseShift ( uint32_t  base,
uint32_t  phaseCount 
)
inlinestatic

Sets the consolidated phase shift value in high resolution mode.

Parameters
baseis the base address of the EPWM module.
phaseCountis the consolidated phase shift count value.

This function sets the consolidated phase shift value, that is, both TBPHS and TBPHSHR values are configured together.

Call EPWM_enablePhaseShiftLoad & HRPWM_enableHRPhaseShiftLoad() functions to enable loading of the phaseCount in high resolution mode.

Note: phaseCount is a 32-bit value. Note: For configuring TBPHS = 0x3C, TBPHSHR = 0x2; phaseCount = 0x3C02

Returns
None.

◆ HRPWM_setHiResPhaseShift()

static void HRPWM_setHiResPhaseShift ( uint32_t  base,
uint16_t  hrPhaseCount 
)
inlinestatic

Sets only the high resolution phase shift value.

Parameters
baseis the base address of the EPWM module.
hrPhaseCountis the high resolution phase shift count value.

This function sets only the high resolution phase shift(TBPHSHR) value. Call the HRPWM_enableHRPhaseShiftLoad() function to enable loading of the hrPhaseCount.

Note: hrPhaseCount is an 16-bit value.

Returns
None.

◆ HRPWM_setHiResTimeBasePeriod()

static void HRPWM_setHiResTimeBasePeriod ( uint32_t  base,
uint16_t  hrPeriodCount 
)
inlinestatic

Sets high resolution time base counter.

Parameters
baseis the base address of the EPWM module.
hrPeriodCountis the high resolution period count value.

This function sets only the high resolution time base counter(TBPRDHR) value.

User should map the desired period or frequency of the waveform into the correct hrPeriodCount.

Note: hrPeriodCount is an 16-bit value.

Returns
None.

◆ HRPWM_getHiResTimeBasePeriod()

static uint16_t HRPWM_getHiResTimeBasePeriod ( uint32_t  base)
inlinestatic

Gets the high resolution time base period count.

Parameters
baseis the base address of the EPWM module.

This function gets the high resolution time base period(TBPRDHR) value.

Returns
The high resolution time base period count value.

◆ HRPWM_setMEPEdgeSelect()

static void HRPWM_setMEPEdgeSelect ( uint32_t  base,
HRPWM_Channel  channel,
HRPWM_MEPEdgeMode  mepEdgeMode 
)
inlinestatic

Sets the high resolution edge controlled by MEP (Micro Edge Positioner).

Parameters
baseis the base address of the EPWM module.
channelis high resolution period module.
mepEdgeModeedge of the PWM that is controlled by MEP (Micro Edge Positioner).

This function sets the edge of the PWM that is controlled by MEP (Micro Edge Positioner). Valid values for the parameters are:

  • channel
    • HRPWM_CHANNEL_A - HRPWM A
    • HRPWM_CHANNEL_B - HRPWM B
  • mepEdgeMode
    • HRPWM_MEP_CTRL_DISABLE - HRPWM is disabled
    • HRPWM_MEP_CTRL_RISING_EDGE - MEP (Micro Edge Positioner) controls rising edge.
    • HRPWM_MEP_CTRL_FALLING_EDGE - MEP (Micro Edge Positioner) controls falling edge.
    • HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE - MEP (Micro Edge Positioner) controls both edges.
Returns
None.

◆ HRPWM_setMEPControlMode()

static void HRPWM_setMEPControlMode ( uint32_t  base,
HRPWM_Channel  channel,
HRPWM_MEPCtrlMode  mepCtrlMode 
)
inlinestatic

Sets the MEP (Micro Edge Positioner) control mode.

Parameters
baseis the base address of the EPWM module.
channelis high resolution period module.
mepCtrlModeis the MEP (Micro Edge Positioner) control mode.

This function sets the mode (register type) the MEP (Micro Edge Positioner) will control. Valid values for the parameters are:

  • channel
    • HRPWM_CHANNEL_A - HRPWM A
    • HRPWM_CHANNEL_B - HRPWM B
  • mepCtrlMode
    • HRPWM_MEP_DUTY_PERIOD_CTRL - MEP (Micro Edge Positioner) is controlled by value of CMPAHR/ CMPBHR(depending on the value of channel) or TBPRDHR.
    • HRPWM_MEP_PHASE_CTRL - MEP (Micro Edge Positioner) is controlled by TBPHSHR.
Returns
None.

◆ HRPWM_setCounterCompareShadowLoadEvent()

static void HRPWM_setCounterCompareShadowLoadEvent ( uint32_t  base,
HRPWM_Channel  channel,
HRPWM_LoadMode  loadEvent 
)
inlinestatic

Sets the high resolution comparator load mode.

Parameters
baseis the base address of the EPWM module.
channelis high resolution period module.
loadEventis the MEP (Micro Edge Positioner) control mode.

This function sets the shadow load mode of the high resolution comparator. The function sets the COMPA or COMPB register depending on the channel variable. Valid values for the parameters are:

  • channel
    • HRPWM_CHANNEL_A - HRPWM A
    • HRPWM_CHANNEL_B - HRPWM B
  • loadEvent
    • HRPWM_LOAD_ON_CNTR_ZERO - load when counter equals zero
    • HRPWM_LOAD_ON_CNTR_PERIOD - load when counter equals period
    • HRPWM_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period
    • HRPWM_LOAD_ON_CMPB_EQ - load on translater event CMPB-3
Returns
None.

◆ HRPWM_setOutputSwapMode()

static void HRPWM_setOutputSwapMode ( uint32_t  base,
bool  enableOutputSwap 
)
inlinestatic

Sets the high resolution output swap mode.

Parameters
baseis the base address of the EPWM module.
enableOutputSwapis the output swap flag.

This function sets the HRPWM output swap mode. If enableOutputSwap is true, ePWMxA signal appears on ePWMxB output and ePWMxB signal appears on ePWMxA output. If it is false ePWMxA and ePWMxB outputs are unchanged.

Returns
None.

◆ HRPWM_setChannelBOutputPath()

static void HRPWM_setChannelBOutputPath ( uint32_t  base,
HRPWM_ChannelBOutput  outputOnB 
)
inlinestatic

Sets the high resolution output on ePWMxB

Parameters
baseis the base address of the EPWM module.
outputOnBis the output signal on ePWMxB.

This function sets the HRPWM output signal on ePWMxB. If outputOnB is HRPWM_OUTPUT_ON_B_INV_A, ePWMxB output is an inverted version of ePWMxA. If outputOnB is HRPWM_OUTPUT_ON_B_NORMAL, ePWMxB output is ePWMxB.

Returns
None.

◆ HRPWM_enableAutoConversion()

static void HRPWM_enableAutoConversion ( uint32_t  base)
inlinestatic

Enables MEP (Micro Edge Positioner) automatic scale mode.

Parameters
baseis the base address of the EPWM module.

This function enables the MEP (Micro Edge Positioner) to automatically scale HRMSTEP.

Returns
None.

◆ HRPWM_disableAutoConversion()

static void HRPWM_disableAutoConversion ( uint32_t  base)
inlinestatic

Disables MEP automatic scale mode.

Parameters
baseis the base address of the EPWM module.

This function disables the MEP (Micro Edge Positioner) from automatically scaling HRMSTEP.

Returns
None.

◆ HRPWM_enablePeriodControl()

static void HRPWM_enablePeriodControl ( uint32_t  base)
inlinestatic

Enable high resolution period feature.

Parameters
baseis the base address of the EPWM module.

This function enables the high resolution period feature.

Returns
None.

◆ HRPWM_disablePeriodControl()

static void HRPWM_disablePeriodControl ( uint32_t  base)
inlinestatic

Disable high resolution period feature.

Parameters
baseis the base address of the EPWM module.

This function disables the high resolution period feature.

Returns
None.

◆ HRPWM_enablePhaseShiftLoad()

static void HRPWM_enablePhaseShiftLoad ( uint32_t  base)
inlinestatic

Enable high resolution phase load

Parameters
baseis the base address of the EPWM module.

This function enables loading of high resolution phase shift value which is set by the function HRPWM_setPhaseShift().

Returns
None.

◆ HRPWM_disablePhaseShiftLoad()

static void HRPWM_disablePhaseShiftLoad ( uint32_t  base)
inlinestatic

Disable high resolution phase load

Parameters
baseis the base address of the EPWM module.

This function disables loading of high resolution phase shift value.

Returns

◆ HRPWM_setSyncPulseSource()

static void HRPWM_setSyncPulseSource ( uint32_t  base,
HRPWM_SyncPulseSource  syncPulseSource 
)
inlinestatic

Set high resolution PWMSYNC source.

Parameters
baseis the base address of the EPWM module.
syncPulseSourceis the PWMSYNC source.

This function sets the high resolution PWMSYNC pulse source. Valid values for syncPulseSource are:

  • HRPWM_PWMSYNC_SOURCE_PERIOD - Counter equals Period.
  • HRPWM_PWMSYNC_SOURCE_ZERO - Counter equals zero.
  • HRPWM_PWMSYNC_SOURCE_COMPC_UP - Counter equals COMPC when counting up.
  • HRPWM_PWMSYNC_SOURCE_COMPC_DOWN - Counter equals COMPC when counting down.
  • HRPWM_PWMSYNC_SOURCE_COMPD_UP - Counter equals COMPD when counting up.
  • HRPWM_PWMSYNC_SOURCE_COMPD_DOWN - Counter equals COMPD when counting down.
Returns
None.

◆ HRPWM_setTranslatorRemainder()

static void HRPWM_setTranslatorRemainder ( uint32_t  base,
uint16_t  trremVal 
)
inlinestatic

Sets the Translator Remainder value.

Parameters
baseis the base address of the EPWM module.
trremValis the translator remainder value.

This function sets the Translator Remainder value.

Returns
None.

◆ HRPWM_setCounterCompareValue()

static void HRPWM_setCounterCompareValue ( uint32_t  base,
HRPWM_CounterCompareModule  compModule,
uint32_t  compCount 
)
inlinestatic

Sets the consolidated counter compare values in HR mode.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare module.
compCountis the consolidated counter compare count value.

This function sets the consolidated counter compare(CMPx:CMPxHR) value required in high resolution mode for counter compare registers. Valid values for compModule are:

  • HRPWM_COUNTER_COMPARE_A - counter compare A.
  • HRPWM_COUNTER_COMPARE_B - counter compare B.

Note: compCount is a 32 bit value. Note: For configuring CMPA = 0xB4, CMPAHR = 0x64; value of compCount = 0xB464

Returns
None.

◆ HRPWM_getCounterCompareValue()

static uint32_t HRPWM_getCounterCompareValue ( uint32_t  base,
HRPWM_CounterCompareModule  compModule 
)
inlinestatic

Gets the consolidated counter compare values.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare module value.

This function gets the consolidated counter compare(CMPx:CMPxHR) value used in high resolution for the counter compare module specified. Valid values for compModule are:

  • HRPWM_COUNTER_COMPARE_A - counter compare A.
  • HRPWM_COUNTER_COMPARE_B - counter compare B.
Returns
None.

◆ HRPWM_setHiResCounterCompareValue()

static void HRPWM_setHiResCounterCompareValue ( uint32_t  base,
HRPWM_CounterCompareModule  compModule,
uint16_t  hrCompCount 
)
inlinestatic

Sets the high resolution counter compare value.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare module.
hrCompCountis the high resolution counter compare count value.

This function sets the high resolution counter compare value(CMPxHR) for counter compare registers. Valid values for compModule are:

  • HRPWM_COUNTER_COMPARE_A - counter compare A.
  • HRPWM_COUNTER_COMPARE_B - counter compare B.

Note: hrCompCount is an 8-bit value.

Returns
None.

◆ HRPWM_getHiResCounterCompareValueOnly()

static uint16_t HRPWM_getHiResCounterCompareValueOnly ( uint32_t  base,
HRPWM_CounterCompareModule  compModule 
)
inlinestatic

Gets the high resolution counter compare values.

Parameters
baseis the base address of the EPWM module.
compModuleis the Counter Compare module value.

This function gets only the high resolution counter compare(CMPxHR) value for the counter compare module specified. Valid values for compModule are:

  • HRPWM_COUNTER_COMPARE_A - counter compare A.
  • HRPWM_COUNTER_COMPARE_B - counter compare B.
Returns
None.

◆ HRPWM_setHiResRisingEdgeDelay()

static void HRPWM_setHiResRisingEdgeDelay ( uint32_t  base,
uint16_t  hrRedCount 
)
inlinestatic

Sets the high resolution RED count.

Parameters
baseis the base address of the EPWM module.
hrRedCountis the high resolution RED count.

This function sets only the high resolution RED (Rising Edge Delay) count(DBREDHR) value. The value of hrRedCount should be less than 128.

Note: hrRedCount is a 9-bit value.

Returns
None.

◆ HRPWM_setHiResFallingEdgeDelayOnly()

static void HRPWM_setHiResFallingEdgeDelayOnly ( uint32_t  base,
uint16_t  hrFedCount 
)
inlinestatic

Sets high resolution FED count.

Parameters
baseis the base address of the EPWM module.
hrFedCountis the high resolution FED count.

This function sets only the high resolution FED (Falling Edge Delay) count (DBFEDHR)value. The value of hrFedCount should be less than 128.

Note: hrFedCount is a 9-bit value.

Returns
None.

◆ HRPWM_setMEPStep()

static void HRPWM_setMEPStep ( uint32_t  base,
uint16_t  mepCount 
)
inlinestatic

Set high resolution MEP (Micro Edge Positioner) step.

Parameters
baseis the base address of the EPWM module.
mepCountis the high resolution MEP (Micro Edge Positioner) step count.

This function sets the high resolution MEP (Micro Edge Positioner) step count. The maximum value for the MEP count step is 255.

Returns
None.

◆ HRPWM_setDeadbandMEPEdgeSelect()

static void HRPWM_setDeadbandMEPEdgeSelect ( uint32_t  base,
HRPWM_MEPDeadBandEdgeMode  mepDBEdge 
)
inlinestatic

Set high resolution Dead Band MEP (Micro Edge Positioner) control.

Parameters
baseis the base address of the EPWM module.
mepDBEdgeis the high resolution MEP (Micro Edge Positioner) control edge.

This function sets the high resolution Dead Band edge that the MEP (Micro Edge Positioner) controls Valid values for mepDBEdge are:

  • HRPWM_DB_MEP_CTRL_DISABLE - HRPWM is disabled
  • HRPWM_DB_MEP_CTRL_RED - MEP (Micro Edge Positioner) controls Rising Edge Delay
  • HRPWM_DB_MEP_CTRL_FED - MEP (Micro Edge Positioner) controls Falling Edge Delay
  • HRPWM_DB_MEP_CTRL_RED_FED - MEP (Micro Edge Positioner) controls both Falling and Rising edge delays
Returns
None.

◆ HRPWM_setRisingEdgeDelayLoadMode()

static void HRPWM_setRisingEdgeDelayLoadMode ( uint32_t  base,
HRPWM_LoadMode  loadEvent 
)
inlinestatic

Set the high resolution Dead Band RED load mode.

Parameters
baseis the base address of the EPWM module.
loadEventis the shadow to active load event.

This function sets the high resolution Rising Edge Delay(RED)Dead Band count load mode. Valid values for loadEvent are:

  • HRPWM_LOAD_ON_CNTR_ZERO - load when counter equals zero.
  • HRPWM_LOAD_ON_CNTR_PERIOD - load when counter equals period
  • HRPWM_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period.
Returns
None.

◆ HRPWM_setFallingEdgeDelayLoadMode()

static void HRPWM_setFallingEdgeDelayLoadMode ( uint32_t  base,
HRPWM_LoadMode  loadEvent 
)
inlinestatic

Set the high resolution Dead Band FED load mode.

Parameters
baseis the base address of the EPWM module.
loadEventis the shadow to active load event.

This function sets the high resolution Falling Edge Delay(FED) Dead Band count load mode. Valid values for loadEvent are:

  • HRPWM_LOAD_ON_CNTR_ZERO - load when counter equals zero.
  • HRPWM_LOAD_ON_CNTR_PERIOD - load when counter equals period
  • HRPWM_LOAD_ON_CNTR_ZERO_PERIOD - load when counter equals zero or period.
Returns
None.

◆ EPWM_enableXCMPMode()

static void EPWM_enableXCMPMode ( uint32_t  base)
inlinestatic

Enable ePWM xcmp mode.

Parameters
baseis the base address of the EPWM module.

This function enables the ePWM xcmp mode.

Returns
None.

◆ EPWM_disableXCMPMode()

static void EPWM_disableXCMPMode ( uint32_t  base)
inlinestatic

Disable ePWM xcmp mode.

Parameters
baseis the base address of the EPWM module.

This function disables the ePWM xcmp mode.

Returns
None.

◆ EPWM_enableSplitXCMP()

static void EPWM_enableSplitXCMP ( uint32_t  base)
inlinestatic

Enable ePWM xcmp Split.

Parameters
baseis the base address of the EPWM module.

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

Returns
None.

◆ EPWM_disableSplitXCMP()

static void EPWM_disableSplitXCMP ( uint32_t  base)
inlinestatic

Disable ePWM xcmp Split.

Parameters
baseis the base address of the EPWM module.

This function allocates 8 xcmp registers to CMPA.

Returns
None.

◆ EPWM_allocAXCMP()

static void EPWM_allocAXCMP ( uint32_t  base,
EPWM_XCMP_ALLOC_CMPA  alloctype 
)
inlinestatic

Allocates xcmp registers to CMPA.

Parameters
baseis the base address of the EPWM module.
alloctypeis range of xcmp registers to be allocated 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
Returns
None.

◆ EPWM_allocBXCMP()

static void EPWM_allocBXCMP ( uint32_t  base,
EPWM_XCMP_ALLOC_CMPB  alloctype 
)
inlinestatic

Allocates xcmp registers to CMPB.

Parameters
baseis the base address of the EPWM module.
alloctypeis range of xcmp registers to be allocated 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
Returns
None.

◆ EPWM_setXCMPRegValue()

static void EPWM_setXCMPRegValue ( uint32_t  base,
EPWM_XCMPReg  xcmpReg,
uint16_t  xcmpvalue 
)
inlinestatic

Writes values to xcmp registers

Parameters
baseis the base address of the EPWM module.
xcmpRegis the xcmp register offset
xcmpvalueis 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_XMINMAX_ACTIVE -XMINMAX_ACTIVE EPWM_XTBPRD_SHADOW1 -XTBPRD_SHADOW1 EPWM_XMINMAX_SHADOW1 -XMINMAX_SHADOW1 EPWM_XTBPRD_SHADOW2 -XTBPRD_SHADOW2 EPWM_XMINMAX_SHADOW2 -XMINMAX_SHADOW2 EPWM_XTBPRD_SHADOW3 -XTBPRD_SHADOW3 EPWM_XMINMAX_SHADOW3 -XMINMAX_SHADOW3
Returns
None.

◆ EPWM_setXCMPActionQualifierAction()

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

Set up Action qualifier outputs based on XAQ registers

Parameters
baseis the base address of the EPWM module.
shadowsetis the shadow set number or active set.
epwmOutputis the ePWM pin type.
outputis the Action Qualifier output.
eventis the event that causes a change in output.

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
    Returns
    None.

◆ EPWM_enableXLoad()

static void EPWM_enableXLoad ( uint32_t  base)
inlinestatic

Enables ePWM xcmp reload event.

Parameters
baseis the base address of the EPWM module.

This function enables the ePWM xcmp reload event.

Returns
None.

◆ EPWM_disableXLoad()

static void EPWM_disableXLoad ( uint32_t  base)
inlinestatic

Disables ePWM xcmp reload event.

Parameters
baseis the base address of the EPWM module.

This function disables the ePWM xcmp reload event.

Returns
None.

◆ EPWM_setXCMPLoadMode()

static void EPWM_setXCMPLoadMode ( uint32_t  base,
EPWM_XCMPXloadCtlLoadMode  mode 
)
inlinestatic

Selects the mode for the XCMP Shadow registers

Parameters
baseis the base address of the EPWM module.
modeis load mode selection for XCMP Shadow registers This function gives us choice to select the mode for XCMP shadow registers Valid values for alloctype are: EPWM_XCMP_XLOADCTL_LOADMODE_LOADONCE - Load mode is LOADONCE EPWM_XCMP_XLOADCTL_LOADMODE_LOADMULTIPLE - Load mode is LOADMULTIPLE
Returns
None.

◆ EPWM_setXCMPShadowLevel()

static void EPWM_setXCMPShadowLevel ( uint32_t  base,
EPWM_XCMP_XLOADCTL_SHDWLEVEL  level 
)
inlinestatic

Selects the shadow register level allocation

Parameters
baseis the base address of the EPWM module.
levelis shadow register level allocation options This function gives us choice to select the XCMP shadow registers level Valid values for alloctype are: EPWM_XCMP_XLOADCTL_SHDWLEVEL_0 - Only Active register is available EPWM_XCMP_XLOADCTL_SHDWLEVEL_1 - SHDW1 and Active registers are available EPWM_XCMP_XLOADCTL_SHDWLEVEL_2 - SHDW2, SHDW1 and Active registers are available EPWM_XCMP_XLOADCTL_SHDWLEVEL_3 - SHDW3, SHDW2, SHDW1 and Active registers are available
Returns
None.

◆ EPWM_setXCMPShadowBufPtrLoadOnce()

static void EPWM_setXCMPShadowBufPtrLoadOnce ( uint32_t  base,
EPWM_XCMP_XLOADCTL_SHDWBUFPTR  ptr 
)
inlinestatic

Selects which shadow register set is in use

Parameters
baseis the base address of the EPWM module.
ptrindicates current shadow buffer 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
Returns
None.

◆ EPWM_setXCMPShadowRepeatBufxCount()

static void EPWM_setXCMPShadowRepeatBufxCount ( uint32_t  base,
uint32_t  bufferset,
uint8_t  count 
)
inlinestatic

Chooses how many times Shadow buffer 2 or 3 is applied

Parameters
baseis the base address of the EPWM module.
buffersetis the shadow set number.
countis number of 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
Returns
None.

◆ EPWM_enableDiodeEmulationMode()

static void EPWM_enableDiodeEmulationMode ( uint32_t  base)
inlinestatic

Enable ePWM diode emulation mode.

Parameters
baseis the base address of the EPWM module.

This function enables the ePWM diode emulation mode.

Returns
None.

◆ EPWM_disableDiodeEmulationMode()

static void EPWM_disableDiodeEmulationMode ( uint32_t  base)
inlinestatic

Disable ePWM diode emulation mode.

Parameters
baseis the base address of the EPWM module.

This function disables the ePWM diode emulation mode.

Returns
None.

◆ EPWM_setDiodeEmulationMode()

static void EPWM_setDiodeEmulationMode ( uint32_t  base,
EPWM_DiodeEmulationMode  mode 
)
inlinestatic

Selects the mode for the Diode emulation mode

Parameters
baseis the base address of the EPWM module.
modeis load mode selection for Diode emulation mode This function gives us choice to select the mode for Diode emulation mode Valid values for mode are: EPWM_DIODE_EMULATION_CBC - Diode Emulation mode is Cycle by Cycle EPWM_DIODE_EMULATION_OST - Diode Emulation mode is One Shot
Returns
None.

◆ EPWM_setDiodeEmulationReentryDelay()

static void EPWM_setDiodeEmulationReentryDelay ( uint32_t  base,
uint8_t  delay 
)
inlinestatic

Set ePWM diode emulation re-entry delay.

Parameters
baseis the base address of the EPWM module.
delayis the re-entry delay in terms of number of PWMSYNCOUT events. This function determines the blocking window after DEACTIVE flag is cleared in which setting of DEACTIVE flag is prevented from being set. Max value of delay is 256.
Returns
None.

◆ EPWM_configureDiodeEmulationTripSources()

static void EPWM_configureDiodeEmulationTripSources ( uint32_t  base,
EPWM_DiodeEmulationTripSource  source,
uint32_t  tripLorH 
)
inlinestatic

Set ePWM diode emulation trip source for TripH and TripL.

Parameters
baseis the base address of the EPWM module.
sourceis the trip source
tripLorHis to choose between tripL and tripH This function is used to configure the comparator whose trip sources will be used. Valid values for source are: EPWM_DE_TRIP_SRC_INPUTXBAR_OUT[0-31] - Diode Emulation Trip Source is INPUTXBAR out[0-31] signal EPWM_DE_TRIP_SRC_CMPSSA[0-9] - Diode Emulation Trip Source is CMPSSA[0-9] signal EPWM_DE_TRIP_SRC_CMPSSB[0-9] - Diode Emulation Trip Source is CMPSSB[0-9] signal

Valid values for tripLorH are: EPWM_DE_TRIPL - TripL EPWM_DE_TRIPH - TripH

Returns
None.

◆ EPWM_selectDiodeEmulationPWMsignal()

static void EPWM_selectDiodeEmulationPWMsignal ( uint32_t  base,
uint32_t  channel,
EPWM_DiodeEmulationSignal  signal 
)
inlinestatic

Selects ePWM diode emulation pwm signal.

Parameters
baseis the base address of the EPWM module.
channelis the epwm output channel
signalis 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

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

Returns
None.

◆ EPWM_selectDiodeEmulationTripSignal()

static void EPWM_selectDiodeEmulationTripSignal ( uint32_t  base,
uint32_t  channel,
uint32_t  signal 
)
inlinestatic

Selects between TRIPH and TRIPL for an epwm channel in DE mode.

Parameters
baseis the base address of the EPWM module.
channelis the epwm output channel
signalis 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

Valid values for signal are: 0 for TRIPH 1 for TRIPL

Returns
None.

◆ EPWM_nobypassDiodeEmulationLogic()

static void EPWM_nobypassDiodeEmulationLogic ( uint32_t  base)
inlinestatic

PWMTRIP does not bypass the diode emulation logic

Parameters
baseis the base address of the EPWM module. This function is used to go through DEL.
Returns
None.

◆ EPWM_bypassDiodeEmulationLogic()

static void EPWM_bypassDiodeEmulationLogic ( uint32_t  base)
inlinestatic

PWMTRIP bypasses the diode emulation PWM generation logic

Parameters
baseis the base address of the EPWM module. This function is used to bypass DEL.
Returns
None.

◆ EPWM_forceDiodeEmulationActive()

static void EPWM_forceDiodeEmulationActive ( uint32_t  base)
inlinestatic

Forces DEACTIVE flag to 1

Parameters
baseis the base address of the EPWM module. This function is used to force DEACTIVE flag to 1.
Returns
None.

◆ EPWM_enableDiodeEmulationMonitorModeControl()

static void EPWM_enableDiodeEmulationMonitorModeControl ( uint32_t  base)
inlinestatic

Enables DE monitor control mode

Parameters
baseis the base address of the EPWM module. This function is used to enable the DE monitor counter function.
Returns
None.

◆ EPWM_disableDiodeEmulationMonitorModeControl()

static void EPWM_disableDiodeEmulationMonitorModeControl ( uint32_t  base)
inlinestatic

Disables DE monitor control mode

Parameters
baseis the base address of the EPWM module. This function is used to disable the DE monitor counter function.
Returns
None.

◆ EPWM_setDiodeEmulationMonitorModeStep()

static void EPWM_setDiodeEmulationMonitorModeStep ( uint32_t  base,
uint32_t  direction,
uint8_t  stepsize 
)
inlinestatic

Sets the DE monitor counter step size

Parameters
baseis the base address of the EPWM module.
directionis the direction of the monitor counter counting i.e. UP or DOWN.
stepsizeis 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 Max value of stepsize is 256.
Returns
None.

◆ EPWM_setDiodeEmulationMonitorCounterThreshold()

static void EPWM_setDiodeEmulationMonitorCounterThreshold ( uint32_t  base,
uint16_t  threshold 
)
inlinestatic

Sets the DE monitor counter threshold value.

Parameters
baseis the base address of the EPWM module.
thresholdis the max value till which the monitor counter can count. This function is used to set the DE monitor counter threshold. Max value of threshold is 2^16.
Returns
None.

◆ EPWM_setEmulationMode()

void EPWM_setEmulationMode ( uint32_t  base,
EPWM_EmulationMode  emulationMode 
)

Set emulation mode

Parameters
baseis the base address of the EPWM module.
emulationModeis the 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.
Returns
None.

◆ EPWM_configureSignal()

void EPWM_configureSignal ( uint32_t  base,
const EPWM_SignalParams signalParams 
)

Configures ePWM signal with desired frequency & duty

Parameters
baseis the base address of the EPWM module.
signalParamsis the desired signal parameters.

This function configures the ePWM module to generate a signal with desired frequency & duty.

Returns
None.