DL EPWM API

Module: Driverlib (AM13E232X) APIs

Structures

Name

struct

DL_EPWM_HRCalContext
HRPWM calibration context structure.

Types

Name

enum

DL_EPWM_CLOCK_DIVIDER { DL_EPWM_CLOCK_DIVIDER_1 = 0U, DL_EPWM_CLOCK_DIVIDER_2 = 1U, DL_EPWM_CLOCK_DIVIDER_4 = 2U, DL_EPWM_CLOCK_DIVIDER_8 = 3U, DL_EPWM_CLOCK_DIVIDER_16 = 4U, DL_EPWM_CLOCK_DIVIDER_32 = 5U, DL_EPWM_CLOCK_DIVIDER_64 = 6U, DL_EPWM_CLOCK_DIVIDER_128 = 7U}
Time Base Clock Divider Values.

enum

DL_EPWM_HS_CLOCK_DIVIDER { DL_EPWM_HS_CLOCK_DIVIDER_1 = 0U, DL_EPWM_HS_CLOCK_DIVIDER_2 = 1U, DL_EPWM_HS_CLOCK_DIVIDER_4 = 2U, DL_EPWM_HS_CLOCK_DIVIDER_6 = 3U, DL_EPWM_HS_CLOCK_DIVIDER_8 = 4U, DL_EPWM_HS_CLOCK_DIVIDER_10 = 5U, DL_EPWM_HS_CLOCK_DIVIDER_12 = 6U, DL_EPWM_HS_CLOCK_DIVIDER_14 = 7U}
High Speed Time Base Clock Divider Values.

enum

DL_EPWM_PERIOD_LOAD_MODE { DL_EPWM_PERIOD_LOAD_MODE_SHADOW_LOAD = 0U, DL_EPWM_PERIOD_LOAD_MODE_DIRECT_LOAD = 1U}
Period Register Load Mode.

enum

DL_EPWM_TIME_BASE_COUNT_MODE { DL_EPWM_TIME_BASE_COUNT_MODE_UP = 0U, DL_EPWM_TIME_BASE_COUNT_MODE_DOWN = 1U, DL_EPWM_TIME_BASE_COUNT_MODE_UP_DOWN = 2U, DL_EPWM_TIME_BASE_COUNT_MODE_STOP_FREEZE = 3U}
Time Base Counter Modes.

enum

DL_EPWM_PERIOD_SHADOW_LOAD_MODE { DL_EPWM_PERIOD_SHADOW_LOAD_MODE_COUNTER_ZERO = 0U, DL_EPWM_PERIOD_SHADOW_LOAD_MODE_COUNTER_SYNC = 1U, DL_EPWM_PERIOD_SHADOW_LOAD_MODE_SYNC = 2U}
Period Shadow Register Load Mode.

enum

DL_EPWM_DEAD_BAND_CLOCK_MODE { DL_EPWM_DEAD_BAND_CLOCK_MODE_FULL_CYCLE = 0U, DL_EPWM_DEAD_BAND_CLOCK_MODE_HALF_CYCLE = 1U}
Dead Band Counter Clock Mode.

enum

DL_EPWM_SYNC_COUNT_MODE { DL_EPWM_SYNC_COUNT_MODE_DOWN_AFTER_SYNC = 0U, DL_EPWM_SYNC_COUNT_MODE_UP_AFTER_SYNC = 1U}
Synchronization Count Mode.

enum

DL_EPWM_SYNC_IN_PULSE_SOURCE { DL_EPWM_SYNC_IN_PULSE_SOURCE_DISABLE = 0U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP0 = 3U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP1 = 4U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM0 = 5U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM1 = 6U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM2 = 7U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP2 = 10U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM0 = 11U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM1 = 12U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM2 = 13U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM3 = 14U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM4 = 15U, DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM5 = 16U, DL_EPWM_SYNC_IN_PULSE_SOURCE_ECAT_SYNC0 = 17U, DL_EPWM_SYNC_IN_PULSE_SOURCE_ECAT_SYNC1 = 18U, DL_EPWM_SYNC_IN_PULSE_SOURCE_FSIRXA_TRIG1 = 19U, DL_EPWM_SYNC_IN_PULSE_SOURCE_INPUTXBAR5 = 20U, DL_EPWM_SYNC_IN_PULSE_SOURCE_INPUTXBAR6 = 21U}
Synchronization Input Pulse Source.

enum

DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER { DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER_SYNC = 0x0U, DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER_RELOAD = 0x1U}
One-Shot Synchronization Output Trigger.

enum

DL_EPWM_SYNC_PULSE_SOURCE { DL_EPWM_SYNC_PULSE_SOURCE_PERIOD = 0U, DL_EPWM_SYNC_PULSE_SOURCE_ZERO = 1U, DL_EPWM_SYNC_PULSE_SOURCE_COMPC_UP = 4U, DL_EPWM_SYNC_PULSE_SOURCE_COMPC_DOWN = 5U, DL_EPWM_SYNC_PULSE_SOURCE_COMPD_UP = 6U, DL_EPWM_SYNC_PULSE_SOURCE_COMPD_DOWN = 7U}
Synchronization Output Source.

enum

DL_EPWM_SYNC_OUT_PULSE_SOURCE { DL_EPWM_SYNC_OUT_PULSE_ON_SOFTWARE = EPWM_EPWMSYNCOUTEN_SWEN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO = EPWM_EPWMSYNCOUTEN_ZEROEN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B = EPWM_EPWMSYNCOUTEN_CMPBEN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C = EPWM_EPWMSYNCOUTEN_CMPCEN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D = EPWM_EPWMSYNCOUTEN_CMPDEN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC = EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC = EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK, DL_EPWM_SYNC_OUT_PULSE_ON_ALL = DL_EPWM_SYNC_OUT_SOURCE_MASK}
Sync-out pulse source selection values.

enum

DL_EPWM_COUNTER_COMPARE_MODULE { DL_EPWM_COUNTER_COMPARE_MODULE_A = 0U, DL_EPWM_COUNTER_COMPARE_MODULE_B = 2U, DL_EPWM_COUNTER_COMPARE_MODULE_C = 5U, DL_EPWM_COUNTER_COMPARE_MODULE_D = 7U}
Counter Compare Module.

enum

DL_EPWM_COUNTER_COMPARE_LOAD_MODE { DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_ZERO = 0U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_PERIOD = 1U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_FREEZE = 3U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_ZERO = 4U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_PERIOD = 5U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_ZERO_PERIOD = 6U, DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_ONLY = 8U}
Counter Compare Shadow Load Mode.

enum

DL_EPWM_ACTION_QUALIFIER_MODULE { DL_EPWM_ACTION_QUALIFIER_MODULE_A = 0U, DL_EPWM_ACTION_QUALIFIER_MODULE_B = 2U}
Action Qualifier Module.

enum

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE { DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_ZERO = 0U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_PERIOD = 1U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_FREEZE = 3U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_ZERO = 4U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_PERIOD = 5U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_ZERO_PERIOD = 6U, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_ONLY = 8U}
Action Qualifier Shadow Load Mode.

enum

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE { DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCA_1 = 0U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCA_2 = 1U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCB_1 = 2U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCB_2 = 3U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_1 = 4U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_2 = 5U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_3 = 6U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_SYNCIN = 7U, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DC_EVTFILT = 8U}
Action Qualifier Trigger Source.

enum

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT { DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_ZERO = 0U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_PERIOD = 2U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_UP_CMPA = 4U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_DOWN_CMPA = 6U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_UP_CMPB = 8U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_DOWN_CMPB = 10U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T1_COUNT_UP = 1U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T1_COUNT_DOWN = 3U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T2_COUNT_UP = 5U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T2_COUNT_DOWN = 7U}
Action Qualifier Output Events.

enum

DL_EPWM_ACTION_QUALIFIER_OUTPUT { DL_EPWM_ACTION_QUALIFIER_OUTPUT_NO_CHANGE = 0U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_LOW = 1U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_HIGH = 2U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_TOGGLE = 3U}
Action Qualifier Output Actions.

enum

DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE { DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE_A = 0U, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE_B = 1U}
Action Qualifier Output Module Selection.

enum

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION { DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_ZERO = 0x0U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_ZERO = 0x1U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_ZERO = 0x2U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_ZERO = 0x3U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_PERIOD = 0x0U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_PERIOD = 0x4U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_PERIOD = 0x8U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_PERIOD = 0xCU, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_CMPA = 0x00U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_CMPA = 0x10U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_CMPA = 0x20U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_CMPA = 0x30U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_CMPA = 0x00U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_CMPA = 0x40U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_CMPA = 0x80U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_CMPA = 0xC0U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_CMPB = 0x000U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_CMPB = 0x100U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_CMPB = 0x200U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_CMPB = 0x300U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_CMPB = 0x000U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_CMPB = 0x400U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_CMPB = 0x800U, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_CMPB = 0xC00U}
Action Qualifier Event Actions.

enum

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION { DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_T1 = 0x0U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_T1 = 0x1U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_T1 = 0x2U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_T1 = 0x3U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_T1 = 0x0U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_T1 = 0x4U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_T1 = 0x8U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_T1 = 0xCU, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_T2 = 0x00U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_T2 = 0x10U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_T2 = 0x20U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_T2 = 0x30U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_T2 = 0x00U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_T2 = 0x40U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_T2 = 0x80U, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_T2 = 0xC0U}
Additional Action Qualifier Event Actions.

enum

DL_EPWM_ACTION_QUALIFIER_CONT_FORCE { DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_ZERO = 0U, DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_PERIOD = 1U, DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_IMMEDIATE_LOAD = 3U}
Action Qualifier Continuous Software Force Shadow Mode.

enum

DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT { DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_DISABLED = 0U, DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_OUTPUT_LOW = 1U, DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_OUTPUT_HIGH = 2U}
Action Qualifier Software Output Actions.

enum

DL_EPWM_DEAD_BAND_OUTPUT { DL_EPWM_DEAD_BAND_OUTPUT_A = 1U, DL_EPWM_DEAD_BAND_OUTPUT_B = 0U}
Dead Band Output Selection.

enum

DL_EPWM_DEAD_BAND_DELAY_MODE { DL_EPWM_DEAD_BAND_DELAY_MODE_RED = 1U, DL_EPWM_DEAD_BAND_DELAY_MODE_FED = 0U}
Dead Band Delay Mode.

enum

DL_EPWM_DEAD_BAND_POLARITY { DL_EPWM_DEAD_BAND_POLARITY_HIGH = 0U, DL_EPWM_DEAD_BAND_POLARITY_LOW = 1U}
Dead Band Delay Polarity.

enum

DL_EPWM_DB_INPUT { DL_EPWM_DB_INPUT_EPWMA = 0U, DL_EPWM_DB_INPUT_EPWMB = 1U, DL_EPWM_DB_INPUT_DB_RED = 2U}
Dead band inputs.

enum

DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE { DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_ZERO = 0U, DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_PERIOD = 1U, DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_FREEZE = 3U}
Dead Band Control Shadow Load Mode.

enum

DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE { DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO = 0U, DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_PERIOD = 1U, DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_FREEZE = 3U}
Rising Edge Delay Count Shadow Load Mode.

enum

DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE { DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO = 0U, DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_PERIOD = 1U, DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_FREEZE = 3U}
Falling Edge Delay Count Shadow Load Mode.

enum

DL_EPWM_TZ_SIGNAL { DL_EPWM_TZ_SIGNAL_CBC1 = 0x0001U, DL_EPWM_TZ_SIGNAL_CBC2 = 0x0002U, DL_EPWM_TZ_SIGNAL_CBC3 = 0x0004U, DL_EPWM_TZ_SIGNAL_CBC4 = 0x0008U, DL_EPWM_TZ_SIGNAL_CBC5 = 0x0010U, DL_EPWM_TZ_SIGNAL_CBC6 = 0x0020U, DL_EPWM_TZ_SIGNAL_DCAEVT2 = 0x0040U, DL_EPWM_TZ_SIGNAL_DCBEVT2 = 0x0080U, DL_EPWM_TZ_SIGNAL_OSHT1 = 0x0100U, DL_EPWM_TZ_SIGNAL_OSHT2 = 0x0200U, DL_EPWM_TZ_SIGNAL_OSHT3 = 0x0400U, DL_EPWM_TZ_SIGNAL_OSHT4 = 0x0800U, DL_EPWM_TZ_SIGNAL_OSHT5 = 0x1000U, DL_EPWM_TZ_SIGNAL_OSHT6 = 0x2000U, DL_EPWM_TZ_SIGNAL_DCAEVT1 = 0x4000U, DL_EPWM_TZ_SIGNAL_DCBEVT1 = 0x8000U}
Trip Zone signal selection values.

enum

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT { DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_A1 = 0U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_A2 = 3U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_B1 = 6U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_B2 = 9U}
Trip Zone Digital Compare Type.

enum

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT { DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DC_DISABLED = 0U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXH_LOW = 1U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXH_HIGH = 2U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_LOW = 3U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_HIGH = 4U, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_HIGH_DCXH_LOW = 5U}
Trip Zone Digital Compare Output Event.

enum

DL_EPWM_TRIP_ZONE_EVENT { DL_EPWM_TRIP_ZONE_EVENT_TZA = 0U, DL_EPWM_TRIP_ZONE_EVENT_TZB = 1U, DL_EPWM_TRIP_ZONE_EVENT_DCAEVT1 = 2U, DL_EPWM_TRIP_ZONE_EVENT_DCAEVT2 = 3U, DL_EPWM_TRIP_ZONE_EVENT_DCBEVT1 = 4U, DL_EPWM_TRIP_ZONE_EVENT_DCBEVT2 = 5U}
Trip Zone Event.

enum

DL_EPWM_TRIP_ZONE_ACTION { DL_EPWM_TRIP_ZONE_ACTION_HIGH_Z = 0U, DL_EPWM_TRIP_ZONE_ACTION_HIGH = 1U, DL_EPWM_TRIP_ZONE_ACTION_LOW = 2U, DL_EPWM_TRIP_ZONE_ACTION_DISABLE = 3U}
Trip Zone Action.

enum

DL_EPWM_TRIP_ZONE_ADVANCED_EVENT { DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZB_D = 9U, DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZB_U = 6U, DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZA_D = 3U, DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZA_U = 0U}
Trip Zone Advanced Event.

enum

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION { DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_HIGH_Z = 0U, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_HIGH = 1U, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_LOW = 2U, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_TOGGLE = 3U, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_DISABLE = 7U}
Trip Zone Advanced Action.

enum

DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT { DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT1_U = 0U, DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT1_D = 3U, DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT2_U = 6U, DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT2_D = 9U}
Trip Zone Advanced Digital Compare Event.

enum

DL_EPWM_TZ_INTERRUPT { DL_EPWM_TZ_INTERRUPT_CBC = 0x2U, DL_EPWM_TZ_INTERRUPT_OST = 0x4U, DL_EPWM_TZ_INTERRUPT_DCAEVT1 = 0x8U, DL_EPWM_TZ_INTERRUPT_DCAEVT2 = 0x10U, DL_EPWM_TZ_INTERRUPT_DCBEVT1 = 0x20U, DL_EPWM_TZ_INTERRUPT_DCBEVT2 = 0x40U, DL_EPWM_TZ_INTERRUPT_CAPEVT = 0x80U}
Trip Zone Interrupts.

enum

DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE { DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_ZERO = 0U, DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_PERIOD = 1U, DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_ZERO_PERIOD = 2U}
Cycle-by-Cycle Trip Zone Clear Event.

enum

DL_EPWM_TZ_FLAG { DL_EPWM_TZ_FLAG_INTERRUPT = 0x1U, DL_EPWM_TZ_FLAG_CBC = 0x2U, DL_EPWM_TZ_FLAG_OST = 0x4U, DL_EPWM_TZ_FLAG_DCAEVT1 = 0x8U, DL_EPWM_TZ_FLAG_DCAEVT2 = 0x10U, DL_EPWM_TZ_FLAG_DCBEVT1 = 0x20U, DL_EPWM_TZ_FLAG_DCBEVT2 = 0x40U, DL_EPWM_TZ_FLAG_CAPEVT = 0x80U}
Trip Zone Flags.

enum

DL_EPWM_TZCBC_FLAG { DL_EPWM_TZ_CBC_FLAG_1 = 0x1U, DL_EPWM_TZ_CBC_FLAG_2 = 0x2U, DL_EPWM_TZ_CBC_FLAG_3 = 0x4U, DL_EPWM_TZ_CBC_FLAG_4 = 0x8U, DL_EPWM_TZ_CBC_FLAG_5 = 0x10U, DL_EPWM_TZ_CBC_FLAG_6 = 0x20U, DL_EPWM_TZ_CBC_FLAG_DCAEVT2 = 0x40U, DL_EPWM_TZ_CBC_FLAG_DCBEVT2 = 0x80U, DL_EPWM_TZ_CBC_FLAG_CAPEVT = 0x100U}
Cycle by Cycle Trip Zone flag.

enum

DL_EPWM_TZOST_FLAG { DL_EPWM_TZ_OST_FLAG_OST1 = 0x1U, DL_EPWM_TZ_OST_FLAG_OST2 = 0x2U, DL_EPWM_TZ_OST_FLAG_OST3 = 0x4U, DL_EPWM_TZ_OST_FLAG_OST4 = 0x8U, DL_EPWM_TZ_OST_FLAG_OST5 = 0x10U, DL_EPWM_TZ_OST_FLAG_OST6 = 0x20U, DL_EPWM_TZ_OST_FLAG_DCAEVT1 = 0x40U, DL_EPWM_TZ_OST_FLAG_DCBEVT1 = 0x80U, DL_EPWM_TZ_OST_FLAG_CAPEVT = 0x100U}
One shot Trip Zone flag.

enum

DL_EPWM_TZ_FORCE_EVENTS { DL_EPWM_TZ_FORCE_EVENT_CBC = 0x2U, DL_EPWM_TZ_FORCE_EVENT_OST = 0x4U, DL_EPWM_TZ_FORCE_EVENT_DCAEVT1 = 0x8U, DL_EPWM_TZ_FORCE_EVENT_DCAEVT2 = 0x10U, DL_EPWM_TZ_FORCE_EVENT_DCBEVT1 = 0x20U, DL_EPWM_TZ_FORCE_EVENT_DCBEVT2 = 0x40U, DL_EPWM_TZ_FORCE_EVENT_CAPEVT = 0x80U}
Trip zone Events that can be forced.

enum

DL_EPWM_TBC_INTERRUPTS { DL_EPWM_INT_TBCTR_DISABLED = 0U, DL_EPWM_INT_TBCTR_ZERO = 1U, DL_EPWM_INT_TBCTR_PERIOD = 2U, DL_EPWM_INT_TBCTR_ZERO_OR_PERIOD = 3U, DL_EPWM_INT_TBCTR_U_CMPA = 4U, DL_EPWM_INT_TBCTR_U_CMPC = 8U, DL_EPWM_INT_TBCTR_D_CMPA = 5U, DL_EPWM_INT_TBCTR_D_CMPC = 10U, DL_EPWM_INT_TBCTR_U_CMPB = 6U, DL_EPWM_INT_TBCTR_U_CMPD = 12U, DL_EPWM_INT_TBCTR_D_CMPB = 7U, DL_EPWM_INT_TBCTR_D_CMPD = 14U}
EPWM Time base Counter Interrupts.

enum

DL_EPWM_ADC_START_OF_CONVERSION { DL_EPWM_ADC_START_OF_CONVERSION_TYPE_A = 0U, DL_EPWM_ADC_START_OF_CONVERSION_TYPE_B = 1U}
ADC Start of Conversion Type.

enum

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE { DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_DCxEVT1 = 0U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_ZERO = 1U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_PERIOD = 2U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_ZERO_OR_PERIOD = 3U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPA = 4U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPC = 8U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPA = 5U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPC = 10U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPB = 6U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPD = 12U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPB = 7U, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPD = 14U}
ADC Trigger Event Source.

enum

DL_EPWM_DIGITAL_COMPARE { DL_EPWM_DIGITAL_COMPARE_TYPE_DCAH = 0U, DL_EPWM_DIGITAL_COMPARE_TYPE_DCAL = 1U, DL_EPWM_DIGITAL_COMPARE_TYPE_DCBH = 2U, DL_EPWM_DIGITAL_COMPARE_TYPE_DCBL = 3U}
Digital Compare Type.

enum

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT { DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN1 = 0U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN2 = 1U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN3 = 2U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN4 = 3U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN5 = 4U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN6 = 5U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN7 = 6U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN8 = 7U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN9 = 8U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN10 = 9U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN11 = 10U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN12 = 11U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN13 = 12U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN14 = 13U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN15 = 14U, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_COMBINATION = 15U}
Digital Compare Trip Input Selection.

enum

DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE { DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_PERIOD = 0U, DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_ZERO = 1U, DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_ZERO_PERIOD = 2U, DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_BLANK_PULSE_MIX = 3U}
Digital Compare Blanking Pulse.

enum

DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT { DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCAEVT1 = 0U, DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCAEVT2 = 1U, DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCBEVT1 = 2U, DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCBEVT2 = 3U}
Digital Compare Filter Input.

enum

DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE { DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_RISING = 0U, DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_FALLING = 1U, DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_BOTH = 2U}
Digital Compare Edge Filter Mode.

enum

DL_EPWM_DIGITAL_COMPARE_MODULE { DL_EPWM_DIGITAL_COMPARE_MODULE_A = 0U, DL_EPWM_DIGITAL_COMPARE_MODULE_B = 1U}
Digital Compare Module.

enum

DL_EPWM_DIGITAL_COMPARE_EVENT { DL_EPWM_DIGITAL_COMPARE_EVENT_1 = 0U, DL_EPWM_DIGITAL_COMPARE_EVENT_2 = 1U}
Digital Compare Event.

enum

DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE { DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE_ORIG_SIGNAL = 0U, DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE_FILT_SIGNAL = 1U}
Digital Compare Event Source.

enum

DL_EPWM_DIGITAL_COMPARE_SYNC_MODE { DL_EPWM_DIGITAL_COMPARE_SYNC_MODE_SYNCED = 0U, DL_EPWM_DIGITAL_COMPARE_SYNC_MODE_NOT_SYNCED = 1U}
Digital Compare Synchronization Mode.

enum

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE { DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE_DISABLED = 0x0U, DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE_ENABLED = 0x1U}
Digital Compare CBC Latch Mode.

enum

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT { DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_CNTR_ZERO = 0x0U, DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_ON_CNTR_PERIOD = 0x1U, DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_ON_CNTR_ZERO_PERIOD = 0x2U}
Digital Compare CBC Latch Clear Event.

enum

DL_EPWM_DC_COMBINATIONAL_TRIP_IN { DL_EPWM_DC_COMBINATIONAL_TRIPIN1 = 0x1U, DL_EPWM_DC_COMBINATIONAL_TRIPIN2 = 0x2U, DL_EPWM_DC_COMBINATIONAL_TRIPIN3 = 0x4U, DL_EPWM_DC_COMBINATIONAL_TRIPIN4 = 0x8U, DL_EPWM_DC_COMBINATIONAL_TRIPIN5 = 0x10U, DL_EPWM_DC_COMBINATIONAL_TRIPIN6 = 0x20U, DL_EPWM_DC_COMBINATIONAL_TRIPIN7 = 0x40U, DL_EPWM_DC_COMBINATIONAL_TRIPIN8 = 0x80U, DL_EPWM_DC_COMBINATIONAL_TRIPIN9 = 0x100U, DL_EPWM_DC_COMBINATIONAL_TRIPIN10 = 0x200U, DL_EPWM_DC_COMBINATIONAL_TRIPIN11 = 0x400U, DL_EPWM_DC_COMBINATIONAL_TRIPIN12 = 0x800U, DL_EPWM_DC_COMBINATIONAL_TRIPIN13 = 0x1000U, DL_EPWM_DC_COMBINATIONAL_TRIPIN14 = 0x2000U, DL_EPWM_DC_COMBINATIONAL_TRIPIN15 = 0x4000U}
DC combinational trip input bitmask.

enum

DL_EPWM_VALLEY_TRIGGER_SOURCE { DL_EPWM_VALLEY_TRIGGER_SOURCE_SOFTWARE = 0U, DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_ZERO = 1U, DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_PERIOD = 2U, DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_ZERO_PERIOD = 3U, DL_EPWM_VALLEY_TRIGGER_SOURCE_DCAEVT1 = 4U, DL_EPWM_VALLEY_TRIGGER_SOURCE_DCAEVT2 = 5U, DL_EPWM_VALLEY_TRIGGER_SOURCE_DCBEVT1 = 6U, DL_EPWM_VALLEY_TRIGGER_SOURCE_DCBEVT2 = 7U}
Valley Trigger Source.

enum

DL_EPWM_VALLEY_DELAY_MODE { DL_EPWM_VALLEY_DELAY_MODE_SW_DELAY = 0U, DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SW_DELAY = 1U, DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_1_SW_DELAY = 2U, DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_2_SW_DELAY = 3U, DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_4_SW_DELAY = 4U}
Valley Delay Mode.

enum

DL_EPWM_VALLEY_COUNTER_EDGE { DL_EPWM_VALLEY_COUNTER_EDGE_START_EDGE = 0U, DL_EPWM_VALLEY_COUNTER_EDGE_STOP_EDGE = 1U}
Valley Count Event.

enum

DL_EPWM_GLOBAL_LOAD_TRIGGER { DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_ZERO = 0x0U, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_PERIOD = 0x1U, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_ZERO_PERIOD = 0x2U, DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC = 0x3U, DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_OR_CNTR_ZERO = 0x4U, DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_OR_CNTR_PERIOD = 0x5U, DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_CNTR_ZERO_PERIOD = 0x6U, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_U_CMPC = 0x8U, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_D_CMPC = 0x9U, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_U_CMPD = 0xAU, DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_D_CMPD = 0xBU, DL_EPWM_GLOBAL_LOAD_TRIGGER_GLOBAL_FORCE = 0xFU}
Global Load Trigger Source.

enum

DL_EPWM_GLOBAL_LOAD_REGISTER { DL_EPWM_GL_REGISTER_TBPRD_TBPRDHR = 0x1U, DL_EPWM_GL_REGISTER_CMPA_CMPAHR = 0x2U, DL_EPWM_GL_REGISTER_CMPB_CMPBHR = 0x4U, DL_EPWM_GL_REGISTER_CMPC = 0x8U, DL_EPWM_GL_REGISTER_CMPD = 0x10U, DL_EPWM_GL_REGISTER_DBRED_DBREDHR = 0x20U, DL_EPWM_GL_REGISTER_DBFED_DBFEDHR = 0x40U, DL_EPWM_GL_REGISTER_DBCTL = 0x80U, DL_EPWM_GL_REGISTER_AQCTLA_AQCTLA2 = 0x100U, DL_EPWM_GL_REGISTER_AQCTLB_AQCTLB2 = 0x200U, DL_EPWM_GL_REGISTER_AQCSFRC = 0x400U}
Register to be globally loaded.

enum

DL_EPWM_LOCK_REGISTER_GROUP { DL_EPWM_LOCK_REGISTER_GROUP_HRPWM = 0x1U, DL_EPWM_LOCK_REGISTER_GROUP_GLOBAL_LOAD = 0x2U, DL_EPWM_LOCK_REGISTER_GROUP_TRIP_ZONE = 0x4U, DL_EPWM_LOCK_REGISTER_GROUP_TRIP_ZONE_CLEAR = 0x8U, DL_EPWM_LOCK_REGISTER_GROUP_DIGITAL_COMPARE = 0x10U}
Register Lock Groups.

enum

DL_EPWM_EMULATION_MODE { DL_EPWM_EMULATION_MODE_STOP_AFTER_NEXT_TB = 0U, DL_EPWM_EMULATION_MODE_STOP_AFTER_FULL_CYCLE = 1U, DL_EPWM_EMULATION_MODE_FREE_RUN = 2U}
Emulation Mode.

enum

DL_EPWM_HRPWM_CHANNEL { DL_EPWM_HRPWM_CHANNEL_A = 0U, DL_EPWM_HRPWM_CHANNEL_B = 8U}
HRPWM channel selection (A or B).

enum

DL_EPWM_HRPWM_MEP_EDGE_MODE { DL_EPWM_HRPWM_MEP_CTRL_DISABLE = 0U, DL_EPWM_HRPWM_MEP_CTRL_RISING_EDGE = 1U, DL_EPWM_HRPWM_MEP_CTRL_FALLING_EDGE = 2U, DL_EPWM_HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE = 3U}
MEP (Micro Edge Positioner) edge control mode.

enum

DL_EPWM_HRPWM_MEP_CTRL_MODE { DL_EPWM_HRPWM_MEP_DUTY_PERIOD_CTRL = 0U, DL_EPWM_HRPWM_MEP_PHASE_CTRL = 1U}
MEP (Micro Edge Positioner) control source mode.

enum

DL_EPWM_HRPWM_LOAD_MODE { DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO = 0U, DL_EPWM_HRPWM_LOAD_ON_CNTR_PERIOD = 1U, DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO_PERIOD = 2U, DL_EPWM_HRPWM_LOAD_ON_CMPX_EQ = 3U}
HRPWM shadow-to-active load event.

enum

DL_EPWM_HRPWM_CHANNEL_B_OUTPUT { DL_EPWM_HRPWM_OUTPUT_ON_B_NORMAL = 0U, DL_EPWM_HRPWM_OUTPUT_ON_B_INV_A = 1U}
HRPWM ePWMxB output signal selection.

enum

DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE { DL_EPWM_HRPWM_COUNTER_COMPARE_A = 0U, DL_EPWM_HRPWM_COUNTER_COMPARE_B = 4U}
HRPWM counter compare module selection (A or B).

enum

DL_EPWM_HRPWM_MEP_DEAD_BAND_EDGE_MODE { DL_EPWM_HRPWM_DB_MEP_CTRL_DISABLE = 0U, DL_EPWM_HRPWM_DB_MEP_CTRL_RED = 1U, DL_EPWM_HRPWM_DB_MEP_CTRL_FED = 2U, DL_EPWM_HRPWM_DB_MEP_CTRL_RED_FED = 3U}
HRPWM Dead Band MEP (Micro Edge Positioner) edge control.

Functions

Name

__STATIC_INLINE void

DL_EPWM_setTimeBaseCounter(EPWM_Regs * epwmHwRegsPtr, uint16_t count)
Sets the time base count.

__STATIC_INLINE void

DL_EPWM_setClockPrescaler(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_CLOCK_DIVIDER prescaler, DL_EPWM_HS_CLOCK_DIVIDER highSpeedPrescaler)
Sets the time base clock and the high speed time base clock count pre-scaler.

__STATIC_INLINE void

DL_EPWM_setPeriodLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_PERIOD_LOAD_MODE loadMode)
Sets PWM period load mode.

__STATIC_INLINE void

DL_EPWM_setTimeBaseCounterMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TIME_BASE_COUNT_MODE counterMode)
Sets time base counter mode.

__STATIC_INLINE void

DL_EPWM_selectPeriodLoadEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_PERIOD_SHADOW_LOAD_MODE shadowLoadMode)
Sets shadow to active period load on sync mode.

__STATIC_INLINE uint16_t

DL_EPWM_getTimeBaseCounterValue(const EPWM_Regs * epwmHwRegsPtr)
Returns time base counter value.

__STATIC_INLINE bool

DL_EPWM_getTimeBaseCounterOverflowStatus(const EPWM_Regs * epwmHwRegsPtr)
Returns time base counter maximum status.

__STATIC_INLINE void

DL_EPWM_clearTimeBaseCounterOverflowEvent(EPWM_Regs * epwmHwRegsPtr)
Clears max time base counter event.

__STATIC_INLINE uint16_t

DL_EPWM_getTimeBaseCounterDirection(const EPWM_Regs * epwmHwRegsPtr)
Returns time base counter direction.

__STATIC_INLINE void

DL_EPWM_setTimeBasePeriod(EPWM_Regs * epwmHwRegsPtr, uint16_t periodCount)
Sets the PWM period count.

__STATIC_INLINE uint16_t

DL_EPWM_getTimeBasePeriod(const EPWM_Regs * epwmHwRegsPtr)
Gets the PWM period count.

__STATIC_INLINE void

DL_EPWM_setDeadBandCounterClock(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DEAD_BAND_CLOCK_MODE clockMode)
Sets Dead Band Counter clock rate.

__STATIC_INLINE void

DL_EPWM_setCountModeAfterSync(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_SYNC_COUNT_MODE mode)
Sets count mode after phase shift sync.

__STATIC_INLINE void

DL_EPWM_forceSyncPulse(EPWM_Regs * epwmHwRegsPtr)
Forces a software sync pulse.

__STATIC_INLINE void

DL_EPWM_setSyncInPulseSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_SYNC_IN_PULSE_SOURCE source)
Sets up the source for sync-in pulse.

__STATIC_INLINE void

DL_EPWM_enableSyncOutPulseSource(EPWM_Regs * epwmHwRegsPtr, uint16_t source)
Enables sync-out pulse source.

__STATIC_INLINE void

DL_EPWM_disableSyncOutPulseSource(EPWM_Regs * epwmHwRegsPtr, uint16_t source)
Disables sync-out pulse source.

__STATIC_INLINE void

DL_EPWM_setOneShotSyncOutTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER trigger)
Sets up the one-shot sync-out trigger source.

__STATIC_INLINE void

DL_EPWM_enablePhaseShiftLoad(EPWM_Regs * epwmHwRegsPtr)
Enables phase shift load.

__STATIC_INLINE void

DL_EPWM_disablePhaseShiftLoad(EPWM_Regs * epwmHwRegsPtr)
Disables phase shift load.

__STATIC_INLINE void

DL_EPWM_enableOneShotSync(EPWM_Regs * epwmHwRegsPtr)
Enables one shot sync mode.

__STATIC_INLINE void

DL_EPWM_disableOneShotSync(EPWM_Regs * epwmHwRegsPtr)
Disables one shot sync mode.

__STATIC_INLINE void

DL_EPWM_startOneShotSync(EPWM_Regs * epwmHwRegsPtr)
Starts one shot sync mode.

__STATIC_INLINE bool

DL_EPWM_getSyncStatus(const EPWM_Regs * epwmHwRegsPtr)
Returns external sync signal status.

__STATIC_INLINE void

DL_EPWM_clearSyncEvent(EPWM_Regs * epwmHwRegsPtr)
Clears external sync signal event.

__STATIC_INLINE void

DL_EPWM_setPhaseShift(EPWM_Regs * epwmHwRegsPtr, uint16_t phaseCount)
Sets the phase shift offset counter value.

__STATIC_INLINE void

DL_EPWM_setSyncPulseSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_SYNC_PULSE_SOURCE syncPulseSource)
Sets the PWM sync output pulse source.

__STATIC_INLINE void

DL_EPWM_setCounterCompareShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_COUNTER_COMPARE_MODULE compModule, DL_EPWM_COUNTER_COMPARE_LOAD_MODE loadMode)
Sets up the Counter Compare shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableCounterCompareShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_COUNTER_COMPARE_MODULE compModule)
Disables Counter Compare shadow load mode.

__STATIC_INLINE void

DL_EPWM_setCounterCompareValue(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_COUNTER_COMPARE_MODULE compModule, uint16_t compCount)
Sets counter compare values.

__STATIC_INLINE void

DL_EPWM_getCounterCompareValue(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_COUNTER_COMPARE_MODULE compModule, uint16_t * ctrCmpPtr)
Gets counter compare values.

__STATIC_INLINE void

DL_EPWM_getCounterCompareShadowStatus(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_COUNTER_COMPARE_MODULE compModule, bool * ctrCmpShdwStatusPtr)
Returns the counter compare shadow register full status.

__STATIC_INLINE void

DL_EPWM_setActionQualifierShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_MODULE aqModule, DL_EPWM_ACTION_QUALIFIER_LOAD_MODE loadMode)
Enables and sets the Action Qualifier shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableActionQualifierShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_MODULE aqModule)
Disables Action Qualifier shadow load mode.

__STATIC_INLINE void

DL_EPWM_setActionQualifierT1TriggerSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE trigger)
Sets up Action qualifier trigger source for event T1.

__STATIC_INLINE void

DL_EPWM_setActionQualifierT2TriggerSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE trigger)
Sets up Action qualifier trigger source for event T2.

__STATIC_INLINE void

DL_EPWM_setActionQualifierAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput, DL_EPWM_ACTION_QUALIFIER_OUTPUT output, DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT event)
Sets up Action qualifier outputs.

__STATIC_INLINE void

DL_EPWM_setActionQualifierActionComplete(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput, DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION action)
Sets up Action qualifier event outputs.

__STATIC_INLINE void

DL_EPWM_setAdditionalActionQualifierActionComplete(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput, DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION action)
Sets up Additional action qualifier event outputs.

__STATIC_INLINE void

DL_EPWM_setActionQualifierContSWForceShadowMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_CONT_FORCE mode)
Sets up Action qualifier continuous software load mode.

__STATIC_INLINE void

DL_EPWM_setActionQualifierContSWForceAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput, DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT output)
Triggers a continuous software forced event.

__STATIC_INLINE void

DL_EPWM_setActionQualifierSWAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput, DL_EPWM_ACTION_QUALIFIER_OUTPUT output)
Sets up one time software forced Action qualifier outputs.

__STATIC_INLINE void

DL_EPWM_forceActionQualifierSWAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput)
Triggers a one time software forced event on Action qualifier.

__STATIC_INLINE void

DL_EPWM_setDeadBandOutputSwapMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DEAD_BAND_OUTPUT output, bool enableSwapMode)
Sets Dead Band output swap mode.

__STATIC_INLINE void

DL_EPWM_setDeadBandDelayMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DEAD_BAND_DELAY_MODE delayMode, bool enableDelayMode)
Sets Dead Band signal output mode.

__STATIC_INLINE void

DL_EPWM_setDeadBandDelayPolarity(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DEAD_BAND_DELAY_MODE delayMode, DL_EPWM_DEAD_BAND_POLARITY polarity)
Sets Dead Band delay polarity.

__STATIC_INLINE void

DL_EPWM_setRisingEdgeDeadBandDelayInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DB_INPUT input)
Sets Rising Edge Dead Band delay input.

__STATIC_INLINE void

DL_EPWM_setFallingEdgeDeadBandDelayInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DB_INPUT input)
Sets Falling Edge Dead Band delay input.

__STATIC_INLINE void

DL_EPWM_setDeadBandControlShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE loadMode)
Sets the Dead Band control shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableDeadBandControlShadowLoadMode(EPWM_Regs * epwmHwRegsPtr)
Disables Dead Band control shadow load mode.

__STATIC_INLINE void

DL_EPWM_setRisingEdgeDelayCountShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE loadMode)
Sets the RED (Rising Edge Delay) shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableRisingEdgeDelayCountShadowLoadMode(EPWM_Regs * epwmHwRegsPtr)
Disables the RED (Rising Edge Delay) shadow load mode.

__STATIC_INLINE void

DL_EPWM_setFallingEdgeDelayCountShadowLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE loadMode)
Sets the FED (Falling Edge Delay) shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableFallingEdgeDelayCountShadowLoadMode(EPWM_Regs * epwmHwRegsPtr)
Disables the FED (Falling Edge Delay) shadow load mode.

__STATIC_INLINE void

DL_EPWM_setRisingEdgeDelayCount(EPWM_Regs * epwmHwRegsPtr, uint16_t redCount)
Sets ePWM RED count.

__STATIC_INLINE void

DL_EPWM_setFallingEdgeDelayCount(EPWM_Regs * epwmHwRegsPtr, uint16_t fedCount)
Sets ePWM FED count.

__STATIC_INLINE void

DL_EPWM_enableChopper(EPWM_Regs * epwmHwRegsPtr)
Enables chopper mode.

__STATIC_INLINE void

DL_EPWM_disableChopper(EPWM_Regs * epwmHwRegsPtr)
Disables chopper mode.

__STATIC_INLINE void

DL_EPWM_setChopperDutyCycle(EPWM_Regs * epwmHwRegsPtr, uint16_t dutyCycleCount)
Sets chopper duty cycle.

__STATIC_INLINE void

DL_EPWM_setChopperFreq(EPWM_Regs * epwmHwRegsPtr, uint16_t freqDiv)
Sets chopper clock frequency scaler.

__STATIC_INLINE void

DL_EPWM_setChopperFirstPulseWidth(EPWM_Regs * epwmHwRegsPtr, uint16_t firstPulseWidth)
Sets chopper first pulse width.

__STATIC_INLINE void

DL_EPWM_enableTripZoneSignals(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_SIGNAL tzSignal)
Enables Trip Zone signal.

__STATIC_INLINE void

DL_EPWM_disableTripZoneSignals(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_SIGNAL tzSignal)
Disables Trip Zone signal.

__STATIC_INLINE void

DL_EPWM_setTripZoneDigitalCompareEventCondition(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT dcType, DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT dcEvent)
Sets Digital compare conditions that cause Trip Zone event.

__STATIC_INLINE void

DL_EPWM_enableTripZoneAdvAction(EPWM_Regs * epwmHwRegsPtr)
Enables advanced Trip Zone event Action.

__STATIC_INLINE void

DL_EPWM_disableTripZoneAdvAction(EPWM_Regs * epwmHwRegsPtr)
Disables advanced Trip Zone event Action.

__STATIC_INLINE void

DL_EPWM_setTripZoneAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TRIP_ZONE_EVENT tzEvent, DL_EPWM_TRIP_ZONE_ACTION tzAction)
Sets Trip Zone Action.

__STATIC_INLINE void

DL_EPWM_setTripZoneAdvAction(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TRIP_ZONE_ADVANCED_EVENT tzAdvEvent, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvAction)
Sets Advanced Trip Zone Action.

__STATIC_INLINE void

DL_EPWM_setTripZoneAdvDigitalCompareActionA(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT tzAdvDCEvent, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvDCAction)
Sets Advanced Digital Compare Trip Zone Action on ePWMA.

__STATIC_INLINE void

DL_EPWM_setTripZoneAdvDigitalCompareActionB(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT tzAdvDCEvent, DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvDCAction)
Sets Advanced Digital Compare Trip Zone Action on ePWMB.

__STATIC_INLINE void

DL_EPWM_enableTripZoneInterrupt(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_INTERRUPT tzInterrupt)
Enables Trip Zone interrupts.

__STATIC_INLINE void

DL_EPWM_disableTripZoneInterrupt(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_INTERRUPT tzInterrupt)
Disables Trip Zone interrupts.

__STATIC_INLINE uint16_t

DL_EPWM_getTripZoneFlagStatus(const EPWM_Regs * epwmHwRegsPtr)
Gets the Trip Zone status flag.

__STATIC_INLINE uint16_t

DL_EPWM_getCycleByCycleTripZoneFlagStatus(const EPWM_Regs * epwmHwRegsPtr)
Gets the Trip Zone Cycle by Cycle flag status.

__STATIC_INLINE uint16_t

DL_EPWM_getOneShotTripZoneFlagStatus(const EPWM_Regs * epwmHwRegsPtr)
Gets the Trip Zone One Shot flag status.

__STATIC_INLINE void

DL_EPWM_selectCycleByCycleTripZoneClearEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE clearEvent)
Sets the Trip Zone CBC pulse clear event.

__STATIC_INLINE void

DL_EPWM_clearTripZoneFlag(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_FLAG tzFlags)
Clears Trip Zone flag.

__STATIC_INLINE void

DL_EPWM_clearCycleByCycleTripZoneFlag(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZCBC_FLAG tzCBCFlags)
Clears the Trip Zone Cycle by Cycle flag.

__STATIC_INLINE void

DL_EPWM_clearOneShotTripZoneFlag(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZOST_FLAG tzOSTFlags)
Clears the Trip Zone One Shot flag.

__STATIC_INLINE void

DL_EPWM_forceTripZoneEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TZ_FORCE_EVENTS tzForceEvent)
Forces Trip Zone events.

__STATIC_INLINE void

DL_EPWM_enableInterrupt(EPWM_Regs * epwmHwRegsPtr)
Enables ePWM interrupt.

__STATIC_INLINE void

DL_EPWM_disableInterrupt(EPWM_Regs * epwmHwRegsPtr)
Disables ePWM interrupt.

__STATIC_INLINE void

DL_EPWM_setInterruptSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_TBC_INTERRUPTS interruptSource)
Sets the ePWM interrupt source.

__STATIC_INLINE void

DL_EPWM_setInterruptEventCount(EPWM_Regs * epwmHwRegsPtr, uint16_t eventCount)
Sets the ePWM interrupt event counts.

__STATIC_INLINE bool

DL_EPWM_getEventTriggerInterruptStatus(const EPWM_Regs * epwmHwRegsPtr)
Returns the interrupt status.

__STATIC_INLINE void

DL_EPWM_clearEventTriggerInterruptFlag(EPWM_Regs * epwmHwRegsPtr)
Clears interrupt flag.

__STATIC_INLINE void

DL_EPWM_enableInterruptEventCountInit(EPWM_Regs * epwmHwRegsPtr)
Enables Pre-interrupt count load.

__STATIC_INLINE void

DL_EPWM_disableInterruptEventCountInit(EPWM_Regs * epwmHwRegsPtr)
Disables interrupt count load.

__STATIC_INLINE void

DL_EPWM_forceInterruptEventCountInit(EPWM_Regs * epwmHwRegsPtr)
Forces a software pre interrupt event counter load.

__STATIC_INLINE void

DL_EPWM_setInterruptEventCountInitValue(EPWM_Regs * epwmHwRegsPtr, uint16_t eventCount)
Sets interrupt count.

__STATIC_INLINE uint16_t

DL_EPWM_getInterruptEventCount(const EPWM_Regs * epwmHwRegsPtr)
Gets the interrupt count.

__STATIC_INLINE void

DL_EPWM_forceEventTriggerInterrupt(EPWM_Regs * epwmHwRegsPtr)
Forces ePWM interrupt.

__STATIC_INLINE void

DL_EPWM_enableADCTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Enables ADC SOC event.

__STATIC_INLINE void

DL_EPWM_disableADCTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Disables ADC SOC event.

__STATIC_INLINE void

DL_EPWM_setADCTriggerSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType, DL_EPWM_ADC_START_OF_CONVERSION_SOURCE socSource)
Sets the ePWM SOC source.

__STATIC_INLINE void

DL_EPWM_setADCTriggerEventPrescale(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType, uint16_t preScaleCount)
Sets the ePWM SOC event counts.

__STATIC_INLINE void

DL_EPWM_getADCTriggerFlagStatus(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType, bool * adcTrgFlgStatusPtr)
Returns the SOC event status.

__STATIC_INLINE void

DL_EPWM_clearADCTriggerFlag(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Clears SOC flag.

__STATIC_INLINE void

DL_EPWM_enableADCTriggerEventCountInit(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Enables Pre-SOC event count load.

__STATIC_INLINE void

DL_EPWM_disableADCTriggerEventCountInit(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Disables Pre-SOC event count load.

__STATIC_INLINE void

DL_EPWM_forceADCTriggerEventCountInit(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Forces a software pre SOC event counter load.

__STATIC_INLINE void

DL_EPWM_setADCTriggerEventCountInitValue(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType, uint16_t eventCount)
Sets ADC Trigger count values.

__STATIC_INLINE void

DL_EPWM_getADCTriggerEventCount(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType, uint16_t * adcTrgEvtCntPtr)
Gets the SOC event count.

__STATIC_INLINE void

DL_EPWM_forceADCTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_ADC_START_OF_CONVERSION adcSOCType)
Forces SOC event.

__STATIC_INLINE void

DL_EPWM_selectDigitalCompareTripInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT tripSource, DL_EPWM_DIGITAL_COMPARE dcType)
Sets the DC trip input.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareBlankingWindow(EPWM_Regs * epwmHwRegsPtr)
Enables DC filter blanking window.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareBlankingWindow(EPWM_Regs * epwmHwRegsPtr)
Disables DC filter blanking window.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareWindowInverseMode(EPWM_Regs * epwmHwRegsPtr)
Enables Digital Compare Window inverse mode.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareWindowInverseMode(EPWM_Regs * epwmHwRegsPtr)
Disables Digital Compare Window inverse mode.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareBlankingEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE blankingPulse)
Sets the Digital Compare filter blanking pulse.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareFilterInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT filterInput)
Sets up the Digital Compare filter input.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareEdgeFilter(EPWM_Regs * epwmHwRegsPtr)
Enables Digital Compare Edge Filter.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareEdgeFilter(EPWM_Regs * epwmHwRegsPtr)
Disables Digital Compare Edge Filter.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareEdgeFilterMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE edgeMode)
Sets the Digital Compare Edge Filter Mode.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareEdgeFilterEdgeCount(EPWM_Regs * epwmHwRegsPtr, uint16_t edgeCount)
Sets the Digital Compare Edge Filter Edge Count.

__STATIC_INLINE uint16_t

DL_EPWM_getDigitalCompareEdgeFilterEdgeCount(const EPWM_Regs * epwmHwRegsPtr)
Returns the Digital Compare Edge Filter Edge Count.

__STATIC_INLINE uint16_t

DL_EPWM_getDigitalCompareEdgeFilterEdgeStatus(const EPWM_Regs * epwmHwRegsPtr)
Returns the Digital Compare Edge filter captured edge count status.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareWindowOffset(EPWM_Regs * epwmHwRegsPtr, uint16_t windowOffsetCount)
Sets up the Digital Compare filter window offset.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareWindowLength(EPWM_Regs * epwmHwRegsPtr, uint16_t windowLengthCount)
Sets up the Digital Compare filter window length.

__STATIC_INLINE uint16_t

DL_EPWM_getDigitalCompareBlankingWindowOffsetCount(const EPWM_Regs * epwmHwRegsPtr)
Returns DC filter blanking window offset count.

__STATIC_INLINE uint16_t

DL_EPWM_getDigitalCompareBlankingWindowLengthCount(const EPWM_Regs * epwmHwRegsPtr)
Returns DC filter blanking window length count.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareEventSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule, DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent, DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE dcEventSource)
Sets up the Digital Compare Event source.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareEventSyncMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule, DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent, DL_EPWM_DIGITAL_COMPARE_SYNC_MODE syncMode)
Sets up the Digital Compare input sync mode.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareADCTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule)
Enables Digital Compare to generate Start of Conversion.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareADCTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule)
Disables Digital Compare from generating Start of Conversion.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareSyncEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule)
Enables Digital Compare to generate sync out pulse.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareSyncEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule)
Disables Digital Compare from generating sync out pulse.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareCBCLatchMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule, DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent, DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE latchMode)
Sets up the Digital Compare CBC latch mode.

__STATIC_INLINE void

DL_EPWM_selectDigitalCompareCBCLatchClearEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule, DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent, DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT clearEvent)
Sets the Digital Compare CBC latch clear event.

__STATIC_INLINE void

DL_EPWM_getDigitalCompareCBCLatchStatus(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DIGITAL_COMPARE_MODULE dcModule, DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent, bool * cbcLatchStatusPtr)
Gets the Digital Compare CBC latch status.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareCounterCapture(EPWM_Regs * epwmHwRegsPtr)
Enables the Time Base Counter Capture controller.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareCounterCapture(EPWM_Regs * epwmHwRegsPtr)
Disables the Time Base Counter Capture controller.

__STATIC_INLINE void

DL_EPWM_setDigitalCompareCounterShadowMode(EPWM_Regs * epwmHwRegsPtr, bool enableShadowMode)
Sets the Time Base Counter Capture mode.

__STATIC_INLINE bool

DL_EPWM_getDigitalCompareCaptureStatus(const EPWM_Regs * epwmHwRegsPtr)
Returns the DC Capture event status.

__STATIC_INLINE void

DL_EPWM_configureDigitalCompareCounterCaptureMode(EPWM_Regs * epwmHwRegsPtr, bool disableClearMode)
Configures DC capture operating mode.

__STATIC_INLINE void

DL_EPWM_clearDigitalCompareCaptureStatusFlag(EPWM_Regs * epwmHwRegsPtr)
Clears DC capture latched status flag.

__STATIC_INLINE uint16_t

DL_EPWM_getDigitalCompareCaptureCount(const EPWM_Regs * epwmHwRegsPtr)
Returns the DC Time Base Counter capture value.

__STATIC_INLINE void

DL_EPWM_enableDigitalCompareTripCombinationInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DC_COMBINATIONAL_TRIP_IN tripInput, DL_EPWM_DIGITAL_COMPARE dcType)
Enables DC TRIP combinational input.

__STATIC_INLINE void

DL_EPWM_disableDigitalCompareTripCombinationInput(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_DC_COMBINATIONAL_TRIP_IN tripInput, DL_EPWM_DIGITAL_COMPARE dcType)
Disables DC TRIP combinational input.

__STATIC_INLINE void

DL_EPWM_enableValleyCapture(EPWM_Regs * epwmHwRegsPtr)
Enables Valley Capture mode.

__STATIC_INLINE void

DL_EPWM_disableValleyCapture(EPWM_Regs * epwmHwRegsPtr)
Disables valley capture mode.

__STATIC_INLINE void

DL_EPWM_startValleyCapture(EPWM_Regs * epwmHwRegsPtr)
Starts valley capture mode.

__STATIC_INLINE void

DL_EPWM_setValleyTriggerSource(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_VALLEY_TRIGGER_SOURCE trigger)
Sets valley capture trigger.

__STATIC_INLINE void

DL_EPWM_setValleyTriggerEdgeCounts(EPWM_Regs * epwmHwRegsPtr, uint16_t startCount, uint16_t stopCount)
Sets valley capture trigger source count.

__STATIC_INLINE void

DL_EPWM_enableValleyHWDelay(EPWM_Regs * epwmHwRegsPtr)
Enables valley switching delay.

__STATIC_INLINE void

DL_EPWM_disableValleyHWDelay(EPWM_Regs * epwmHwRegsPtr)
Disables valley switching delay.

__STATIC_INLINE void

DL_EPWM_setValleySWDelayValue(EPWM_Regs * epwmHwRegsPtr, uint16_t delayOffsetValue)
Sets Valley delay values.

__STATIC_INLINE void

DL_EPWM_setValleyDelayDivider(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_VALLEY_DELAY_MODE delayMode)
Sets Valley delay mode.

__STATIC_INLINE void

DL_EPWM_getValleyEdgeStatus(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_VALLEY_COUNTER_EDGE edge, bool * valleyEdgeStatusPtr)
Gets the valley edge status bit.

__STATIC_INLINE uint16_t

DL_EPWM_getValleyCount(const EPWM_Regs * epwmHwRegsPtr)
Gets the Valley Counter value.

__STATIC_INLINE uint16_t

DL_EPWM_getValleyHWDelay(const EPWM_Regs * epwmHwRegsPtr)
Gets the Valley delay value.

__STATIC_INLINE void

DL_EPWM_enableGlobalLoad(EPWM_Regs * epwmHwRegsPtr)
Enables Global shadow load mode.

__STATIC_INLINE void

DL_EPWM_disableGlobalLoad(EPWM_Regs * epwmHwRegsPtr)
Disables Global shadow load mode.

__STATIC_INLINE void

DL_EPWM_setGlobalLoadTrigger(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_GLOBAL_LOAD_TRIGGER loadTrigger)
Sets the Global shadow load pulse.

__STATIC_INLINE void

DL_EPWM_setGlobalLoadEventPrescale(EPWM_Regs * epwmHwRegsPtr, uint16_t prescalePulseCount)
Sets the number of Global load pulse event counts.

__STATIC_INLINE uint16_t

DL_EPWM_getGlobalLoadEventCount(const EPWM_Regs * epwmHwRegsPtr)
Returns the number of Global load pulse event counts.

__STATIC_INLINE void

DL_EPWM_disableGlobalLoadOneShotMode(EPWM_Regs * epwmHwRegsPtr)
Disables one-shot global shadow to active load.

__STATIC_INLINE void

DL_EPWM_enableGlobalLoadOneShotMode(EPWM_Regs * epwmHwRegsPtr)
Enables One shot global shadow to active load.

__STATIC_INLINE void

DL_EPWM_setGlobalLoadOneShotLatch(EPWM_Regs * epwmHwRegsPtr)
Sets One shot global shadow to active load pulse.

__STATIC_INLINE void

DL_EPWM_forceGlobalLoadOneShotEvent(EPWM_Regs * epwmHwRegsPtr)
Forces a software One shot global shadow to active load pulse.

__STATIC_INLINE void

DL_EPWM_enableGlobalLoadRegisters(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_GLOBAL_LOAD_REGISTER loadRegister)
Enables a register to be loaded globally.

__STATIC_INLINE void

DL_EPWM_disableGlobalLoadRegisters(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_GLOBAL_LOAD_REGISTER loadRegister)
Disables a register to be loaded globally.

__STATIC_INLINE void

DL_EPWM_lockRegisters(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_LOCK_REGISTER_GROUP registerGroup)
Locks a group of ePWM registers.

__STATIC_INLINE void

DL_EPWM_setEmulationMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_EMULATION_MODE emulationMode)
Sets the emulation mode of the time base counter.

__STATIC_INLINE void

DL_EPWM_setHRPhaseShift(EPWM_Regs * epwmHwRegsPtr, uint32_t phaseCount)
Sets the consolidated phase shift value in high resolution mode.

__STATIC_INLINE void

DL_EPWM_setHiResPhaseShiftOnly(EPWM_Regs * epwmHwRegsPtr, uint16_t hrPhaseCount)
Sets only the high resolution phase shift value.

__STATIC_INLINE void

DL_EPWM_setHRTimeBasePeriod(EPWM_Regs * epwmHwRegsPtr, uint32_t periodCount)
Sets the consolidated time base period in high resolution mode.

__STATIC_INLINE void

DL_EPWM_setHiResTimeBasePeriodOnly(EPWM_Regs * epwmHwRegsPtr, uint16_t hrPeriodCount)
Sets only the high resolution time base period.

__STATIC_INLINE uint32_t

DL_EPWM_getHRTimeBasePeriod(const EPWM_Regs * epwmHwRegsPtr)
Gets the consolidated time base period used in high resolution mode.

__STATIC_INLINE uint16_t

DL_EPWM_getHiResTimeBasePeriodOnly(const EPWM_Regs * epwmHwRegsPtr)
Gets only the high resolution time base period.

__STATIC_INLINE void

DL_EPWM_setMEPEdgeMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_CHANNEL channel, DL_EPWM_HRPWM_MEP_EDGE_MODE mepEdgeMode)
Sets the high resolution edge controlled by the MEP (Micro Edge Positioner).

__STATIC_INLINE void

DL_EPWM_setMEPControlMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_CHANNEL channel, DL_EPWM_HRPWM_MEP_CTRL_MODE mepCtrlMode)
Sets the MEP (Micro Edge Positioner) control mode.

__STATIC_INLINE void

DL_EPWM_setHRCounterCompareShadowLoadEvent(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_CHANNEL channel, DL_EPWM_HRPWM_LOAD_MODE loadEvent)
Sets the high resolution comparator shadow load mode.

__STATIC_INLINE void

DL_EPWM_setOutputSwapMode(EPWM_Regs * epwmHwRegsPtr, bool enableOutputSwap)
Sets the HRPWM output swap mode.

__STATIC_INLINE void

DL_EPWM_setChannelBOutputPath(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_CHANNEL_B_OUTPUT outputOnB)
Sets the HRPWM output signal on ePWMxB.

__STATIC_INLINE void

DL_EPWM_enableAutoConversion(EPWM_Regs * epwmHwRegsPtr)
Enables MEP automatic scale mode.

__STATIC_INLINE void

DL_EPWM_disableAutoConversion(EPWM_Regs * epwmHwRegsPtr)
Disables MEP automatic scale mode.

__STATIC_INLINE void

DL_EPWM_enablePeriodControl(EPWM_Regs * epwmHwRegsPtr)
Enables the high resolution period feature.

__STATIC_INLINE void

DL_EPWM_disablePeriodControl(EPWM_Regs * epwmHwRegsPtr)
Disables the high resolution period feature.

__STATIC_INLINE void

DL_EPWM_enableHRPhaseShiftLoad(EPWM_Regs * epwmHwRegsPtr)
Enables loading of the high resolution phase shift value.

__STATIC_INLINE void

DL_EPWM_disableHRPhaseShiftLoad(EPWM_Regs * epwmHwRegsPtr)
Disables loading of the high resolution phase shift value.

__STATIC_INLINE void

DL_EPWM_setTranslatorRemainder(EPWM_Regs * epwmHwRegsPtr, uint16_t trremVal)
Sets the Translator Remainder value.

__STATIC_INLINE void

DL_EPWM_setHRCounterCompareValue(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule, uint32_t compCount)
Sets the consolidated counter compare value in high resolution mode.

__STATIC_INLINE void

DL_EPWM_setHiResCounterCompareValueOnly(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule, uint16_t hrCompCount)
Sets only the high resolution counter compare value.

__STATIC_INLINE void

DL_EPWM_getHRCounterCompareValue(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule, uint32_t * compCountPtr)
Gets the consolidated counter compare value in high resolution mode.

__STATIC_INLINE void

DL_EPWM_getHiResCounterCompareValueOnly(const EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule, uint16_t * hrCompCountPtr)
Gets only the high resolution counter compare value.

__STATIC_INLINE void

DL_EPWM_setHRRisingEdgeDelay(EPWM_Regs * epwmHwRegsPtr, uint32_t redCount)
Sets the consolidated Rising Edge Delay count in high resolution mode.

__STATIC_INLINE void

DL_EPWM_setHiResRisingEdgeDelayOnly(EPWM_Regs * epwmHwRegsPtr, uint16_t hrRedCount)
Sets only the high resolution Rising Edge Delay count.

__STATIC_INLINE void

DL_EPWM_setHRFallingEdgeDelay(EPWM_Regs * epwmHwRegsPtr, uint32_t fedCount)
Sets the consolidated Falling Edge Delay count in high resolution mode.

__STATIC_INLINE void

DL_EPWM_setHiResFallingEdgeDelayOnly(EPWM_Regs * epwmHwRegsPtr, uint16_t hrFedCount)
Sets only the high resolution Falling Edge Delay count.

__STATIC_INLINE void

DL_EPWM_setMEPStep(HRPWMCAL_Regs * hrpwmcalHwRegsPtr, uint16_t mepCount)
Sets the high resolution MEP (Micro Edge Positioner) step count.

__STATIC_INLINE void

DL_EPWM_setDeadbandMEPEdgeSelect(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_MEP_DEAD_BAND_EDGE_MODE mepDBEdge)
Sets the high resolution Dead Band edge controlled by MEP.

__STATIC_INLINE void

DL_EPWM_setHRRisingEdgeDelayLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_LOAD_MODE loadEvent)
Sets the high resolution Dead Band Rising Edge Delay load mode.

__STATIC_INLINE void

DL_EPWM_setHRFallingEdgeDelayLoadMode(EPWM_Regs * epwmHwRegsPtr, DL_EPWM_HRPWM_LOAD_MODE loadEvent)
Sets the high resolution Dead Band Falling Edge Delay load mode.

__STATIC_INLINE void

DL_EPWM_setHRCalContextDefaultValues(DL_EPWM_HRCalContext * hrCalContextPtr)
Initializes an HRCalContext structure to its default (zero) values.

void

DL_EPWM_calibrateHRPWMScaleFactor(HRPWMCAL_Regs * hrpwmcalHwRegsPtr, DL_EPWM_HRCalContext * hrCalContextPtr, int32_t * calibrationStatusPtr)
Run one step of the Scale Factor Optimizer (SFO) MEP calibration state machine.

Defines

Name

DL_EPWM_SYNC_OUT_SOURCE_MASK
Sync Out Source Mask with all sources selected.

DL_EPWM_DB_RED_COUNT_MAX
Maximum valid value for rising edge delay count.

DL_EPWM_DB_FED_COUNT_MAX
Maximum valid value for falling edge delay count.

DL_EPWM_CHOPPER_DUTY_CYCLE_COUNT_MAX
Maximum valid value for chopper duty cycle count.

DL_EPWM_CHOPPER_FREQ_DIV_MAX
Maximum valid value for chopper clock frequency divider.

DL_EPWM_CHOPPER_FIRST_PULSE_WIDTH_MAX
Maximum valid value for chopper first pulse width.

DL_EPWM_TZ_SIGNAL_VALID_MASK
Mask for valid values for Tripzone signal.

DL_EPWM_TZ_INTERRUPT_VALID_MASK
Mask for valid values for Tripzone interrupts.

DL_EPWM_TZ_FLAG_VALID_MASK
Mask for valid values for Tripzone flags.

DL_EPWM_TZ_CBC_OST_FLAG_VALID_MASK
Mask for valid values for Tripzone cycle-by-cycle and one-shot flags.

DL_EPWM_TZ_FRC_EVT_VALID_MASK
Mask for valid values for Tripzone events that can be forced.

DL_EPWM_PRESCALE_PULSE_COUNT_MAX
Maximum valid value for prescale pulse count.

DL_EPWM_INT_EVT_COUNT_MAX
Maximum valid value for interrupt event count.

DL_EPWM_ADC_PRESCALE_COUNT_MAX
Maximum valid value for ADC Prescale count.

DL_EPWM_SOC_INIT_EVT_COUNT_MAX
Maximum valid value for event count written to ADC SOC init register.

DL_EPWM_DCTRIPSEL_COMBINATION_SEL
Trip combination input select for DC.

DL_EPWM_DC_CMB_TRIPIN_VALID_MASK
Mask for valid values for DC Combinational trip input.

DL_EPWM_DC_EDGE_FILTER_COUNT_MAX
Maximum valid value for edge count given as input to DC edge filter.

DL_EPWM_VALLEY_TRIGGER_COUNT_MAX
Maximum valid value for Valley trigger count.

DL_EPWM_GL_REG_VALID_MASK
Mask for valid values for Global load register.

DL_EPWM_LOCK_REG_KEY
Key used by EPWM Lock register.

DL_EPWM_HRPWM_SFO_CAL_PERIOD
OTTOCAL counter period value (HRPRD) used during SFO calibration runs.

DL_EPWM_HRPWM_SFO_MEP_STEP_A
Number of MEP delay steps used for the first calibration measurement point.

DL_EPWM_HRPWM_SFO_MEP_STEP_B
Number of MEP delay steps used for the second calibration measurement point.

DL_EPWM_HRPWM_HR_DATA_OFS
Bit offset of the 8-bit HR data value within its 16-bit HRPWM register field.

DL_EPWM_HRPWM_DB_HR_BITS
Number of HR bits in the HRPWM Dead Band delay register field (DBREDHR/DBFEDHR).

DL_EPWM_HRPWMCALIBRATION_COMPLETE
HRPWM SFO calibration completed successfully and HRMSTEP has been updated.

DL_EPWM_HRPWMCALIBRATION_INCOMPLETE
HRPWM SFO calibration is still in progress.

DL_EPWM_HRPWMCALIBRATION_ERROR
HRPWM SFO calibration failed: computed MEP scale factor exceeds the maximum of 255.

DL_EPWM_HRPWM_PHASE_COUNT_MAX
Maximum valid 24-bit consolidated count (phase shift, time base period, counter compare).

DL_EPWM_HRPWM_HR_COUNT_MAX
Maximum valid 8-bit high resolution count (hrPhaseCount, hrPeriodCount, hrCompCount, mepCount).

DL_EPWM_HRPWM_TRREM_MAX
Maximum valid 11-bit translator remainder value.

DL_EPWM_HRPWM_RED_COUNT_MAX
Maximum valid 21-bit consolidated Rising Edge Delay count.

DL_EPWM_HRPWM_HR_RED_FED_COUNT_MAX
Maximum valid 7-bit high resolution Rising/Falling Edge Delay count.

DL_EPWM_HRPWM_HR_DATA_MASK
Mask for the 8-bit HR data portion of a consolidated HRPWM count value.

Types Documentation

enum DL_EPWM_CLOCK_DIVIDER

Enumerator

Value

Description

DL_EPWM_CLOCK_DIVIDER_1

0U

Divide clock by 1.

DL_EPWM_CLOCK_DIVIDER_2

1U

Divide clock by 2.

DL_EPWM_CLOCK_DIVIDER_4

2U

Divide clock by 4.

DL_EPWM_CLOCK_DIVIDER_8

3U

Divide clock by 8.

DL_EPWM_CLOCK_DIVIDER_16

4U

Divide clock by 16.

DL_EPWM_CLOCK_DIVIDER_32

5U

Divide clock by 32.

DL_EPWM_CLOCK_DIVIDER_64

6U

Divide clock by 64.

DL_EPWM_CLOCK_DIVIDER_128

7U

Divide clock by 128.

Time Base Clock Divider Values.

enum DL_EPWM_HS_CLOCK_DIVIDER

Enumerator

Value

Description

DL_EPWM_HS_CLOCK_DIVIDER_1

0U

Divide clock by 1.

DL_EPWM_HS_CLOCK_DIVIDER_2

1U

Divide clock by 2.

DL_EPWM_HS_CLOCK_DIVIDER_4

2U

Divide clock by 4.

DL_EPWM_HS_CLOCK_DIVIDER_6

3U

Divide clock by 6.

DL_EPWM_HS_CLOCK_DIVIDER_8

4U

Divide clock by 8.

DL_EPWM_HS_CLOCK_DIVIDER_10

5U

Divide clock by 10.

DL_EPWM_HS_CLOCK_DIVIDER_12

6U

Divide clock by 12.

DL_EPWM_HS_CLOCK_DIVIDER_14

7U

Divide clock by 14.

High Speed Time Base Clock Divider Values.

enum DL_EPWM_PERIOD_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_PERIOD_LOAD_MODE_SHADOW_LOAD

0U

PWM Period register access is through shadow register.

DL_EPWM_PERIOD_LOAD_MODE_DIRECT_LOAD

1U

PWM Period register access is direct.

Period Register Load Mode.

enum DL_EPWM_TIME_BASE_COUNT_MODE

Enumerator

Value

Description

DL_EPWM_TIME_BASE_COUNT_MODE_UP

0U

Up - count mode.

DL_EPWM_TIME_BASE_COUNT_MODE_DOWN

1U

Down - count mode.

DL_EPWM_TIME_BASE_COUNT_MODE_UP_DOWN

2U

Up - down - count mode.

DL_EPWM_TIME_BASE_COUNT_MODE_STOP_FREEZE

3U

Stop - Freeze counter.

Time Base Counter Modes.

enum DL_EPWM_PERIOD_SHADOW_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_PERIOD_SHADOW_LOAD_MODE_COUNTER_ZERO

0U

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

DL_EPWM_PERIOD_SHADOW_LOAD_MODE_COUNTER_SYNC

1U

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

DL_EPWM_PERIOD_SHADOW_LOAD_MODE_SYNC

2U

Shadow to active load occurs only when a SYNC occurs.

Period Shadow Register Load Mode.

enum DL_EPWM_DEAD_BAND_CLOCK_MODE

Enumerator

Value

Description

DL_EPWM_DEAD_BAND_CLOCK_MODE_FULL_CYCLE

0U

Dead band counter runs at TBCLK rate.

DL_EPWM_DEAD_BAND_CLOCK_MODE_HALF_CYCLE

1U

Dead band counter runs at 2*TBCLK rate.

Dead Band Counter Clock Mode.

enum DL_EPWM_SYNC_COUNT_MODE

Enumerator

Value

Description

DL_EPWM_SYNC_COUNT_MODE_DOWN_AFTER_SYNC

0U

Count down after sync event.

DL_EPWM_SYNC_COUNT_MODE_UP_AFTER_SYNC

1U

Count up after sync event.

Synchronization Count Mode.

enum DL_EPWM_SYNC_IN_PULSE_SOURCE

Enumerator

Value

Description

DL_EPWM_SYNC_IN_PULSE_SOURCE_DISABLE

0U

Disable Sync-in.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP0

3U

Sync-in source is ECAP0 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP1

4U

Sync-in source is ECAP1 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM0

5U

Sync-in source is MCPWM0 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM1

6U

Sync-in source is MCPWM1 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_MCPWM2

7U

Sync-in source is MCPWM2 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_ECAP2

10U

Sync-in source is ECAP2 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM0

11U

Sync-in source is EPWM0 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM1

12U

Sync-in source is EPWM1 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM2

13U

Sync-in source is EPWM2 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM3

14U

Sync-in source is EPWM3 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM4

15U

Sync-in source is EPWM4 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_SYNCOUT_EPWM5

16U

Sync-in source is EPWM5 sync-out signal.

DL_EPWM_SYNC_IN_PULSE_SOURCE_ECAT_SYNC0

17U

Sync-in source is ECAT_SYNC0.

DL_EPWM_SYNC_IN_PULSE_SOURCE_ECAT_SYNC1

18U

Sync-in source is ECAT_SYNC1.

DL_EPWM_SYNC_IN_PULSE_SOURCE_FSIRXA_TRIG1

19U

Sync-in source is FSIRXA_TRIG1.

DL_EPWM_SYNC_IN_PULSE_SOURCE_INPUTXBAR5

20U

Sync-in source is INPUTXBAR5.

DL_EPWM_SYNC_IN_PULSE_SOURCE_INPUTXBAR6

21U

Sync-in source is INPUTXBAR6.

Synchronization Input Pulse Source.

enum DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER

Enumerator

Value

Description

DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER_SYNC

0x0U

Trigger is OSHT sync.

DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER_RELOAD

0x1U

Trigger is OSHT reload.

One-Shot Synchronization Output Trigger.

enum DL_EPWM_SYNC_PULSE_SOURCE

Enumerator

Value

Description

DL_EPWM_SYNC_PULSE_SOURCE_PERIOD

0U

Counter equals Period.

DL_EPWM_SYNC_PULSE_SOURCE_ZERO

1U

Counter equals zero.

DL_EPWM_SYNC_PULSE_SOURCE_COMPC_UP

4U

Counter equals COMPC when counting up.

DL_EPWM_SYNC_PULSE_SOURCE_COMPC_DOWN

5U

Counter equals COMPC when counting down.

DL_EPWM_SYNC_PULSE_SOURCE_COMPD_UP

6U

Counter equals COMPD when counting up.

DL_EPWM_SYNC_PULSE_SOURCE_COMPD_DOWN

7U

Counter equals COMPD when counting down.

Synchronization Output Source.

enum DL_EPWM_SYNC_OUT_PULSE_SOURCE

Enumerator

Value

Description

DL_EPWM_SYNC_OUT_PULSE_ON_SOFTWARE

EPWM_EPWMSYNCOUTEN_SWEN_MASK

Sync out pulse on software force.

DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_ZERO

EPWM_EPWMSYNCOUTEN_ZEROEN_MASK

Sync out pulse on counter equals zero.

DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_B

EPWM_EPWMSYNCOUTEN_CMPBEN_MASK

Sync out pulse on counter equals compare B.

DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_C

EPWM_EPWMSYNCOUTEN_CMPCEN_MASK

Sync out pulse on counter equals compare C.

DL_EPWM_SYNC_OUT_PULSE_ON_CNTR_COMPARE_D

EPWM_EPWMSYNCOUTEN_CMPDEN_MASK

Sync out pulse on counter equals compare D.

DL_EPWM_SYNC_OUT_PULSE_ON_DCA_EVT1_SYNC

EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK

Sync out pulse on digital compare A event 1 sync.

DL_EPWM_SYNC_OUT_PULSE_ON_DCB_EVT1_SYNC

EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK

Sync out pulse on digital compare B event 1 sync.

DL_EPWM_SYNC_OUT_PULSE_ON_ALL

DL_EPWM_SYNC_OUT_SOURCE_MASK

Sync Out Pulse On All.

Sync-out pulse source selection values.

These values can be OR’d together to enable or disable multiple sync-out sources simultaneously.

enum DL_EPWM_COUNTER_COMPARE_MODULE

Enumerator

Value

Description

DL_EPWM_COUNTER_COMPARE_MODULE_A

0U

Counter compare A.

DL_EPWM_COUNTER_COMPARE_MODULE_B

2U

Counter compare B.

DL_EPWM_COUNTER_COMPARE_MODULE_C

5U

Counter compare C.

DL_EPWM_COUNTER_COMPARE_MODULE_D

7U

Counter compare D.

Counter Compare Module.

enum DL_EPWM_COUNTER_COMPARE_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_FREEZE

3U

Freeze shadow to active load.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_ZERO

4U

Load on sync or when counter equals zero.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_PERIOD

5U

Load on sync or when counter equals period.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_CNTR_ZERO_PERIOD

6U

Load on sync or when counter equals zero or period.

DL_EPWM_COUNTER_COMPARE_LOAD_MODE_ON_SYNC_ONLY

8U

Load on sync only.

Counter Compare Shadow Load Mode.

enum DL_EPWM_ACTION_QUALIFIER_MODULE

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_MODULE_A

0U

Action Qualifier A.

DL_EPWM_ACTION_QUALIFIER_MODULE_B

2U

Action Qualifier B.

Action Qualifier Module.

enum DL_EPWM_ACTION_QUALIFIER_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_FREEZE

3U

Freeze shadow to active load.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_ZERO

4U

Load on sync or when counter equals zero.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_PERIOD

5U

Load on sync or when counter equals period.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_CNTR_ZERO_PERIOD

6U

Load on sync or when counter equals zero or period.

DL_EPWM_ACTION_QUALIFIER_LOAD_MODE_ON_SYNC_ONLY

8U

Load on sync only.

Action Qualifier Shadow Load Mode.

enum DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCA_1

0U

Digital compare event A 1.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCA_2

1U

Digital compare event A 2.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCB_1

2U

Digital compare event B 1.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DCB_2

3U

Digital compare event B 2.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_1

4U

Trip zone 1.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_2

5U

Trip zone 2.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_TZ_3

6U

Trip zone 3.

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_SYNCIN

7U

ePWM sync

DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE_DC_EVTFILT

8U

Digital compare filter event.

Action Qualifier Trigger Source.

enum DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_ZERO

0U

Time base counter equals zero.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_PERIOD

2U

Time base counter equals period.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_UP_CMPA

4U

Time base counter up equals COMPA.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_DOWN_CMPA

6U

Time base counter down equals COMPA.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_UP_CMPB

8U

Time base counter up equals COMPB.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_TIMEBASE_DOWN_CMPB

10U

Time base counter down equals COMPB.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T1_COUNT_UP

1U

T1 event on count up.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T1_COUNT_DOWN

3U

T1 event on count down.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T2_COUNT_UP

5U

T2 event on count up.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT_T2_COUNT_DOWN

7U

T2 event on count down.

Action Qualifier Output Events.

enum DL_EPWM_ACTION_QUALIFIER_OUTPUT

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_OUTPUT_NO_CHANGE

0U

No change in the output pins.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_LOW

1U

Set output pins to low.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_HIGH

2U

Set output pins to High.

DL_EPWM_ACTION_QUALIFIER_OUTPUT_TOGGLE

3U

Toggle the output pins.

Action Qualifier Output Actions.

enum DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE_A

0U

ePWMxA output

DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE_B

1U

ePWMxB output

Action Qualifier Output Module Selection.

In DL_EPWM_setXCMPActionQualifierAction, member values (A=0, B=1) are used directly as 16-bit halfword offsets within the XAQCTLA/B register pair: A=0 addresses XAQCTLA, B=1 addresses XAQCTLB.

enum DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_ZERO

0x0U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_ZERO

0x1U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_ZERO

0x2U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_ZERO

0x3U

Time base counter equals zero and toggle the output pins.

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_PERIOD

0x0U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_PERIOD

0x4U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_PERIOD

0x8U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_PERIOD

0xCU

Time base counter equals period and toggle the output pins.

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_CMPA

0x00U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_CMPA

0x10U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_CMPA

0x20U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_CMPA

0x30U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_CMPA

0x00U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_CMPA

0x40U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_CMPA

0x80U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_CMPA

0xC0U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_CMPB

0x000U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_CMPB

0x100U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_CMPB

0x200U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_CMPB

0x300U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_CMPB

0x000U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_CMPB

0x400U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_CMPB

0x800U

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

DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_CMPB

0xC00U

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

Action Qualifier Event Actions.

enum DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION

Enumerator

Value

Description

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_T1

0x0U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_T1

0x1U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_T1

0x2U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_T1

0x3U

T1 event on count up and toggle the output pins.

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_T1

0x0U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_T1

0x4U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_T1

0x8U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_T1

0xCU

T1 event on count down and toggle the output pins.

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_UP_T2

0x00U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_UP_T2

0x10U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_UP_T2

0x20U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_UP_T2

0x30U

T2 event on count up and toggle the output pins.

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_NO_CHANGE_DOWN_T2

0x00U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_LOW_DOWN_T2

0x40U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_HIGH_DOWN_T2

0x80U

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

DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION_TOGGLE_DOWN_T2

0xC0U

T2 event on count down and toggle the output pins.

Additional Action Qualifier Event Actions.

enum DL_EPWM_ACTION_QUALIFIER_CONT_FORCE

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_ZERO

0U

Shadow mode load when counter equals zero.

DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_PERIOD

1U

Shadow mode load when counter equals period.

DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_SH_LOAD_ON_CNTR_ZERO_PERIOD

2U

Shadow mode load when counter equals zero or period.

DL_EPWM_ACTION_QUALIFIER_CONT_FORCE_IMMEDIATE_LOAD

3U

No shadow load mode. Immediate mode only.

Action Qualifier Continuous Software Force Shadow Mode.

enum DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT

Enumerator

Value

Description

DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_DISABLED

0U

Software forcing disabled.

DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_OUTPUT_LOW

1U

Set output pins to low.

DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT_OUTPUT_HIGH

2U

Set output pins to High.

Action Qualifier Software Output Actions.

enum DL_EPWM_DEAD_BAND_OUTPUT

Enumerator

Value

Description

DL_EPWM_DEAD_BAND_OUTPUT_A

1U

DB output is ePWMA.

DL_EPWM_DEAD_BAND_OUTPUT_B

0U

DB output is ePWMB.

Dead Band Output Selection.

enum DL_EPWM_DEAD_BAND_DELAY_MODE

Enumerator

Value

Description

DL_EPWM_DEAD_BAND_DELAY_MODE_RED

1U

DB RED (Rising Edge Delay) mode.

DL_EPWM_DEAD_BAND_DELAY_MODE_FED

0U

DB FED (Falling Edge Delay) mode.

Dead Band Delay Mode.

enum DL_EPWM_DEAD_BAND_POLARITY

Enumerator

Value

Description

DL_EPWM_DEAD_BAND_POLARITY_HIGH

0U

DB polarity is not inverted.

DL_EPWM_DEAD_BAND_POLARITY_LOW

1U

DB polarity is inverted.

Dead Band Delay Polarity.

enum DL_EPWM_DB_INPUT

Enumerator

Value

Description

DL_EPWM_DB_INPUT_EPWMA

0U

Dead Band Input source is EPWMA.

DL_EPWM_DB_INPUT_EPWMB

1U

Dead Band Input source is EPWMB.

DL_EPWM_DB_INPUT_DB_RED

2U

Dead Band Input source is the output of Rising Edge delay.

Dead band inputs.

enum DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE_FREEZE

3U

Freeze shadow to active load.

Dead Band Control Shadow Load Mode.

enum DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE_FREEZE

3U

Freeze shadow to active load.

Rising Edge Delay Count Shadow Load Mode.

enum DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE_FREEZE

3U

Freeze shadow to active load.

Falling Edge Delay Count Shadow Load Mode.

enum DL_EPWM_TZ_SIGNAL

Enumerator

Value

Description

DL_EPWM_TZ_SIGNAL_CBC1

0x0001U

TZ1 signal (INPUTXBAR0) as CBC trip source.

DL_EPWM_TZ_SIGNAL_CBC2

0x0002U

TZ2 signal (INPUTXBAR1) as CBC trip source.

DL_EPWM_TZ_SIGNAL_CBC3

0x0004U

TZ3 signal (INPUTXBAR2) as CBC trip source.

DL_EPWM_TZ_SIGNAL_CBC4

0x0008U

TZ4 signal (INPUTXBAR49) as CBC trip source.

DL_EPWM_TZ_SIGNAL_CBC5

0x0010U

TZ5 signal (INPUTXBAR50) as CBC trip source.

DL_EPWM_TZ_SIGNAL_CBC6

0x0020U

TZ6 signal (DEBUG_HALT) as CBC trip source.

DL_EPWM_TZ_SIGNAL_DCAEVT2

0x0040U

Digital compare A event 2 signal as CBC trip source.

DL_EPWM_TZ_SIGNAL_DCBEVT2

0x0080U

Digital compare B event 2 signal as CBC trip source.

DL_EPWM_TZ_SIGNAL_OSHT1

0x0100U

TZ1 signal (INPUTXBAR0) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_OSHT2

0x0200U

TZ2 signal (INPUTXBAR1) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_OSHT3

0x0400U

TZ3 signal (INPUTXBAR2) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_OSHT4

0x0800U

TZ4 signal (INPUTXBAR49) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_OSHT5

0x1000U

TZ5 signal (INPUTXBAR50) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_OSHT6

0x2000U

TZ6 signal (DEBUG_HALT) as one-shot trip source.

DL_EPWM_TZ_SIGNAL_DCAEVT1

0x4000U

Digital compare A event 1 signal as one-shot trip source.

DL_EPWM_TZ_SIGNAL_DCBEVT1

0x8000U

Digital compare B event 1 signal as one-shot trip source.

Trip Zone signal selection values.

These values can be OR’d together to enable or disable multiple Trip Zone signals simultaneously. Used with the TZSEL register.

enum DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_A1

0U

Digital Compare output 1 A.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_A2

3U

Digital Compare output 2 A.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_B1

6U

Digital Compare output 1 B.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_B2

9U

Digital Compare output 2 B.

Trip Zone Digital Compare Type.

enum DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DC_DISABLED

0U

Event is disabled.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXH_LOW

1U

Event when DCxH low.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXH_HIGH

2U

Event when DCxH high.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_LOW

3U

Event when DCxL low.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_HIGH

4U

Event when DCxL high.

DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT_DCXL_HIGH_DCXH_LOW

5U

Event when DCxL high and DCxH low.

Trip Zone Digital Compare Output Event.

enum DL_EPWM_TRIP_ZONE_EVENT

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_EVENT_TZA

0U

TZ1 - TZ6, DCAEVT2, DCAEVT1.

DL_EPWM_TRIP_ZONE_EVENT_TZB

1U

TZ1 - TZ6, DCBEVT2, DCBEVT1.

DL_EPWM_TRIP_ZONE_EVENT_DCAEVT1

2U

DCAEVT1 (Digital Compare A event 1)

DL_EPWM_TRIP_ZONE_EVENT_DCAEVT2

3U

DCAEVT2 (Digital Compare A event 2)

DL_EPWM_TRIP_ZONE_EVENT_DCBEVT1

4U

DCBEVT1 (Digital Compare B event 1)

DL_EPWM_TRIP_ZONE_EVENT_DCBEVT2

5U

DCBEVT2 (Digital Compare B event 2)

Trip Zone Event.

enum DL_EPWM_TRIP_ZONE_ACTION

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_ACTION_HIGH_Z

0U

High impedance output.

DL_EPWM_TRIP_ZONE_ACTION_HIGH

1U

High voltage state.

DL_EPWM_TRIP_ZONE_ACTION_LOW

2U

Low voltage state.

DL_EPWM_TRIP_ZONE_ACTION_DISABLE

3U

Disable action.

Trip Zone Action.

enum DL_EPWM_TRIP_ZONE_ADVANCED_EVENT

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZB_D

9U

TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting down.

DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZB_U

6U

TZ1 - TZ6, DCBEVT2, DCBEVT1 while counting up.

DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZA_D

3U

TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting down.

DL_EPWM_TRIP_ZONE_ADVANCED_EVENT_TZA_U

0U

TZ1 - TZ6, DCAEVT2, DCAEVT1 while counting up.

Trip Zone Advanced Event.

enum DL_EPWM_TRIP_ZONE_ADVANCED_ACTION

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_HIGH_Z

0U

High impedance output.

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_HIGH

1U

High voltage state.

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_LOW

2U

Low voltage state.

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_TOGGLE

3U

Toggle the output.

DL_EPWM_TRIP_ZONE_ADVANCED_ACTION_DISABLE

7U

Disable action.

Trip Zone Advanced Action.

enum DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT

Enumerator

Value

Description

DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT1_U

0U

Digital Compare event A/B 1 while counting up.

DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT1_D

3U

Digital Compare event A/B 1 while counting down.

DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT2_U

6U

Digital Compare event A/B 2 while counting up.

DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT_DCxEVT2_D

9U

Digital Compare event A/B 2 while counting down.

Trip Zone Advanced Digital Compare Event.

enum DL_EPWM_TZ_INTERRUPT

Enumerator

Value

Description

DL_EPWM_TZ_INTERRUPT_CBC

0x2U

Trip Zones Cycle By Cycle interrupt.

DL_EPWM_TZ_INTERRUPT_OST

0x4U

Trip Zones One Shot interrupt.

DL_EPWM_TZ_INTERRUPT_DCAEVT1

0x8U

Digital Compare A Event 1 interrupt.

DL_EPWM_TZ_INTERRUPT_DCAEVT2

0x10U

Digital Compare A Event 2 interrupt.

DL_EPWM_TZ_INTERRUPT_DCBEVT1

0x20U

Digital Compare B Event 1 interrupt.

DL_EPWM_TZ_INTERRUPT_DCBEVT2

0x40U

Digital Compare B Event 2 interrupt.

DL_EPWM_TZ_INTERRUPT_CAPEVT

0x80U

Trip Zones Capture Event interrupt.

Trip Zone Interrupts.

enum DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE

Enumerator

Value

Description

DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_ZERO

0U

Clear CBC pulse when counter equals zero.

DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_PERIOD

1U

Clear CBC pulse when counter equals period.

DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE_ZERO_PERIOD

2U

Clear CBC pulse when counter equals zero or period.

Cycle-by-Cycle Trip Zone Clear Event.

enum DL_EPWM_TZ_FLAG

Enumerator

Value

Description

DL_EPWM_TZ_FLAG_INTERRUPT

0x1U

Global Trip Zone interrupt flag.

DL_EPWM_TZ_FLAG_CBC

0x2U

Trip Zones Cycle By Cycle flag.

DL_EPWM_TZ_FLAG_OST

0x4U

Trip Zones One Shot flag.

DL_EPWM_TZ_FLAG_DCAEVT1

0x8U

Digital Compare A Event 1 flag.

DL_EPWM_TZ_FLAG_DCAEVT2

0x10U

Digital Compare A Event 2 flag.

DL_EPWM_TZ_FLAG_DCBEVT1

0x20U

Digital Compare B Event 1 flag.

DL_EPWM_TZ_FLAG_DCBEVT2

0x40U

Digital Compare B Event 2 flag.

DL_EPWM_TZ_FLAG_CAPEVT

0x80U

Trip Zones Capture Event flag.

Trip Zone Flags.

enum DL_EPWM_TZCBC_FLAG

Enumerator

Value

Description

DL_EPWM_TZ_CBC_FLAG_1

0x1U

Cycle by cycle flag 1.

DL_EPWM_TZ_CBC_FLAG_2

0x2U

Cycle by cycle flag 2.

DL_EPWM_TZ_CBC_FLAG_3

0x4U

Cycle by cycle flag 3.

DL_EPWM_TZ_CBC_FLAG_4

0x8U

Cycle by cycle flag 4.

DL_EPWM_TZ_CBC_FLAG_5

0x10U

Cycle by cycle flag 5.

DL_EPWM_TZ_CBC_FLAG_6

0x20U

Cycle by cycle flag 6.

DL_EPWM_TZ_CBC_FLAG_DCAEVT2

0x40U

Cycle by cycle flag for Digital compare event A2.

DL_EPWM_TZ_CBC_FLAG_DCBEVT2

0x80U

Cycle by cycle flag for Digital compare event B2.

DL_EPWM_TZ_CBC_FLAG_CAPEVT

0x100U

Cycle by cycle flag for capture event.

Cycle by Cycle Trip Zone flag.

enum DL_EPWM_TZOST_FLAG

Enumerator

Value

Description

DL_EPWM_TZ_OST_FLAG_OST1

0x1U

One shot flag for OST1.

DL_EPWM_TZ_OST_FLAG_OST2

0x2U

One shot flag for OST2.

DL_EPWM_TZ_OST_FLAG_OST3

0x4U

One shot flag for OST3.

DL_EPWM_TZ_OST_FLAG_OST4

0x8U

One shot flag for OST4.

DL_EPWM_TZ_OST_FLAG_OST5

0x10U

One shot flag for OST5.

DL_EPWM_TZ_OST_FLAG_OST6

0x20U

One shot flag for OST6.

DL_EPWM_TZ_OST_FLAG_DCAEVT1

0x40U

One shot flag for Digital compare event A1.

DL_EPWM_TZ_OST_FLAG_DCBEVT1

0x80U

One shot flag for Digital compare event B1.

DL_EPWM_TZ_OST_FLAG_CAPEVT

0x100U

One shot flag for capture event.

One shot Trip Zone flag.

enum DL_EPWM_TZ_FORCE_EVENTS

Enumerator

Value

Description

DL_EPWM_TZ_FORCE_EVENT_CBC

0x2U

Force Cycle By Cycle trip event.

DL_EPWM_TZ_FORCE_EVENT_OST

0x4U

Force a One-Shot Trip Event.

DL_EPWM_TZ_FORCE_EVENT_DCAEVT1

0x8U

Force Digital Compare Output A Event 1.

DL_EPWM_TZ_FORCE_EVENT_DCAEVT2

0x10U

Force Digital Compare Output A Event 2.

DL_EPWM_TZ_FORCE_EVENT_DCBEVT1

0x20U

Force Digital Compare Output B Event 1.

DL_EPWM_TZ_FORCE_EVENT_DCBEVT2

0x40U

Force Digital Compare Output B Event 2.

DL_EPWM_TZ_FORCE_EVENT_CAPEVT

0x80U

Force a Capture Event.

Trip zone Events that can be forced.

enum DL_EPWM_TBC_INTERRUPTS

Enumerator

Value

Description

DL_EPWM_INT_TBCTR_DISABLED

0U

Time-base counter is disabled.

DL_EPWM_INT_TBCTR_ZERO

1U

Time-base counter equal to zero.

DL_EPWM_INT_TBCTR_PERIOD

2U

Time-base counter equal to period.

DL_EPWM_INT_TBCTR_ZERO_OR_PERIOD

3U

Time-base counter equal to zero or period.

DL_EPWM_INT_TBCTR_U_CMPA

4U

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

DL_EPWM_INT_TBCTR_U_CMPC

8U

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

DL_EPWM_INT_TBCTR_D_CMPA

5U

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

DL_EPWM_INT_TBCTR_D_CMPC

10U

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

DL_EPWM_INT_TBCTR_U_CMPB

6U

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

DL_EPWM_INT_TBCTR_U_CMPD

12U

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

DL_EPWM_INT_TBCTR_D_CMPB

7U

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

DL_EPWM_INT_TBCTR_D_CMPD

14U

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

EPWM Time base Counter Interrupts.

enum DL_EPWM_ADC_START_OF_CONVERSION

Enumerator

Value

Description

DL_EPWM_ADC_START_OF_CONVERSION_TYPE_A

0U

SOC A.

DL_EPWM_ADC_START_OF_CONVERSION_TYPE_B

1U

SOC B.

ADC Start of Conversion Type.

enum DL_EPWM_ADC_START_OF_CONVERSION_SOURCE

Enumerator

Value

Description

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_DCxEVT1

0U

Event is based on DCxEVT1.

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_ZERO

1U

Time-base counter equal to zero.

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_PERIOD

2U

Time-base counter equal to period.

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_ZERO_OR_PERIOD

3U

Time-base counter equal to zero or period.

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPA

4U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPC

8U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPA

5U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPC

10U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPB

6U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_U_CMPD

12U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPB

7U

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

DL_EPWM_ADC_START_OF_CONVERSION_SOURCE_TBCTR_D_CMPD

14U

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

ADC Trigger Event Source.

enum DL_EPWM_DIGITAL_COMPARE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_TYPE_DCAH

0U

Digital Compare A High.

DL_EPWM_DIGITAL_COMPARE_TYPE_DCAL

1U

Digital Compare A Low.

DL_EPWM_DIGITAL_COMPARE_TYPE_DCBH

2U

Digital Compare B High.

DL_EPWM_DIGITAL_COMPARE_TYPE_DCBL

3U

Digital Compare B Low.

Digital Compare Type.

enum DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN1

0U

Trip 1 - EPWMXBAR0.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN2

1U

Trip 2 - EPWMXBAR1.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN3

2U

Trip 3 - EPWMXBAR2.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN4

3U

Trip 4 - EPWMXBAR3.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN5

4U

Trip 5 - EPWMXBAR4.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN6

5U

Trip 6 - EPWMXBAR5.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN7

6U

Trip 7 - EPWMXBAR6.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN8

7U

Trip 8 - EPWMXBAR7.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN9

8U

Trip 9 - EPWMXBAR8.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN10

9U

Trip 10 - EPWMXBAR9.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN11

10U

Trip 11 - EPWMXBAR10.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN12

11U

Trip 12 - EPWMXBAR11.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN13

12U

Trip 13 - EPWMXBAR12.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN14

13U

Trip 14 - EPWMXBAR13.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_TRIPIN15

14U

Trip 15 - EPWMXBAR14.

DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT_COMBINATION

15U

All Trips (Trip 1 to Trip 15) are selected.

Digital Compare Trip Input Selection.

enum DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_PERIOD

0U

Time base counter equals period.

DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_ZERO

1U

Time base counter equals zero.

DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_TBCTR_ZERO_PERIOD

2U

Time base counter equals zero or period.

DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE_BLANK_PULSE_MIX

3U

Blank pulse mix.

Digital Compare Blanking Pulse.

enum DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCAEVT1

0U

DC filter signal source is DCAEVT1.

DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCAEVT2

1U

DC filter signal source is DCAEVT2.

DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCBEVT1

2U

DC filter signal source is DCBEVT1.

DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT_DCBEVT2

3U

DC filter signal source is DCBEVT2.

Digital Compare Filter Input.

enum DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_RISING

0U

Digital Compare Edge filter rising (low to high) edge mode.

DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_FALLING

1U

Digital Compare Edge filter falling (high to low) edge mode.

DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE_BOTH

2U

Digital Compare Edge filter both edges mode.

Digital Compare Edge Filter Mode.

enum DL_EPWM_DIGITAL_COMPARE_MODULE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_MODULE_A

0U

Digital Compare Module A.

DL_EPWM_DIGITAL_COMPARE_MODULE_B

1U

Digital Compare Module B.

Digital Compare Module.

enum DL_EPWM_DIGITAL_COMPARE_EVENT

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_EVENT_1

0U

Digital Compare Event number 1.

DL_EPWM_DIGITAL_COMPARE_EVENT_2

1U

Digital Compare Event number 2.

Digital Compare Event.

enum DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE_ORIG_SIGNAL

0U

Signal source is unfiltered (DCAEVT1/2)

DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE_FILT_SIGNAL

1U

Signal source is filtered (DCEVTFILT)

Digital Compare Event Source.

enum DL_EPWM_DIGITAL_COMPARE_SYNC_MODE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_SYNC_MODE_SYNCED

0U

DC input signal is synced with TBCLK.

DL_EPWM_DIGITAL_COMPARE_SYNC_MODE_NOT_SYNCED

1U

DC input signal is not synced with TBCLK.

Digital Compare Synchronization Mode.

enum DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE_DISABLED

0x0U

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

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE_ENABLED

0x1U

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

Digital Compare CBC Latch Mode.

enum DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT

Enumerator

Value

Description

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_CNTR_ZERO

0x0U

Clear CBC latch when counter equals zero.

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_ON_CNTR_PERIOD

0x1U

Clear CBC latch when counter equals period.

DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT_ON_CNTR_ZERO_PERIOD

0x2U

Clear CBC latch when counter equals zero or period.

Digital Compare CBC Latch Clear Event.

enum DL_EPWM_DC_COMBINATIONAL_TRIP_IN

Enumerator

Value

Description

DL_EPWM_DC_COMBINATIONAL_TRIPIN1

0x1U

Trip 1 input - EPWMXBAR0.

DL_EPWM_DC_COMBINATIONAL_TRIPIN2

0x2U

Trip 2 input - EPWMXBAR1.

DL_EPWM_DC_COMBINATIONAL_TRIPIN3

0x4U

Trip 3 input - EPWMXBAR2.

DL_EPWM_DC_COMBINATIONAL_TRIPIN4

0x8U

Trip 4 input - EPWMXBAR3.

DL_EPWM_DC_COMBINATIONAL_TRIPIN5

0x10U

Trip 5 input - EPWMXBAR4.

DL_EPWM_DC_COMBINATIONAL_TRIPIN6

0x20U

Trip 6 input - EPWMXBAR5.

DL_EPWM_DC_COMBINATIONAL_TRIPIN7

0x40U

Trip 7 input - EPWMXBAR6.

DL_EPWM_DC_COMBINATIONAL_TRIPIN8

0x80U

Trip 8 input - EPWMXBAR7.

DL_EPWM_DC_COMBINATIONAL_TRIPIN9

0x100U

Trip 9 input - EPWMXBAR8.

DL_EPWM_DC_COMBINATIONAL_TRIPIN10

0x200U

Trip 10 input - EPWMXBAR9.

DL_EPWM_DC_COMBINATIONAL_TRIPIN11

0x400U

Trip 11 input - EPWMXBAR10.

DL_EPWM_DC_COMBINATIONAL_TRIPIN12

0x800U

Trip 12 input - EPWMXBAR11.

DL_EPWM_DC_COMBINATIONAL_TRIPIN13

0x1000U

Trip 13 input - EPWMXBAR12.

DL_EPWM_DC_COMBINATIONAL_TRIPIN14

0x2000U

Trip 14 input - EPWMXBAR13.

DL_EPWM_DC_COMBINATIONAL_TRIPIN15

0x4000U

Trip 15 input - EPWMXBAR14.

DC combinational trip input bitmask.

enum DL_EPWM_VALLEY_TRIGGER_SOURCE

Enumerator

Value

Description

DL_EPWM_VALLEY_TRIGGER_SOURCE_SOFTWARE

0U

Valley capture triggered by software.

DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_ZERO

1U

Valley capture triggered when counter is equal to zero.

DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_PERIOD

2U

Valley capture triggered when counter is equal to period.

DL_EPWM_VALLEY_TRIGGER_SOURCE_CNTR_ZERO_PERIOD

3U

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

DL_EPWM_VALLEY_TRIGGER_SOURCE_DCAEVT1

4U

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

DL_EPWM_VALLEY_TRIGGER_SOURCE_DCAEVT2

5U

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

DL_EPWM_VALLEY_TRIGGER_SOURCE_DCBEVT1

6U

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

DL_EPWM_VALLEY_TRIGGER_SOURCE_DCBEVT2

7U

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

Valley Trigger Source.

enum DL_EPWM_VALLEY_DELAY_MODE

Enumerator

Value

Description

DL_EPWM_VALLEY_DELAY_MODE_SW_DELAY

0U

Delay value equals the offset value defined by software.

DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SW_DELAY

1U

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

DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_1_SW_DELAY

2U

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

DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_2_SW_DELAY

3U

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

DL_EPWM_VALLEY_DELAY_MODE_VCNT_DELAY_SHIFT_4_SW_DELAY

4U

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

Valley Delay Mode.

enum DL_EPWM_VALLEY_COUNTER_EDGE

Enumerator

Value

Description

DL_EPWM_VALLEY_COUNTER_EDGE_START_EDGE

0U

Valley count start edge.

DL_EPWM_VALLEY_COUNTER_EDGE_STOP_EDGE

1U

Valley count stop edge.

Valley Count Event.

enum DL_EPWM_GLOBAL_LOAD_TRIGGER

Enumerator

Value

Description

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_ZERO

0x0U

Load when counter is equal to zero.

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_PERIOD

0x1U

Load when counter is equal to period.

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_ZERO_PERIOD

0x2U

Load when counter is equal to zero or period.

DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC

0x3U

Load on sync event.

DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_OR_CNTR_ZERO

0x4U

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

DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_OR_CNTR_PERIOD

0x5U

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

DL_EPWM_GLOBAL_LOAD_TRIGGER_SYNC_CNTR_ZERO_PERIOD

0x6U

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

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_U_CMPC

0x8U

Load when counter is equal to CMPC while incrementing.

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_D_CMPC

0x9U

Load when counter is equal to CMPC while decrementing.

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_U_CMPD

0xAU

Load when counter is equal to CMPD while incrementing.

DL_EPWM_GLOBAL_LOAD_TRIGGER_CNTR_D_CMPD

0xBU

Load when counter is equal to CMPD while decrementing.

DL_EPWM_GLOBAL_LOAD_TRIGGER_GLOBAL_FORCE

0xFU

Load on global force.

Global Load Trigger Source.

enum DL_EPWM_GLOBAL_LOAD_REGISTER

Enumerator

Value

Description

DL_EPWM_GL_REGISTER_TBPRD_TBPRDHR

0x1U

Global load TBPRD:TBPRDHR.

DL_EPWM_GL_REGISTER_CMPA_CMPAHR

0x2U

Global load CMPA:CMPAHR.

DL_EPWM_GL_REGISTER_CMPB_CMPBHR

0x4U

Global load CMPB:CMPBHR.

DL_EPWM_GL_REGISTER_CMPC

0x8U

Global load CMPC.

DL_EPWM_GL_REGISTER_CMPD

0x10U

Global load CMPD.

DL_EPWM_GL_REGISTER_DBRED_DBREDHR

0x20U

Global load DBRED:DBREDHR.

DL_EPWM_GL_REGISTER_DBFED_DBFEDHR

0x40U

Global load DBFED:DBFEDHR.

DL_EPWM_GL_REGISTER_DBCTL

0x80U

Global load DBCTL.

DL_EPWM_GL_REGISTER_AQCTLA_AQCTLA2

0x100U

Global load AQCTLA/A2.

DL_EPWM_GL_REGISTER_AQCTLB_AQCTLB2

0x200U

Global load AQCTLB/B2.

DL_EPWM_GL_REGISTER_AQCSFRC

0x400U

Global load AQCSFRC.

Register to be globally loaded.

enum DL_EPWM_LOCK_REGISTER_GROUP

Enumerator

Value

Description

DL_EPWM_LOCK_REGISTER_GROUP_HRPWM

0x1U

HRPWM register group.

DL_EPWM_LOCK_REGISTER_GROUP_GLOBAL_LOAD

0x2U

Global load register group.

DL_EPWM_LOCK_REGISTER_GROUP_TRIP_ZONE

0x4U

Trip zone register group.

DL_EPWM_LOCK_REGISTER_GROUP_TRIP_ZONE_CLEAR

0x8U

Trip zone clear group.

DL_EPWM_LOCK_REGISTER_GROUP_DIGITAL_COMPARE

0x10U

Digital compare group.

Register Lock Groups.

enum DL_EPWM_EMULATION_MODE

Enumerator

Value

Description

DL_EPWM_EMULATION_MODE_STOP_AFTER_NEXT_TB

0U

Stop after next Time Base counter increment or decrement.

DL_EPWM_EMULATION_MODE_STOP_AFTER_FULL_CYCLE

1U

Stop when counter completes whole cycle.

DL_EPWM_EMULATION_MODE_FREE_RUN

2U

Free run.

Emulation Mode.

enum DL_EPWM_HRPWM_CHANNEL

Enumerator

Value

Description

DL_EPWM_HRPWM_CHANNEL_A

0U

HRPWM Channel A.

DL_EPWM_HRPWM_CHANNEL_B

8U

HRPWM Channel B.

HRPWM channel selection (A or B).

enum DL_EPWM_HRPWM_MEP_EDGE_MODE

Enumerator

Value

Description

DL_EPWM_HRPWM_MEP_CTRL_DISABLE

0U

HRPWM MEP disabled.

DL_EPWM_HRPWM_MEP_CTRL_RISING_EDGE

1U

MEP controls rising edge.

DL_EPWM_HRPWM_MEP_CTRL_FALLING_EDGE

2U

MEP controls falling edge.

DL_EPWM_HRPWM_MEP_CTRL_RISING_AND_FALLING_EDGE

3U

MEP controls both rising and falling edge.

MEP (Micro Edge Positioner) edge control mode.

enum DL_EPWM_HRPWM_MEP_CTRL_MODE

Enumerator

Value

Description

DL_EPWM_HRPWM_MEP_DUTY_PERIOD_CTRL

0U

CMPAHR/CMPBHR or TBPRDHR controls MEP edge.

DL_EPWM_HRPWM_MEP_PHASE_CTRL

1U

TBPHSHR controls MEP edge.

MEP (Micro Edge Positioner) control source mode.

enum DL_EPWM_HRPWM_LOAD_MODE

Enumerator

Value

Description

DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO

0U

Load when counter equals zero.

DL_EPWM_HRPWM_LOAD_ON_CNTR_PERIOD

1U

Load when counter equals period.

DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO_PERIOD

2U

Load when counter equals zero or period.

DL_EPWM_HRPWM_LOAD_ON_CMPX_EQ

3U

Load on translator event CMPA/B-3.

HRPWM shadow-to-active load event.

Used for counter compare shadow load event and dead-band RED/FED load modes.

enum DL_EPWM_HRPWM_CHANNEL_B_OUTPUT

Enumerator

Value

Description

DL_EPWM_HRPWM_OUTPUT_ON_B_NORMAL

0U

ePWMxB output is the normal ePWMxB signal

DL_EPWM_HRPWM_OUTPUT_ON_B_INV_A

1U

ePWMxB output is an inverted version of ePWMxA

HRPWM ePWMxB output signal selection.

enum DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE

Enumerator

Value

Description

DL_EPWM_HRPWM_COUNTER_COMPARE_A

0U

Counter compare A (CMPA:CMPAHR registers)

DL_EPWM_HRPWM_COUNTER_COMPARE_B

4U

Counter compare B (CMPB:CMPBHR registers)

HRPWM counter compare module selection (A or B).

enum DL_EPWM_HRPWM_MEP_DEAD_BAND_EDGE_MODE

Enumerator

Value

Description

DL_EPWM_HRPWM_DB_MEP_CTRL_DISABLE

0U

HRPWM Dead Band MEP disabled.

DL_EPWM_HRPWM_DB_MEP_CTRL_RED

1U

MEP controls Rising Edge Delay.

DL_EPWM_HRPWM_DB_MEP_CTRL_FED

2U

MEP controls Falling Edge Delay.

DL_EPWM_HRPWM_DB_MEP_CTRL_RED_FED

3U

MEP controls both Rising and Falling Edge Delay.

HRPWM Dead Band MEP (Micro Edge Positioner) edge control.

Functions Documentation

function DL_EPWM_setTimeBaseCounter

__STATIC_INLINE void DL_EPWM_setTimeBaseCounter(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t count
)

Sets the time base count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • count time base count value.

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

function DL_EPWM_setClockPrescaler

__STATIC_INLINE void DL_EPWM_setClockPrescaler(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_CLOCK_DIVIDER prescaler,
    DL_EPWM_HS_CLOCK_DIVIDER highSpeedPrescaler
)

Sets the time base clock and the high speed time base clock count pre-scaler.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • prescaler time base count prescale value.

  • highSpeedPrescaler high speed time base count prescale value.

This function sets the pre-scaler (divider) value for the time base clock counter and the high speed time base clock counter. The equation for the output clock is: TBCLK = EPWMCLK/(highSpeedPrescaler * prescaler). Note: EPWMCLK is a scaled version of SYSCLK. At reset EPWMCLK is half SYSCLK. Valid values for prescaler: DL_EPWM_CLOCK_DIVIDER. Valid values for highSpeedPrescaler: DL_EPWM_HS_CLOCK_DIVIDER.

function DL_EPWM_setPeriodLoadMode

__STATIC_INLINE void DL_EPWM_setPeriodLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_PERIOD_LOAD_MODE loadMode
)

Sets PWM period load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadMode PWM period load mode.

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

function DL_EPWM_setTimeBaseCounterMode

__STATIC_INLINE void DL_EPWM_setTimeBaseCounterMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TIME_BASE_COUNT_MODE counterMode
)

Sets time base counter mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • counterMode time base counter mode.

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

function DL_EPWM_selectPeriodLoadEvent

__STATIC_INLINE void DL_EPWM_selectPeriodLoadEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_PERIOD_SHADOW_LOAD_MODE shadowLoadMode
)

Sets shadow to active period load on sync mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • shadowLoadMode 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: DL_EPWM_PERIOD_SHADOW_LOAD_MODE.

function DL_EPWM_getTimeBaseCounterValue

__STATIC_INLINE uint16_t DL_EPWM_getTimeBaseCounterValue(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns time base counter value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The current time base counter value.

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

function DL_EPWM_getTimeBaseCounterOverflowStatus

__STATIC_INLINE bool DL_EPWM_getTimeBaseCounterOverflowStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns time base counter maximum status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Returns true if the time base counter has reached its maximum value, false otherwise.

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

function DL_EPWM_clearTimeBaseCounterOverflowEvent

__STATIC_INLINE void DL_EPWM_clearTimeBaseCounterOverflowEvent(
    EPWM_Regs * epwmHwRegsPtr
)

Clears max time base counter event.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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.

function DL_EPWM_getTimeBaseCounterDirection

__STATIC_INLINE uint16_t DL_EPWM_getTimeBaseCounterDirection(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns time base counter direction.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Returns the time base counter direction value (counting up or counting down).

This function returns the direction of the time base counter.

function DL_EPWM_setTimeBasePeriod

__STATIC_INLINE void DL_EPWM_setTimeBasePeriod(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t periodCount
)

Sets the PWM period count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • periodCount 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 DL_EPWM_selectPeriodLoadEvent with the appropriate parameter to set the load mode of the Period count. periodCount has a maximum valid value of 0xFFFF

function DL_EPWM_getTimeBasePeriod

__STATIC_INLINE uint16_t DL_EPWM_getTimeBasePeriod(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the PWM period count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The period count value.

This function gets the period of the PWM count.

function DL_EPWM_setDeadBandCounterClock

__STATIC_INLINE void DL_EPWM_setDeadBandCounterClock(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DEAD_BAND_CLOCK_MODE clockMode
)

Sets Dead Band Counter clock rate.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • clockMode 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: DL_EPWM_DEAD_BAND_CLOCK_MODE.

function DL_EPWM_setCountModeAfterSync

__STATIC_INLINE void DL_EPWM_setCountModeAfterSync(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_SYNC_COUNT_MODE mode
)

Sets count mode after phase shift sync.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • mode Count mode after sync.

This function sets the time base count to count up or down after a new phase value set by the DL_EPWM_setPhaseShift. The count direction is determined by the variable mode. Valid values for mode: DL_EPWM_SYNC_COUNT_MODE.

function DL_EPWM_forceSyncPulse

__STATIC_INLINE void DL_EPWM_forceSyncPulse(
    EPWM_Regs * epwmHwRegsPtr
)

Forces a software sync pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function causes a single software initiated sync pulse.

function DL_EPWM_setSyncInPulseSource

__STATIC_INLINE void DL_EPWM_setSyncInPulseSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_SYNC_IN_PULSE_SOURCE source
)

Sets up the source for sync-in pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • source Sync-in pulse source.

This function sets the sync-in pulse source. Valid values for source: DL_EPWM_SYNC_IN_PULSE_SOURCE.

function DL_EPWM_enableSyncOutPulseSource

__STATIC_INLINE void DL_EPWM_enableSyncOutPulseSource(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t source
)

Enables sync-out pulse source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • source 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: DL_EPWM_SYNC_OUT_PULSE_SOURCE.

function DL_EPWM_disableSyncOutPulseSource

__STATIC_INLINE void DL_EPWM_disableSyncOutPulseSource(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t source
)

Disables sync-out pulse source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • source 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: DL_EPWM_SYNC_OUT_PULSE_SOURCE.

function DL_EPWM_setOneShotSyncOutTrigger

__STATIC_INLINE void DL_EPWM_setOneShotSyncOutTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ONE_SHOT_SYNC_OUT_TRIGGER trigger
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • trigger one-shot sync-out signal trigger source.

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

function DL_EPWM_enablePhaseShiftLoad

__STATIC_INLINE void DL_EPWM_enablePhaseShiftLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Enables phase shift load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_disablePhaseShiftLoad

__STATIC_INLINE void DL_EPWM_disablePhaseShiftLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Disables phase shift load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables loading of phase shift.

function DL_EPWM_enableOneShotSync

__STATIC_INLINE void DL_EPWM_enableOneShotSync(
    EPWM_Regs * epwmHwRegsPtr
)

Enables one shot sync mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables one shot sync mode.

function DL_EPWM_disableOneShotSync

__STATIC_INLINE void DL_EPWM_disableOneShotSync(
    EPWM_Regs * epwmHwRegsPtr
)

Disables one shot sync mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables one shot sync mode.

function DL_EPWM_startOneShotSync

__STATIC_INLINE void DL_EPWM_startOneShotSync(
    EPWM_Regs * epwmHwRegsPtr
)

Starts one shot sync mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function propagates a one shot sync pulse.

function DL_EPWM_getSyncStatus

__STATIC_INLINE bool DL_EPWM_getSyncStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns external sync signal status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Returns true if an external sync signal event has occurred, false otherwise.

This function returns the external sync signal status.

function DL_EPWM_clearSyncEvent

__STATIC_INLINE void DL_EPWM_clearSyncEvent(
    EPWM_Regs * epwmHwRegsPtr
)

Clears external sync signal event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function clears the external sync signal latch event.

function DL_EPWM_setPhaseShift

__STATIC_INLINE void DL_EPWM_setPhaseShift(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t phaseCount
)

Sets the phase shift offset counter value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • phaseCount Phase shift count value.

function DL_EPWM_setSyncPulseSource

__STATIC_INLINE void DL_EPWM_setSyncPulseSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_SYNC_PULSE_SOURCE syncPulseSource
)

Sets the PWM sync output pulse source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • syncPulseSource PWM sync output pulse source.

This function sets the PWM sync output pulse source. Valid values for syncPulseSource: DL_EPWM_SYNC_PULSE_SOURCE.

function DL_EPWM_setCounterCompareShadowLoadMode

__STATIC_INLINE void DL_EPWM_setCounterCompareShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_COUNTER_COMPARE_MODULE compModule,
    DL_EPWM_COUNTER_COMPARE_LOAD_MODE loadMode
)

Sets up the Counter Compare shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module.

  • loadMode Shadow to active load mode.

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

function DL_EPWM_disableCounterCompareShadowLoadMode

__STATIC_INLINE void DL_EPWM_disableCounterCompareShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_COUNTER_COMPARE_MODULE compModule
)

Disables Counter Compare shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module.

This function disables counter compare shadow load mode. Valid values for compModule: DL_EPWM_COUNTER_COMPARE_MODULE.

function DL_EPWM_setCounterCompareValue

__STATIC_INLINE void DL_EPWM_setCounterCompareValue(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_COUNTER_COMPARE_MODULE compModule,
    uint16_t compCount
)

Sets counter compare values.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module.

  • compCount 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: DL_EPWM_COUNTER_COMPARE_MODULE.

function DL_EPWM_getCounterCompareValue

__STATIC_INLINE void DL_EPWM_getCounterCompareValue(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_COUNTER_COMPARE_MODULE compModule,
    uint16_t * ctrCmpPtr
)

Gets counter compare values.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module.

  • *ctrCmpPtr Pointer to the returned counter compare value.

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

function DL_EPWM_getCounterCompareShadowStatus

__STATIC_INLINE void DL_EPWM_getCounterCompareShadowStatus(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_COUNTER_COMPARE_MODULE compModule,
    bool * ctrCmpShdwStatusPtr
)

Returns the counter compare shadow register full status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module.

  • *ctrCmpShdwStatusPtr Pointer to the output counter compare shadow status.

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

function DL_EPWM_setActionQualifierShadowLoadMode

__STATIC_INLINE void DL_EPWM_setActionQualifierShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_MODULE aqModule,
    DL_EPWM_ACTION_QUALIFIER_LOAD_MODE loadMode
)

Enables and sets the Action Qualifier shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • aqModule Action Qualifier module.

  • loadMode Shadow to active load mode.

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

function DL_EPWM_disableActionQualifierShadowLoadMode

__STATIC_INLINE void DL_EPWM_disableActionQualifierShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_MODULE aqModule
)

Disables Action Qualifier shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • aqModule Action Qualifier module.

This function disables the Action Qualifier shadow load mode. Valid values for aqModule: DL_EPWM_ACTION_QUALIFIER_MODULE.

function DL_EPWM_setActionQualifierT1TriggerSource

__STATIC_INLINE void DL_EPWM_setActionQualifierT1TriggerSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE trigger
)

Sets up Action qualifier trigger source for event T1.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • trigger Action Qualifier T1 trigger source.

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

function DL_EPWM_setActionQualifierT2TriggerSource

__STATIC_INLINE void DL_EPWM_setActionQualifierT2TriggerSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_TRIGGER_SOURCE trigger
)

Sets up Action qualifier trigger source for event T2.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • trigger Action Qualifier T2 trigger source.

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

function DL_EPWM_setActionQualifierAction

__STATIC_INLINE void DL_EPWM_setActionQualifierAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT output,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT event
)

Sets up Action qualifier outputs.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output pin type.

  • output Action Qualifier output value.

  • event Event that causes the output change.

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. Valid values for epwmOutput: DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE. Valid values for output: DL_EPWM_ACTION_QUALIFIER_OUTPUT. Valid values for event: DL_EPWM_ACTION_QUALIFIER_OUTPUT_EVENT.

function DL_EPWM_setActionQualifierActionComplete

__STATIC_INLINE void DL_EPWM_setActionQualifierActionComplete(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput,
    DL_EPWM_ACTION_QUALIFIER_EVENT_ACTION action
)

Sets up Action qualifier event outputs.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output pin type.

  • action 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. Valid values for epwmOutput: DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE.

function DL_EPWM_setAdditionalActionQualifierActionComplete

__STATIC_INLINE void DL_EPWM_setAdditionalActionQualifierActionComplete(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput,
    DL_EPWM_ADDITIONAL_ACTION_QUALIFIER_EVENT_ACTION action
)

Sets up Additional action qualifier event outputs.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output pin type.

  • action 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. Valid values for epwmOutput: DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE.

function DL_EPWM_setActionQualifierContSWForceShadowMode

__STATIC_INLINE void DL_EPWM_setActionQualifierContSWForceShadowMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_CONT_FORCE mode
)

Sets up Action qualifier continuous software load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • mode 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 DL_EPWM_setActionQualifierContSWForceAction function. Valid values for mode: DL_EPWM_ACTION_QUALIFIER_CONT_FORCE.

function DL_EPWM_setActionQualifierContSWForceAction

__STATIC_INLINE void DL_EPWM_setActionQualifierContSWForceAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput,
    DL_EPWM_ACTION_QUALIFIER_SW_OUTPUT output
)

Triggers a continuous software forced event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output pin type.

  • output Action Qualifier output value.

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

function DL_EPWM_setActionQualifierSWAction

__STATIC_INLINE void DL_EPWM_setActionQualifierSWAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT output
)

Sets up one time software forced Action qualifier outputs.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output pin type.

  • output Action Qualifier output value.

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. Valid values for epwmOutput: DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE. Valid values for output: DL_EPWM_ACTION_QUALIFIER_OUTPUT.

function DL_EPWM_forceActionQualifierSWAction

__STATIC_INLINE void DL_EPWM_forceActionQualifierSWAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE epwmOutput
)

Triggers a one time software forced event on Action qualifier.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • epwmOutput ePWM output 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: DL_EPWM_ACTION_QUALIFIER_OUTPUT_MODULE.

function DL_EPWM_setDeadBandOutputSwapMode

__STATIC_INLINE void DL_EPWM_setDeadBandOutputSwapMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DEAD_BAND_OUTPUT output,
    bool enableSwapMode
)

Sets Dead Band output swap mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • output Dead Band output channel.

  • enableSwapMode Enable or disable output swap mode.

This function sets up the output swap mode for the Dead Band module. The output swap allows swapping of PWM outputs A and B. Valid values for output: DL_EPWM_DEAD_BAND_OUTPUT.

function DL_EPWM_setDeadBandDelayMode

__STATIC_INLINE void DL_EPWM_setDeadBandDelayMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DEAD_BAND_DELAY_MODE delayMode,
    bool enableDelayMode
)

Sets Dead Band signal output mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • delayMode Dead Band delay type.

  • enableDelayMode Dead band delay mode enable/disable.

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 delayMode: DL_EPWM_DEAD_BAND_DELAY_MODE.

function DL_EPWM_setDeadBandDelayPolarity

__STATIC_INLINE void DL_EPWM_setDeadBandDelayPolarity(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DEAD_BAND_DELAY_MODE delayMode,
    DL_EPWM_DEAD_BAND_POLARITY polarity
)

Sets Dead Band delay polarity.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • delayMode Dead Band delay type.

  • polarity 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 delayMode: DL_EPWM_DEAD_BAND_DELAY_MODE. Valid values for polarity: DL_EPWM_DEAD_BAND_POLARITY.

function DL_EPWM_setRisingEdgeDeadBandDelayInput

__STATIC_INLINE void DL_EPWM_setRisingEdgeDeadBandDelayInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DB_INPUT input
)

Sets Rising Edge Dead Band delay input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • input Input signal to the dead band.

This function sets up the rising Edge delay input signal. Valid values for input: DL_EPWM_DB_INPUT_EPWMA and DL_EPWM_DB_INPUT_EPWMB.

function DL_EPWM_setFallingEdgeDeadBandDelayInput

__STATIC_INLINE void DL_EPWM_setFallingEdgeDeadBandDelayInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DB_INPUT input
)

Sets Falling Edge Dead Band delay input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • input Input signal to the dead band.

This function sets up the falling Edge delay input signal. Valid values for input: DL_EPWM_DB_INPUT.

function DL_EPWM_setDeadBandControlShadowLoadMode

__STATIC_INLINE void DL_EPWM_setDeadBandControlShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DEAD_BAND_CONTROL_LOAD_MODE loadMode
)

Sets the Dead Band control shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadMode Shadow to active load mode.

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

function DL_EPWM_disableDeadBandControlShadowLoadMode

__STATIC_INLINE void DL_EPWM_disableDeadBandControlShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr
)

Disables Dead Band control shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_setRisingEdgeDelayCountShadowLoadMode

__STATIC_INLINE void DL_EPWM_setRisingEdgeDelayCountShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_RISING_EDGE_DELAY_LOAD_MODE loadMode
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadMode Shadow to active load event.

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

function DL_EPWM_disableRisingEdgeDelayCountShadowLoadMode

__STATIC_INLINE void DL_EPWM_disableRisingEdgeDelayCountShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_setFallingEdgeDelayCountShadowLoadMode

__STATIC_INLINE void DL_EPWM_setFallingEdgeDelayCountShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_FALLING_EDGE_DELAY_LOAD_MODE loadMode
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadMode Shadow to active load event.

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

function DL_EPWM_disableFallingEdgeDelayCountShadowLoadMode

__STATIC_INLINE void DL_EPWM_disableFallingEdgeDelayCountShadowLoadMode(
    EPWM_Regs * epwmHwRegsPtr
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_setRisingEdgeDelayCount

__STATIC_INLINE void DL_EPWM_setRisingEdgeDelayCount(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t redCount
)

Sets ePWM RED count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • redCount RED (Rising Edge Delay) count.

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

function DL_EPWM_setFallingEdgeDelayCount

__STATIC_INLINE void DL_EPWM_setFallingEdgeDelayCount(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t fedCount
)

Sets ePWM FED count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • fedCount FED (Falling Edge Delay) count.

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

function DL_EPWM_enableChopper

__STATIC_INLINE void DL_EPWM_enableChopper(
    EPWM_Regs * epwmHwRegsPtr
)

Enables chopper mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables ePWM chopper module.

function DL_EPWM_disableChopper

__STATIC_INLINE void DL_EPWM_disableChopper(
    EPWM_Regs * epwmHwRegsPtr
)

Disables chopper mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables ePWM chopper module.

function DL_EPWM_setChopperDutyCycle

__STATIC_INLINE void DL_EPWM_setChopperDutyCycle(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t dutyCycleCount
)

Sets chopper duty cycle.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dutyCycleCount The chopping clock duty cycle count (must be less than 7)

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 based on the following equation: chopper duty cycle = (dutyCycleCount + 1) / 8

function DL_EPWM_setChopperFreq

__STATIC_INLINE void DL_EPWM_setChopperFreq(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t freqDiv
)

Sets chopper clock frequency scaler.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • freqDiv The chopping clock frequency divider (must be less than 8)

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)

function DL_EPWM_setChopperFirstPulseWidth

__STATIC_INLINE void DL_EPWM_setChopperFirstPulseWidth(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t firstPulseWidth
)

Sets chopper first pulse width.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • firstPulseWidth The width of the first pulse (must be less than 0x10)

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)

function DL_EPWM_enableTripZoneSignals

__STATIC_INLINE void DL_EPWM_enableTripZoneSignals(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_SIGNAL tzSignal
)

Enables Trip Zone signal.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzSignal The Trip Zone signal.

This function enables the Trip Zone signals specified by tzSignal as a source for the Trip Zone module. A logical OR of the valid values can be passed as the tzSignal parameter. Valid trip zone signals: DL_EPWM_TZ_SIGNAL.

function DL_EPWM_disableTripZoneSignals

__STATIC_INLINE void DL_EPWM_disableTripZoneSignals(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_SIGNAL tzSignal
)

Disables Trip Zone signal.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzSignal The Trip Zone signal.

This function disables the Trip Zone signal specified by tzSignal as a source for the Trip Zone module. A logical OR of the valid values can be passed as the tzSignal parameter. Valid trip zone signals: DL_EPWM_TZ_SIGNAL.

function DL_EPWM_setTripZoneDigitalCompareEventCondition

__STATIC_INLINE void DL_EPWM_setTripZoneDigitalCompareEventCondition(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT dcType,
    DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT dcEvent
)

Sets Digital compare conditions that cause Trip Zone event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcType The Digital Compare output type.

  • dcEvent 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 dcType: DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT. Valid values for dcEvent: DL_EPWM_TRIP_ZONE_DIGITAL_COMPARE_OUTPUT_EVENT.

function DL_EPWM_enableTripZoneAdvAction

__STATIC_INLINE void DL_EPWM_enableTripZoneAdvAction(
    EPWM_Regs * epwmHwRegsPtr
)

Enables advanced Trip Zone event Action.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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.

function DL_EPWM_disableTripZoneAdvAction

__STATIC_INLINE void DL_EPWM_disableTripZoneAdvAction(
    EPWM_Regs * epwmHwRegsPtr
)

Disables advanced Trip Zone event Action.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_setTripZoneAction

__STATIC_INLINE void DL_EPWM_setTripZoneAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TRIP_ZONE_EVENT tzEvent,
    DL_EPWM_TRIP_ZONE_ACTION tzAction
)

Sets Trip Zone Action.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzEvent The Trip Zone event type.

  • tzAction The Trip Zone Action.

This function sets the Trip Zone Action to be taken when a Trip Zone event occurs. Disable the advanced Trip Zone event using DL_EPWM_disableTripZoneAdvAction before calling this function. This function operates on both ePWMA and ePWMB depending on the tzEvent parameter. Valid values for tzEvent: DL_EPWM_TRIP_ZONE_EVENT. Valid values for tzAction: DL_EPWM_TRIP_ZONE_ACTION.

function DL_EPWM_setTripZoneAdvAction

__STATIC_INLINE void DL_EPWM_setTripZoneAdvAction(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TRIP_ZONE_ADVANCED_EVENT tzAdvEvent,
    DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvAction
)

Sets Advanced Trip Zone Action.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzAdvEvent The Trip Zone event type.

  • tzAdvAction The Trip Zone Action.

This function sets the Advanced Trip Zone Action to be taken when an advanced Trip Zone event occurs. 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. Valid values for tzAdvEvent: DL_EPWM_TRIP_ZONE_ADVANCED_EVENT. Valid values for tzAdvAction: DL_EPWM_TRIP_ZONE_ADVANCED_ACTION.

function DL_EPWM_setTripZoneAdvDigitalCompareActionA

__STATIC_INLINE void DL_EPWM_setTripZoneAdvDigitalCompareActionA(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT tzAdvDCEvent,
    DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvDCAction
)

Sets Advanced Digital Compare Trip Zone Action on ePWMA.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzAdvDCEvent The Digital Compare Trip Zone event type.

  • tzAdvDCAction 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. 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. Valid values for tzAdvDCEvent: DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT. Valid values for tzAdvDCAction: DL_EPWM_TRIP_ZONE_ADVANCED_ACTION.

function DL_EPWM_setTripZoneAdvDigitalCompareActionB

__STATIC_INLINE void DL_EPWM_setTripZoneAdvDigitalCompareActionB(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT tzAdvDCEvent,
    DL_EPWM_TRIP_ZONE_ADVANCED_ACTION tzAdvDCAction
)

Sets Advanced Digital Compare Trip Zone Action on ePWMB.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzAdvDCEvent The Digital Compare Trip Zone event type.

  • tzAdvDCAction 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. 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. Valid values for tzAdvDCEvent: DL_EPWM_TRIP_ZONE_ADV_DIGITAL_COMPARE_EVENT. Valid values for tzAdvDCAction: DL_EPWM_TRIP_ZONE_ADVANCED_ACTION.

function DL_EPWM_enableTripZoneInterrupt

__STATIC_INLINE void DL_EPWM_enableTripZoneInterrupt(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_INTERRUPT tzInterrupt
)

Enables Trip Zone interrupts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzInterrupt The Trip Zone interrupt.

This function enables the Trip Zone interrupts. A logical OR of the valid values can be passed as the tzInterrupt parameter. Valid trip zone interrupts: DL_EPWM_TZ_INTERRUPT.

function DL_EPWM_disableTripZoneInterrupt

__STATIC_INLINE void DL_EPWM_disableTripZoneInterrupt(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_INTERRUPT tzInterrupt
)

Disables Trip Zone interrupts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzInterrupt The Trip Zone interrupt.

This function disables the Trip Zone interrupts. A logical OR of the valid values can be passed as the tzInterrupt parameter. Valid trip zone interrupts: DL_EPWM_TZ_INTERRUPT.

function DL_EPWM_getTripZoneFlagStatus

__STATIC_INLINE uint16_t DL_EPWM_getTripZoneFlagStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the Trip Zone status flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The Trip Zone status flags

This function returns the Trip Zone status flag. The function returns the following or the bitwise OR value of the following values: DL_EPWM_TZ_FLAG.

function DL_EPWM_getCycleByCycleTripZoneFlagStatus

__STATIC_INLINE uint16_t DL_EPWM_getCycleByCycleTripZoneFlagStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the Trip Zone Cycle by Cycle flag status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The Cycle by Cycle Trip Zone status flags

This function returns the specific Cycle by Cycle Trip Zone flag status. The function returns the following values: DL_EPWM_TZCBC_FLAG.

function DL_EPWM_getOneShotTripZoneFlagStatus

__STATIC_INLINE uint16_t DL_EPWM_getOneShotTripZoneFlagStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the Trip Zone One Shot flag status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The One Shot Trip Zone status flags

This function returns the specific One Shot Trip Zone flag status. The function returns the bitwise OR of the following flags: DL_EPWM_TZOST_FLAG.

function DL_EPWM_selectCycleByCycleTripZoneClearEvent

__STATIC_INLINE void DL_EPWM_selectCycleByCycleTripZoneClearEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_CYCLE_BY_CYCLE_TRIP_ZONE_CLEAR_MODE clearEvent
)

Sets the Trip Zone CBC pulse clear event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • clearEvent The CBC trip zone clear event.

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

function DL_EPWM_clearTripZoneFlag

__STATIC_INLINE void DL_EPWM_clearTripZoneFlag(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_FLAG tzFlags
)

Clears Trip Zone flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzFlags The Trip Zone flags.

This function clears the Trip Zone flags. A bitwise OR of the valid values can be passed as the tzFlags parameter. Valid trip zone flags: DL_EPWM_TZ_FLAG.

function DL_EPWM_clearCycleByCycleTripZoneFlag

__STATIC_INLINE void DL_EPWM_clearCycleByCycleTripZoneFlag(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZCBC_FLAG tzCBCFlags
)

Clears the Trip Zone Cycle by Cycle flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzCBCFlags The CBC flag to be cleared.

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

function DL_EPWM_clearOneShotTripZoneFlag

__STATIC_INLINE void DL_EPWM_clearOneShotTripZoneFlag(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZOST_FLAG tzOSTFlags
)

Clears the Trip Zone One Shot flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzOSTFlags The OST flags to be cleared.

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

function DL_EPWM_forceTripZoneEvent

__STATIC_INLINE void DL_EPWM_forceTripZoneEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TZ_FORCE_EVENTS tzForceEvent
)

Forces Trip Zone events.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tzForceEvent The forced Trip Zone event.

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

function DL_EPWM_enableInterrupt

__STATIC_INLINE void DL_EPWM_enableInterrupt(
    EPWM_Regs * epwmHwRegsPtr
)

Enables ePWM interrupt.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables the ePWM interrupt.

function DL_EPWM_disableInterrupt

__STATIC_INLINE void DL_EPWM_disableInterrupt(
    EPWM_Regs * epwmHwRegsPtr
)

Disables ePWM interrupt.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables the ePWM interrupt.

function DL_EPWM_setInterruptSource

__STATIC_INLINE void DL_EPWM_setInterruptSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_TBC_INTERRUPTS interruptSource
)

Sets the ePWM interrupt source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • interruptSource The ePWM interrupt source.

This function sets the ePWM interrupt source. Valid interrupt sources: DL_EPWM_TBC_INTERRUPTS.

function DL_EPWM_setInterruptEventCount

__STATIC_INLINE void DL_EPWM_setInterruptEventCount(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t eventCount
)

Sets the ePWM interrupt event counts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • eventCount 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.

function DL_EPWM_getEventTriggerInterruptStatus

__STATIC_INLINE bool DL_EPWM_getEventTriggerInterruptStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the interrupt status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Returns true if an ePWM interrupt was generated, false otherwise.

This function returns the ePWM interrupt status. Note: This function does not return the Trip Zone status.

function DL_EPWM_clearEventTriggerInterruptFlag

__STATIC_INLINE void DL_EPWM_clearEventTriggerInterruptFlag(
    EPWM_Regs * epwmHwRegsPtr
)

Clears interrupt flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function clears the ePWM interrupt flag.

function DL_EPWM_enableInterruptEventCountInit

__STATIC_INLINE void DL_EPWM_enableInterruptEventCountInit(
    EPWM_Regs * epwmHwRegsPtr
)

Enables Pre-interrupt count load.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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

function DL_EPWM_disableInterruptEventCountInit

__STATIC_INLINE void DL_EPWM_disableInterruptEventCountInit(
    EPWM_Regs * epwmHwRegsPtr
)

Disables interrupt count load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_forceInterruptEventCountInit

__STATIC_INLINE void DL_EPWM_forceInterruptEventCountInit(
    EPWM_Regs * epwmHwRegsPtr
)

Forces a software pre interrupt event counter load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function forces the ePWM interrupt counter to be loaded with the pre-configured count value. Note: make sure interrupt event count initialization is enabled before invoking this function.

function DL_EPWM_setInterruptEventCountInitValue

__STATIC_INLINE void DL_EPWM_setInterruptEventCountInitValue(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t eventCount
)

Sets interrupt count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • eventCount 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.

function DL_EPWM_getInterruptEventCount

__STATIC_INLINE uint16_t DL_EPWM_getInterruptEventCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the interrupt count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The interrupt event count

This function returns the ePWM interrupt event count.

function DL_EPWM_forceEventTriggerInterrupt

__STATIC_INLINE void DL_EPWM_forceEventTriggerInterrupt(
    EPWM_Regs * epwmHwRegsPtr
)

Forces ePWM interrupt.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function forces an ePWM interrupt.

function DL_EPWM_enableADCTrigger

__STATIC_INLINE void DL_EPWM_enableADCTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Enables ADC SOC event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

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

function DL_EPWM_disableADCTrigger

__STATIC_INLINE void DL_EPWM_disableADCTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Disables ADC SOC event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

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

function DL_EPWM_setADCTriggerSource

__STATIC_INLINE void DL_EPWM_setADCTriggerSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType,
    DL_EPWM_ADC_START_OF_CONVERSION_SOURCE socSource
)

Sets the ePWM SOC source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

  • socSource The SOC source.

This function sets the ePWM ADC SOC source. Valid values for adcSOCType: DL_EPWM_ADC_START_OF_CONVERSION. Valid values for socSource: DL_EPWM_ADC_START_OF_CONVERSION_SOURCE.

function DL_EPWM_setADCTriggerEventPrescale

__STATIC_INLINE void DL_EPWM_setADCTriggerEventPrescale(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType,
    uint16_t preScaleCount
)

Sets the ePWM SOC event counts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

  • preScaleCount 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 adcSOCType: DL_EPWM_ADC_START_OF_CONVERSION. preScaleCount value range: 1 to 15. Generate SOC pulse every preScaleCount up to 15 events. Note: A preScaleCount value of 0 disables the prescale.

function DL_EPWM_getADCTriggerFlagStatus

__STATIC_INLINE void DL_EPWM_getADCTriggerFlagStatus(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType,
    bool * adcTrgFlgStatusPtr
)

Returns the SOC event status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

  • *adcTrgFlgStatusPtr Pointer to the output ADC Trigger flag status.

This function returns the ePWM SOC status. Valid values for adcSOCType: DL_EPWM_ADC_START_OF_CONVERSION. Returns true if the selected adcSOCType SOC was generated. Returns false if the selected adcSOCType SOC was not generated.

function DL_EPWM_clearADCTriggerFlag

__STATIC_INLINE void DL_EPWM_clearADCTriggerFlag(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Clears SOC flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

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

function DL_EPWM_enableADCTriggerEventCountInit

__STATIC_INLINE void DL_EPWM_enableADCTriggerEventCountInit(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Enables Pre-SOC event count load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

This function enables the ePWM SOC event counter which is set by the DL_EPWM_setADCTriggerEventCountInitValue function to be loaded before an SOC event. Valid values for adcSOCType: DL_EPWM_ADC_START_OF_CONVERSION. Note: This is valid only for advanced/expanded SOC mode.

function DL_EPWM_disableADCTriggerEventCountInit

__STATIC_INLINE void DL_EPWM_disableADCTriggerEventCountInit(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Disables Pre-SOC event count load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType 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: DL_EPWM_ADC_START_OF_CONVERSION. Note: This is valid only for advanced/expanded SOC mode.

function DL_EPWM_forceADCTriggerEventCountInit

__STATIC_INLINE void DL_EPWM_forceADCTriggerEventCountInit(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Forces a software pre SOC event counter load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

This function forces the ePWM SOC counter to be loaded with the pre-configured count value. Note: make sure the DL_EPWM_enableADCTriggerEventCountInit function is called before invoking this function.

function DL_EPWM_setADCTriggerEventCountInitValue

__STATIC_INLINE void DL_EPWM_setADCTriggerEventCountInitValue(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType,
    uint16_t eventCount
)

Sets ADC Trigger count values.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

  • eventCount The ePWM SOC event count value.

This function sets the ePWM ADC Trigger count values. Valid values for adcSOCType: DL_EPWM_ADC_START_OF_CONVERSION. The eventCount has a maximum value of 15.

function DL_EPWM_getADCTriggerEventCount

__STATIC_INLINE void DL_EPWM_getADCTriggerEventCount(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType,
    uint16_t * adcTrgEvtCntPtr
)

Gets the SOC event count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

  • *adcTrgEvtCntPtr Pointer to the output ADC Trigger event count.

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

function DL_EPWM_forceADCTrigger

__STATIC_INLINE void DL_EPWM_forceADCTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_ADC_START_OF_CONVERSION adcSOCType
)

Forces SOC event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • adcSOCType The ADC SOC type.

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

function DL_EPWM_selectDigitalCompareTripInput

__STATIC_INLINE void DL_EPWM_selectDigitalCompareTripInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT tripSource,
    DL_EPWM_DIGITAL_COMPARE dcType
)

Sets the DC trip input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tripSource The tripSource.

  • dcType 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 tripSource: DL_EPWM_DIGITAL_COMPARE_TRIP_INPUT. Valid values for dcType: DL_EPWM_DIGITAL_COMPARE.

function DL_EPWM_enableDigitalCompareBlankingWindow

__STATIC_INLINE void DL_EPWM_enableDigitalCompareBlankingWindow(
    EPWM_Regs * epwmHwRegsPtr
)

Enables DC filter blanking window.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables the DC filter blanking window.

function DL_EPWM_disableDigitalCompareBlankingWindow

__STATIC_INLINE void DL_EPWM_disableDigitalCompareBlankingWindow(
    EPWM_Regs * epwmHwRegsPtr
)

Disables DC filter blanking window.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables the DC filter blanking window.

function DL_EPWM_enableDigitalCompareWindowInverseMode

__STATIC_INLINE void DL_EPWM_enableDigitalCompareWindowInverseMode(
    EPWM_Regs * epwmHwRegsPtr
)

Enables Digital Compare Window inverse mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables the Digital Compare Window inverse mode. This feature allows the user to select the windowing function between DCAH/L and DCBH/L signals.

function DL_EPWM_disableDigitalCompareWindowInverseMode

__STATIC_INLINE void DL_EPWM_disableDigitalCompareWindowInverseMode(
    EPWM_Regs * epwmHwRegsPtr
)

Disables Digital Compare Window inverse mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables the Digital Compare window inverse mode.

function DL_EPWM_setDigitalCompareBlankingEvent

__STATIC_INLINE void DL_EPWM_setDigitalCompareBlankingEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_BLANKING_PULSE blankingPulse
)

Sets the Digital Compare filter blanking pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • blankingPulse Pulse that starts blanking window.

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

function DL_EPWM_setDigitalCompareFilterInput

__STATIC_INLINE void DL_EPWM_setDigitalCompareFilterInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_FILTER_INPUT filterInput
)

Sets up the Digital Compare filter input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • filterInput Digital Compare signal source.

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

function DL_EPWM_enableDigitalCompareEdgeFilter

__STATIC_INLINE void DL_EPWM_enableDigitalCompareEdgeFilter(
    EPWM_Regs * epwmHwRegsPtr
)

Enables Digital Compare Edge Filter.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_disableDigitalCompareEdgeFilter

__STATIC_INLINE void DL_EPWM_disableDigitalCompareEdgeFilter(
    EPWM_Regs * epwmHwRegsPtr
)

Disables Digital Compare Edge Filter.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables the Digital Compare edge filter.

function DL_EPWM_setDigitalCompareEdgeFilterMode

__STATIC_INLINE void DL_EPWM_setDigitalCompareEdgeFilterMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE edgeMode
)

Sets the Digital Compare Edge Filter Mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • edgeMode Digital Compare event filter mode.

This function sets the Digital Compare event filter mode. Valid values for edgeMode: DL_EPWM_DIGITAL_COMPARE_EDGE_FILTER_MODE.

function DL_EPWM_setDigitalCompareEdgeFilterEdgeCount

__STATIC_INLINE void DL_EPWM_setDigitalCompareEdgeFilterEdgeCount(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t edgeCount
)

Sets the Digital Compare Edge Filter Edge Count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • edgeCount Number of edges required to generate events (0-7).

This function sets the configured edge count that the Digital Compare edge filter requires to generate events. The valid range for edgeCount parameter is from 0 to 7.

function DL_EPWM_getDigitalCompareEdgeFilterEdgeCount

__STATIC_INLINE uint16_t DL_EPWM_getDigitalCompareEdgeFilterEdgeCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the Digital Compare Edge Filter Edge Count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Configured edge count (0-7).

This function returns the configured edge count that the Digital Compare edge filter requires to generate events.

function DL_EPWM_getDigitalCompareEdgeFilterEdgeStatus

__STATIC_INLINE uint16_t DL_EPWM_getDigitalCompareEdgeFilterEdgeStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the Digital Compare Edge filter captured edge count status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Captured edge count (0-7).

This function returns the count of edges captured by the Digital Compare edge filter.

function DL_EPWM_setDigitalCompareWindowOffset

__STATIC_INLINE void DL_EPWM_setDigitalCompareWindowOffset(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t windowOffsetCount
)

Sets up the Digital Compare filter window offset.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • windowOffsetCount Blanking window offset count in TBCLK cycles.

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

function DL_EPWM_setDigitalCompareWindowLength

__STATIC_INLINE void DL_EPWM_setDigitalCompareWindowLength(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t windowLengthCount
)

Sets up the Digital Compare filter window length.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • windowLengthCount Blanking window length count in TBCLK cycles.

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

function DL_EPWM_getDigitalCompareBlankingWindowOffsetCount

__STATIC_INLINE uint16_t DL_EPWM_getDigitalCompareBlankingWindowOffsetCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns DC filter blanking window offset count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The DC filter blanking window offset count.

This function returns DC filter blanking window offset count.

function DL_EPWM_getDigitalCompareBlankingWindowLengthCount

__STATIC_INLINE uint16_t DL_EPWM_getDigitalCompareBlankingWindowLengthCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns DC filter blanking window length count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The DC filter blanking window length count.

This function returns DC filter blanking window length count.

function DL_EPWM_setDigitalCompareEventSource

__STATIC_INLINE void DL_EPWM_setDigitalCompareEventSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule,
    DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent,
    DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE dcEventSource
)

Sets up the Digital Compare Event source.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

  • dcEvent Digital Compare Event number (1 or 2).

  • dcEventSource Digital Compare Event source.

This function sets up the Digital Compare module event sources. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE. Valid values for dcEvent: DL_EPWM_DIGITAL_COMPARE_EVENT. Valid values for dcEventSource: DL_EPWM_DIGITAL_COMPARE_EVENT_SOURCE.

function DL_EPWM_setDigitalCompareEventSyncMode

__STATIC_INLINE void DL_EPWM_setDigitalCompareEventSyncMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule,
    DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent,
    DL_EPWM_DIGITAL_COMPARE_SYNC_MODE syncMode
)

Sets up the Digital Compare input sync mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

  • dcEvent Digital Compare Event number (1 or 2).

  • syncMode Digital Compare Event sync mode.

This function sets up the Digital Compare event sources. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE. Valid values for dcEvent: DL_EPWM_DIGITAL_COMPARE_EVENT. Valid values for syncMode: DL_EPWM_DIGITAL_COMPARE_SYNC_MODE.

function DL_EPWM_enableDigitalCompareADCTrigger

__STATIC_INLINE void DL_EPWM_enableDigitalCompareADCTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule
)

Enables Digital Compare to generate Start of Conversion.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

This function enables the Digital Compare Event 1 to generate Start of Conversion. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE.

function DL_EPWM_disableDigitalCompareADCTrigger

__STATIC_INLINE void DL_EPWM_disableDigitalCompareADCTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule
)

Disables Digital Compare from generating Start of Conversion.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

This function disables the Digital Compare Event 1 from generating Start of Conversion. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE.

function DL_EPWM_enableDigitalCompareSyncEvent

__STATIC_INLINE void DL_EPWM_enableDigitalCompareSyncEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule
)

Enables Digital Compare to generate sync out pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

This function enables the Digital Compare Event 1 to generate sync out pulse. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE.

function DL_EPWM_disableDigitalCompareSyncEvent

__STATIC_INLINE void DL_EPWM_disableDigitalCompareSyncEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule
)

Disables Digital Compare from generating sync out pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

This function disables the Digital Compare Event 1 from generating sync out pulse. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE.

function DL_EPWM_setDigitalCompareCBCLatchMode

__STATIC_INLINE void DL_EPWM_setDigitalCompareCBCLatchMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule,
    DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent,
    DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE latchMode
)

Sets up the Digital Compare CBC latch mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

  • dcEvent Digital Compare Event number (1 or 2).

  • latchMode Digital Compare CBC latch mode.

This function sets up the Digital Compare cycle-by-cycle latch mode. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE. Valid values for dcEvent: DL_EPWM_DIGITAL_COMPARE_EVENT. Valid values for latchMode: DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_MODE.

function DL_EPWM_selectDigitalCompareCBCLatchClearEvent

__STATIC_INLINE void DL_EPWM_selectDigitalCompareCBCLatchClearEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule,
    DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent,
    DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT clearEvent
)

Sets the Digital Compare CBC latch clear event.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

  • dcEvent Digital Compare Event number (1 or 2).

  • clearEvent Digital Compare CBC latch clear event.

This function sets the Digital Compare cycle-by-cycle latch clear event. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE. Valid values for dcEvent: DL_EPWM_DIGITAL_COMPARE_EVENT. Valid values for clearEvent: DL_EPWM_DIGITAL_COMPARE_CBC_LATCH_CLEAR_EVENT.

function DL_EPWM_getDigitalCompareCBCLatchStatus

__STATIC_INLINE void DL_EPWM_getDigitalCompareCBCLatchStatus(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DIGITAL_COMPARE_MODULE dcModule,
    DL_EPWM_DIGITAL_COMPARE_EVENT dcEvent,
    bool * cbcLatchStatusPtr
)

Gets the Digital Compare CBC latch status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • dcModule Digital Compare Module (A or B).

  • dcEvent Digital Compare Event number (1 or 2).

  • *cbcLatchStatusPtr Pointer to the output CBC latch status.

This function returns the Digital Compare module cycle-by-cycle latch status. Valid values for dcModule: DL_EPWM_DIGITAL_COMPARE_MODULE. Valid values for dcEvent: DL_EPWM_DIGITAL_COMPARE_EVENT.

function DL_EPWM_enableDigitalCompareCounterCapture

__STATIC_INLINE void DL_EPWM_enableDigitalCompareCounterCapture(
    EPWM_Regs * epwmHwRegsPtr
)

Enables the Time Base Counter Capture controller.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables the Time Base Counter Capture.

function DL_EPWM_disableDigitalCompareCounterCapture

__STATIC_INLINE void DL_EPWM_disableDigitalCompareCounterCapture(
    EPWM_Regs * epwmHwRegsPtr
)

Disables the Time Base Counter Capture controller.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables the Digital Compare Time Base Counter Capture.

function DL_EPWM_setDigitalCompareCounterShadowMode

__STATIC_INLINE void DL_EPWM_setDigitalCompareCounterShadowMode(
    EPWM_Regs * epwmHwRegsPtr,
    bool enableShadowMode
)

Sets the Time Base Counter Capture mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • enableShadowMode Enable shadow mode (true) or immediate load mode (false).

This function sets up the shadow mode for the Time Base Counter Capture. If enabled, the DC Capture counter will be loaded from its shadow on a CTR = PRD or CTR = 0 event.

function DL_EPWM_getDigitalCompareCaptureStatus

__STATIC_INLINE bool DL_EPWM_getDigitalCompareCaptureStatus(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the DC Capture event status.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Returns true if a capture event has occurred, false otherwise.

This function returns the status of the Digital Compare Capture event.

function DL_EPWM_configureDigitalCompareCounterCaptureMode

__STATIC_INLINE void DL_EPWM_configureDigitalCompareCounterCaptureMode(
    EPWM_Regs * epwmHwRegsPtr,
    bool disableClearMode
)

Configures DC capture operating mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • disableClearMode Disable counter clear on PULSESEL event (true) or enable clear (false).

This function configures the Digital Compare Capture operating mode. When disableClearMode is true, the DC Capture counter will not be cleared on a blanking window start event. When false, the counter will be cleared.

function DL_EPWM_clearDigitalCompareCaptureStatusFlag

__STATIC_INLINE void DL_EPWM_clearDigitalCompareCaptureStatusFlag(
    EPWM_Regs * epwmHwRegsPtr
)

Clears DC capture latched status flag.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function clears the Digital Compare Capture latched status flag.

function DL_EPWM_getDigitalCompareCaptureCount

__STATIC_INLINE uint16_t DL_EPWM_getDigitalCompareCaptureCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the DC Time Base Counter capture value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The DC Time Base Counter Capture count value.

This function returns the DC Time Base Counter capture value.

function DL_EPWM_enableDigitalCompareTripCombinationInput

__STATIC_INLINE void DL_EPWM_enableDigitalCompareTripCombinationInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DC_COMBINATIONAL_TRIP_IN tripInput,
    DL_EPWM_DIGITAL_COMPARE dcType
)

Enables DC TRIP combinational input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tripInput Trip input bitmask.

  • dcType Digital Compare Type.

This function enables the specified DC trip input. Valid values for tripInput: DL_EPWM_DC_COMBINATIONAL_TRIP_IN. Valid values for dcType: DL_EPWM_DIGITAL_COMPARE.

function DL_EPWM_disableDigitalCompareTripCombinationInput

__STATIC_INLINE void DL_EPWM_disableDigitalCompareTripCombinationInput(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_DC_COMBINATIONAL_TRIP_IN tripInput,
    DL_EPWM_DIGITAL_COMPARE dcType
)

Disables DC TRIP combinational input.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • tripInput Trip input bitmask.

  • dcType Digital Compare Type.

This function disables the specified DC trip input. Valid values for tripInput: DL_EPWM_DC_COMBINATIONAL_TRIP_IN. Valid values for dcType: DL_EPWM_DIGITAL_COMPARE.

function DL_EPWM_enableValleyCapture

__STATIC_INLINE void DL_EPWM_enableValleyCapture(
    EPWM_Regs * epwmHwRegsPtr
)

Enables Valley Capture mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables Valley Capture mode.

function DL_EPWM_disableValleyCapture

__STATIC_INLINE void DL_EPWM_disableValleyCapture(
    EPWM_Regs * epwmHwRegsPtr
)

Disables valley capture mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables Valley Capture mode.

function DL_EPWM_startValleyCapture

__STATIC_INLINE void DL_EPWM_startValleyCapture(
    EPWM_Regs * epwmHwRegsPtr
)

Starts valley capture mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function starts Valley Capture sequence. Make sure you invoke DL_EPWM_setValleyTriggerSource with the trigger variable set to DL_EPWM_VALLEY_TRIGGER_SOURCE_SOFTWARE before calling this function.

function DL_EPWM_setValleyTriggerSource

__STATIC_INLINE void DL_EPWM_setValleyTriggerSource(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_VALLEY_TRIGGER_SOURCE trigger
)

Sets valley capture trigger.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • trigger Valley counter trigger source.

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

function DL_EPWM_setValleyTriggerEdgeCounts

__STATIC_INLINE void DL_EPWM_setValleyTriggerEdgeCounts(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t startCount,
    uint16_t stopCount
)

Sets valley capture trigger source count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • startCount Start edge count.

  • stopCount Stop edge count.

This function sets the number of trigger events required to start and stop the valley capture count. Maximum values for both startCount and stopCount is 15 corresponding to the 15th edge of the trigger event. Note: A startCount value of 0 prevents starting the valley counter. A stopCount value of 0 prevents the valley counter from stopping.

function DL_EPWM_enableValleyHWDelay

__STATIC_INLINE void DL_EPWM_enableValleyHWDelay(
    EPWM_Regs * epwmHwRegsPtr
)

Enables valley switching delay.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables Valley switching delay.

function DL_EPWM_disableValleyHWDelay

__STATIC_INLINE void DL_EPWM_disableValleyHWDelay(
    EPWM_Regs * epwmHwRegsPtr
)

Disables valley switching delay.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function disables Valley switching delay.

function DL_EPWM_setValleySWDelayValue

__STATIC_INLINE void DL_EPWM_setValleySWDelayValue(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t delayOffsetValue
)

Sets Valley delay values.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • delayOffsetValue Software-defined delay offset value.

This function sets the Valley delay value.

function DL_EPWM_setValleyDelayDivider

__STATIC_INLINE void DL_EPWM_setValleyDelayDivider(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_VALLEY_DELAY_MODE delayMode
)

Sets Valley delay mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • delayMode Valley delay mode.

This function sets the Valley delay mode values.

function DL_EPWM_getValleyEdgeStatus

__STATIC_INLINE void DL_EPWM_getValleyEdgeStatus(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_VALLEY_COUNTER_EDGE edge,
    bool * valleyEdgeStatusPtr
)

Gets the valley edge status bit.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • edge Start or stop valley edge.

  • *valleyEdgeStatusPtr Pointer to the output Valley edge status.

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.

function DL_EPWM_getValleyCount

__STATIC_INLINE uint16_t DL_EPWM_getValleyCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the Valley Counter value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The valley base time count.

This function returns the valley time base count value which is captured upon occurrence of the stop edge condition selected by DL_EPWM_setValleyTriggerSource and by the stopCount variable of the DL_EPWM_setValleyTriggerEdgeCounts function.

function DL_EPWM_getValleyHWDelay

__STATIC_INLINE uint16_t DL_EPWM_getValleyHWDelay(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the Valley delay value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The valley delay count.

This function returns the hardware valley delay count.

function DL_EPWM_enableGlobalLoad

__STATIC_INLINE void DL_EPWM_enableGlobalLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Enables Global shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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 DL_EPWM_setGlobalLoadTrigger function.

function DL_EPWM_disableGlobalLoad

__STATIC_INLINE void DL_EPWM_disableGlobalLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Disables Global shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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.

function DL_EPWM_setGlobalLoadTrigger

__STATIC_INLINE void DL_EPWM_setGlobalLoadTrigger(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_GLOBAL_LOAD_TRIGGER loadTrigger
)

Sets the Global shadow load pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadTrigger Pulse that triggers global shadow load.

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

function DL_EPWM_setGlobalLoadEventPrescale

__STATIC_INLINE void DL_EPWM_setGlobalLoadEventPrescale(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t prescalePulseCount
)

Sets the number of Global load pulse event counts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • prescalePulseCount Number of trigger pulse events per load.

This function sets the number of Global Load pulse events that have to occur 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.

function DL_EPWM_getGlobalLoadEventCount

__STATIC_INLINE uint16_t DL_EPWM_getGlobalLoadEventCount(
    const EPWM_Regs * epwmHwRegsPtr
)

Returns the number of Global load pulse event counts.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: The Global load event count.

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

function DL_EPWM_disableGlobalLoadOneShotMode

__STATIC_INLINE void DL_EPWM_disableGlobalLoadOneShotMode(
    EPWM_Regs * epwmHwRegsPtr
)

Disables one-shot global shadow to active load.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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 DL_EPWM_setGlobalLoadTrigger occurs.

function DL_EPWM_enableGlobalLoadOneShotMode

__STATIC_INLINE void DL_EPWM_enableGlobalLoadOneShotMode(
    EPWM_Regs * epwmHwRegsPtr
)

Enables One shot global shadow to active load.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

This function enables a one-time global shadow to active load. Register load happens once when the event set by the DL_EPWM_setGlobalLoadTrigger occurs.

function DL_EPWM_setGlobalLoadOneShotLatch

__STATIC_INLINE void DL_EPWM_setGlobalLoadOneShotLatch(
    EPWM_Regs * epwmHwRegsPtr
)

Sets One shot global shadow to active load pulse.

Parameters:

  • *epwmHwRegsPtr is the pointer to 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 DL_EPWM_setGlobalLoadTrigger occur.

function DL_EPWM_forceGlobalLoadOneShotEvent

__STATIC_INLINE void DL_EPWM_forceGlobalLoadOneShotEvent(
    EPWM_Regs * epwmHwRegsPtr
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

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

function DL_EPWM_enableGlobalLoadRegisters

__STATIC_INLINE void DL_EPWM_enableGlobalLoadRegisters(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_GLOBAL_LOAD_REGISTER loadRegister
)

Enables a register to be loaded globally.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadRegister Register for global shadow load.

This function enables the register specified by loadRegister to be globally loaded.

function DL_EPWM_disableGlobalLoadRegisters

__STATIC_INLINE void DL_EPWM_disableGlobalLoadRegisters(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_GLOBAL_LOAD_REGISTER loadRegister
)

Disables a register to be loaded globally.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadRegister Register for global shadow load.

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

function DL_EPWM_lockRegisters

__STATIC_INLINE void DL_EPWM_lockRegisters(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_LOCK_REGISTER_GROUP registerGroup
)

Locks a group of ePWM registers.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • registerGroup Group of registers to lock.

function DL_EPWM_setEmulationMode

__STATIC_INLINE void DL_EPWM_setEmulationMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_EMULATION_MODE emulationMode
)

Sets the emulation mode of the time base counter.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • emulationMode Emulation mode for the time base counter.

This function sets the emulation behaviours of the time base counter. Valid values for emulationMode: DL_EPWM_EMULATION_MODE.

function DL_EPWM_setHRPhaseShift

__STATIC_INLINE void DL_EPWM_setHRPhaseShift(
    EPWM_Regs * epwmHwRegsPtr,
    uint32_t phaseCount
)

Sets the consolidated phase shift value in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • phaseCount Consolidated phase shift count value (24-bit). Bits [23:8] map to TBPHS, Bits [7:0] map to TBPHSHR.

Sets both TBPHS and TBPHSHR values together. phaseCount is a 24-bit value where bits [23:8] map to TBPHS and bits [7:0] map to TBPHSHR. Call enablePhaseShiftLoad and enableHRPhaseShiftLoad to enable loading of the phase shift value in high resolution mode. Example: for TBPHS = 0x3C and TBPHSHR = 0x2, phaseCount = 0x3C02.

function DL_EPWM_setHiResPhaseShiftOnly

__STATIC_INLINE void DL_EPWM_setHiResPhaseShiftOnly(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t hrPhaseCount
)

Sets only the high resolution phase shift value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • hrPhaseCount High resolution phase shift count value (8-bit). Must be less than 256.

Sets only the high resolution phase shift register TBPHSHR. hrPhaseCount is an 8-bit value. Call enableHRPhaseShiftLoad to enable loading of the hrPhaseCount value.

function DL_EPWM_setHRTimeBasePeriod

__STATIC_INLINE void DL_EPWM_setHRTimeBasePeriod(
    EPWM_Regs * epwmHwRegsPtr,
    uint32_t periodCount
)

Sets the consolidated time base period in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • periodCount Consolidated period count value (24-bit). Bits [23:8] map to TBPRD, Bits [7:0] map to TBPRDHR.

Sets both TBPRD and TBPRDHR values together. periodCount is a 24-bit value where bits [23:8] map to TBPRD and bits [7:0] map to TBPRDHR. Map the desired period or frequency of the waveform into the correct periodCount. Example: for TBPRD = 0x3C and TBPRDHR = 0xA, periodCount = 0x3C0A.

function DL_EPWM_setHiResTimeBasePeriodOnly

__STATIC_INLINE void DL_EPWM_setHiResTimeBasePeriodOnly(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t hrPeriodCount
)

Sets only the high resolution time base period.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • hrPeriodCount High resolution period count value (8-bit). Must be less than 256.

Sets only the high resolution time base counter register TBPRDHR. hrPeriodCount is an 8-bit value. Map the desired period or frequency of the waveform into the correct hrPeriodCount.

function DL_EPWM_getHRTimeBasePeriod

__STATIC_INLINE uint32_t DL_EPWM_getHRTimeBasePeriod(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets the consolidated time base period used in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: Consolidated period count with TBPRD in bits [23:8] and TBPRDHR in bits [7:0].

Returns combined TBPRD and TBPRDHR value. Result bits [23:8] = TBPRD, bits [7:0] = hrPeriodCount.

function DL_EPWM_getHiResTimeBasePeriodOnly

__STATIC_INLINE uint16_t DL_EPWM_getHiResTimeBasePeriodOnly(
    const EPWM_Regs * epwmHwRegsPtr
)

Gets only the high resolution time base period.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Return: High resolution period count value.

Returns the TBPRDHR value (8-bit hrPeriodCount stored in bits [15:8] of the register).

function DL_EPWM_setMEPEdgeMode

__STATIC_INLINE void DL_EPWM_setMEPEdgeMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_CHANNEL channel,
    DL_EPWM_HRPWM_MEP_EDGE_MODE mepEdgeMode
)

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

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • channel HRPWM channel (A or B).

  • mepEdgeMode MEP edge control mode.

Sets the edge of the PWM output that is controlled by MEP. Writes EDGMODE for channel A or EDGMODEB for channel B in the HRCNFG register. Disable MEP control, control only the rising edge, only the falling edge, or both edges.

function DL_EPWM_setMEPControlMode

__STATIC_INLINE void DL_EPWM_setMEPControlMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_CHANNEL channel,
    DL_EPWM_HRPWM_MEP_CTRL_MODE mepCtrlMode
)

Sets the MEP (Micro Edge Positioner) control mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • channel HRPWM channel (A or B).

  • mepCtrlMode MEP control mode (duty/period or phase).

Sets the mode (register type) the MEP controls. DL_EPWM_HRPWM_MEP_DUTY_PERIOD_CTRL: MEP is controlled by CMPAHR/CMPBHR (depending on channel) or TBPRDHR. DL_EPWM_HRPWM_MEP_PHASE_CTRL: MEP is controlled by TBPHSHR. Writes CTLMODE for channel A or CTLMODEB for channel B.

function DL_EPWM_setHRCounterCompareShadowLoadEvent

__STATIC_INLINE void DL_EPWM_setHRCounterCompareShadowLoadEvent(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_CHANNEL channel,
    DL_EPWM_HRPWM_LOAD_MODE loadEvent
)

Sets the high resolution comparator shadow load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • channel HRPWM channel (A or B).

  • loadEvent Shadow to active load event.

Sets the shadow-to-active load mode of the high resolution counter compare register. Writes HRLOAD for channel A or HRLOADB for channel B in HRCNFG. Load events: counter equals zero, counter equals period, counter equals zero or period, or translator event CMPA/B-3.

function DL_EPWM_setOutputSwapMode

__STATIC_INLINE void DL_EPWM_setOutputSwapMode(
    EPWM_Regs * epwmHwRegsPtr,
    bool enableOutputSwap
)

Sets the HRPWM output swap mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • enableOutputSwap true to swap ePWMxA and ePWMxB outputs, false to leave unchanged.

If enableOutputSwap is true, ePWMxA signal appears on ePWMxB output and ePWMxB signal appears on ePWMxA output. If enableOutputSwap is false, ePWMxA and ePWMxB outputs are unchanged.

function DL_EPWM_setChannelBOutputPath

__STATIC_INLINE void DL_EPWM_setChannelBOutputPath(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_CHANNEL_B_OUTPUT outputOnB
)

Sets the HRPWM output signal on ePWMxB.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • outputOnB Output signal selection for ePWMxB.

Configures the SELOUTB field in HRCNFG. If outputOnB is DL_EPWM_HRPWM_OUTPUT_ON_B_INV_A, ePWMxB output is an inverted version of ePWMxA. If outputOnB is DL_EPWM_HRPWM_OUTPUT_ON_B_NORMAL, ePWMxB carries the normal ePWMxB signal.

function DL_EPWM_enableAutoConversion

__STATIC_INLINE void DL_EPWM_enableAutoConversion(
    EPWM_Regs * epwmHwRegsPtr
)

Enables MEP automatic scale mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Enables the MEP (Micro Edge Positioner) to automatically scale the HRMSTEP register. The calibration function DL_EPWM_calibrateHRPWMScaleFactor calculates the required MEP steps per coarse step and writes the value to HRMSTEP. The MEP calibration module uses HRMSTEP to determine the number of MEP steps representing the fractional duty cycle.

function DL_EPWM_disableAutoConversion

__STATIC_INLINE void DL_EPWM_disableAutoConversion(
    EPWM_Regs * epwmHwRegsPtr
)

Disables MEP automatic scale mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Disables the MEP (Micro Edge Positioner) from automatically scaling the HRMSTEP register.

function DL_EPWM_enablePeriodControl

__STATIC_INLINE void DL_EPWM_enablePeriodControl(
    EPWM_Regs * epwmHwRegsPtr
)

Enables the high resolution period feature.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Sets the HRPE bit in HRPCTL. When enabled, the effective time base period is determined by both TBPRD (coarse) and TBPRDHR (high resolution) as set by setHRTimeBasePeriod.

function DL_EPWM_disablePeriodControl

__STATIC_INLINE void DL_EPWM_disablePeriodControl(
    EPWM_Regs * epwmHwRegsPtr
)

Disables the high resolution period feature.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Clears the HRPE bit in HRPCTL. When disabled, only the TBPRD register determines the time base period; TBPRDHR is not used.

function DL_EPWM_enableHRPhaseShiftLoad

__STATIC_INLINE void DL_EPWM_enableHRPhaseShiftLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Enables loading of the high resolution phase shift value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Enables loading of the high resolution phase shift value set by setHRPhaseShift. Sets the TBPHSHRLOADE bit in HRPCTL.

function DL_EPWM_disableHRPhaseShiftLoad

__STATIC_INLINE void DL_EPWM_disableHRPhaseShiftLoad(
    EPWM_Regs * epwmHwRegsPtr
)

Disables loading of the high resolution phase shift value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

Disables loading of the high resolution phase shift value set by setHRPhaseShift. Clears the TBPHSHRLOADE bit in HRPCTL.

function DL_EPWM_setTranslatorRemainder

__STATIC_INLINE void DL_EPWM_setTranslatorRemainder(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t trremVal
)

Sets the Translator Remainder value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • trremVal Translator remainder value (11-bit). Must be less than 2048.

Sets the TRREM field in the TRREM register. trremVal must be less than 2048.

function DL_EPWM_setHRCounterCompareValue

__STATIC_INLINE void DL_EPWM_setHRCounterCompareValue(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule,
    uint32_t compCount
)

Sets the consolidated counter compare value in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module (A or B).

  • compCount Consolidated counter compare count value (24-bit). Bits [23:8] map to CMPx, Bits [7:0] map to CMPxHR.

Sets both CMPx and CMPxHR together. compCount bits [23:8] = CMPx, bits [7:0] = CMPxHR. For example, with CMPA = 0xB4 and CMPAHR = 0x64, use compCount = 0xB464.

function DL_EPWM_setHiResCounterCompareValueOnly

__STATIC_INLINE void DL_EPWM_setHiResCounterCompareValueOnly(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule,
    uint16_t hrCompCount
)

Sets only the high resolution counter compare value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module (A or B).

  • hrCompCount High resolution counter compare count value (8-bit). Must be less than 256.

Sets only the CMPxHR field (lower 16 bits of CMPA or CMPB register). hrCompCount is an 8-bit value.

function DL_EPWM_getHRCounterCompareValue

__STATIC_INLINE void DL_EPWM_getHRCounterCompareValue(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule,
    uint32_t * compCountPtr
)

Gets the consolidated counter compare value in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module (A or B).

  • *compCountPtr Output: consolidated compare count with CMPx in bits [23:8] and CMPxHR in bits [7:0].

Writes combined CMPx and CMPxHR value to compCountPtr. Result bits [23:8] = CMPx, bits [7:0] = hrCompCount.

function DL_EPWM_getHiResCounterCompareValueOnly

__STATIC_INLINE void DL_EPWM_getHiResCounterCompareValueOnly(
    const EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_COUNTER_COMPARE_MODULE compModule,
    uint16_t * hrCompCountPtr
)

Gets only the high resolution counter compare value.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • compModule Counter compare module (A or B).

  • *hrCompCountPtr Output: high resolution counter compare count value (8-bit).

Writes the CMPxHR value (8-bit hrCompCount stored in bits [15:8] of CMPAHR or CMPBHR) to hrCompCountPtr.

function DL_EPWM_setHRRisingEdgeDelay

__STATIC_INLINE void DL_EPWM_setHRRisingEdgeDelay(
    EPWM_Regs * epwmHwRegsPtr,
    uint32_t redCount
)

Sets the consolidated Rising Edge Delay count in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • redCount Consolidated rising edge delay count (21-bit). bits [20:7] map to DBRED, bits [6:0] map to DBREDHR.

Sets both DBRED and DBREDHR together. redCount bits [20:7] = DBRED, bits [6:0] = DBREDHR. For example, with DBRED = 0x4 and DBREDHR = 0x1, use redCount = ((0x4 << 7) | 0x1) = 0x201.

function DL_EPWM_setHiResRisingEdgeDelayOnly

__STATIC_INLINE void DL_EPWM_setHiResRisingEdgeDelayOnly(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t hrRedCount
)

Sets only the high resolution Rising Edge Delay count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • hrRedCount High resolution rising edge delay count (7-bit). Must be less than 128.

Sets only DBREDHR. hrRedCount is a 7-bit value placed in bits [15:9] of DBREDHR.

function DL_EPWM_setHRFallingEdgeDelay

__STATIC_INLINE void DL_EPWM_setHRFallingEdgeDelay(
    EPWM_Regs * epwmHwRegsPtr,
    uint32_t fedCount
)

Sets the consolidated Falling Edge Delay count in high resolution mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • fedCount Consolidated falling edge delay count (21-bit). bits [20:7] map to DBFED, bits [6:0] map to DBFEDHR.

Sets both DBFED and DBFEDHR together. fedCount bits [20:7] = DBFED, bits [6:0] = DBFEDHR. For example, with DBFED = 0x4 and DBFEDHR = 0x1, use fedCount = ((0x4 << 7) | 0x1) = 0x201.

function DL_EPWM_setHiResFallingEdgeDelayOnly

__STATIC_INLINE void DL_EPWM_setHiResFallingEdgeDelayOnly(
    EPWM_Regs * epwmHwRegsPtr,
    uint16_t hrFedCount
)

Sets only the high resolution Falling Edge Delay count.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • hrFedCount High resolution falling edge delay count (7-bit). Must be less than 128.

Sets only DBFEDHR. hrFedCount is a 7-bit value placed in bits [15:9] of DBFEDHR.

function DL_EPWM_setMEPStep

__STATIC_INLINE void DL_EPWM_setMEPStep(
    HRPWMCAL_Regs * hrpwmcalHwRegsPtr,
    uint16_t mepCount
)

Sets the high resolution MEP (Micro Edge Positioner) step count.

Parameters:

  • *hrpwmcalHwRegsPtr is the pointer to the base address of the HRPWM Calibration module.

  • mepCount MEP step count value (8-bit). Must be less than 256.

Sets the HRMSTEP field in the HRPWMCAL module. mepCount is an 8-bit value.

function DL_EPWM_setDeadbandMEPEdgeSelect

__STATIC_INLINE void DL_EPWM_setDeadbandMEPEdgeSelect(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_MEP_DEAD_BAND_EDGE_MODE mepDBEdge
)

Sets the high resolution Dead Band edge controlled by MEP.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • mepDBEdge MEP dead band edge control mode.

Sets EDGMODEDB field in HRCNFG2. Use DL_EPWM_HRPWM_DB_MEP_CTRL_DISABLE to disable MEP control, DL_EPWM_HRPWM_DB_MEP_CTRL_RED for MEP to control Rising Edge Delay, DL_EPWM_HRPWM_DB_MEP_CTRL_FED for Falling Edge Delay, or DL_EPWM_HRPWM_DB_MEP_CTRL_RED_FED for both.

function DL_EPWM_setHRRisingEdgeDelayLoadMode

__STATIC_INLINE void DL_EPWM_setHRRisingEdgeDelayLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_LOAD_MODE loadEvent
)

Sets the high resolution Dead Band Rising Edge Delay load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadEvent Shadow to active load event for RED.

Sets CTLMODEDBRED field in HRCNFG2. Valid load events are DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO, DL_EPWM_HRPWM_LOAD_ON_CNTR_PERIOD, and DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO_PERIOD. DL_EPWM_HRPWM_LOAD_ON_CMPX_EQ is not valid for Dead Band RED.

function DL_EPWM_setHRFallingEdgeDelayLoadMode

__STATIC_INLINE void DL_EPWM_setHRFallingEdgeDelayLoadMode(
    EPWM_Regs * epwmHwRegsPtr,
    DL_EPWM_HRPWM_LOAD_MODE loadEvent
)

Sets the high resolution Dead Band Falling Edge Delay load mode.

Parameters:

  • *epwmHwRegsPtr is the pointer to the base address of the EPWM module.

  • loadEvent Shadow to active load event for FED.

Sets CTLMODEDBFED field in HRCNFG2. Valid load events are DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO, DL_EPWM_HRPWM_LOAD_ON_CNTR_PERIOD, and DL_EPWM_HRPWM_LOAD_ON_CNTR_ZERO_PERIOD. DL_EPWM_HRPWM_LOAD_ON_CMPX_EQ is not valid for Dead Band FED.

function DL_EPWM_setHRCalContextDefaultValues

__STATIC_INLINE void DL_EPWM_setHRCalContextDefaultValues(
    DL_EPWM_HRCalContext * hrCalContextPtr
)

Initializes an HRCalContext structure to its default (zero) values.

Parameters:

  • *hrCalContextPtr Pointer to the HRCalContext structure to initialize.

Zeroes all fields including Hrc1, Hrc2, TaskPtr, and MEPScaleFactor. Must be called once per instance before passing the context to DL_EPWM_calibrateHRPWMScaleFactor for the first time.

function DL_EPWM_calibrateHRPWMScaleFactor

void DL_EPWM_calibrateHRPWMScaleFactor(
    HRPWMCAL_Regs * hrpwmcalHwRegsPtr,
    DL_EPWM_HRCalContext * hrCalContextPtr,
    int32_t * calibrationStatusPtr
)

Run one step of the Scale Factor Optimizer (SFO) MEP calibration state machine.

Parameters:

  • *hrpwmcalHwRegsPtr is the pointer to the base address of the HRPWM Calibration module.

  • *hrCalContextPtr Pointer to the caller-managed HRCalContext holding calibration state across calls.

  • *calibrationStatusPtr Pointer to the returned HRPWM calibration status. DL_EPWM_HRPWMCALIBRATION_INCOMPLETE while calibration is in progress, DL_EPWM_HRPWMCALIBRATION_COMPLETE on success, DL_EPWM_HRPWMCALIBRATION_ERROR if the computed MEP scale factor is invalid.

Executes one step of a 6-state MEP calibration sequence using the HRPWMCAL module. Call repeatedly (e.g., in a background loop) until DL_EPWM_HRPWMCALIBRATION_COMPLETE or DL_EPWM_HRPWMCALIBRATION_ERROR is returned. Calibration state, including the computed MEPScaleFactor, is stored in hrCalContextPtr; allocate one HRCalContext per HRPWM instance. Initialise hrCalContextPtr with DL_EPWM_setHRCalContextDefaultValues before the first call.

Macros Documentation

define DL_EPWM_SYNC_OUT_SOURCE_MASK

#define DL_EPWM_SYNC_OUT_SOURCE_MASK     (EPWM_EPWMSYNCOUTEN_SWEN_MASK | EPWM_EPWMSYNCOUTEN_ZEROEN_MASK | EPWM_EPWMSYNCOUTEN_CMPBEN_MASK |      \
     EPWM_EPWMSYNCOUTEN_CMPCEN_MASK | EPWM_EPWMSYNCOUTEN_CMPDEN_MASK | EPWM_EPWMSYNCOUTEN_DCAEVT1EN_MASK | \
     EPWM_EPWMSYNCOUTEN_DCBEVT1EN_MASK)

Sync Out Source Mask with all sources selected.

define DL_EPWM_DB_RED_COUNT_MAX

#define DL_EPWM_DB_RED_COUNT_MAX (0x3FFFU)

Maximum valid value for rising edge delay count.

define DL_EPWM_DB_FED_COUNT_MAX

#define DL_EPWM_DB_FED_COUNT_MAX (0x3FFFU)

Maximum valid value for falling edge delay count.

define DL_EPWM_CHOPPER_DUTY_CYCLE_COUNT_MAX

#define DL_EPWM_CHOPPER_DUTY_CYCLE_COUNT_MAX (6U)

Maximum valid value for chopper duty cycle count.

define DL_EPWM_CHOPPER_FREQ_DIV_MAX

#define DL_EPWM_CHOPPER_FREQ_DIV_MAX (7U)

Maximum valid value for chopper clock frequency divider.

define DL_EPWM_CHOPPER_FIRST_PULSE_WIDTH_MAX

#define DL_EPWM_CHOPPER_FIRST_PULSE_WIDTH_MAX (15U)

Maximum valid value for chopper first pulse width.

define DL_EPWM_TZ_SIGNAL_VALID_MASK

#define DL_EPWM_TZ_SIGNAL_VALID_MASK (0xFFFFU)

Mask for valid values for Tripzone signal.

define DL_EPWM_TZ_INTERRUPT_VALID_MASK

#define DL_EPWM_TZ_INTERRUPT_VALID_MASK (0xFEU)

Mask for valid values for Tripzone interrupts.

define DL_EPWM_TZ_FLAG_VALID_MASK

#define DL_EPWM_TZ_FLAG_VALID_MASK (0xFFU)

Mask for valid values for Tripzone flags.

define DL_EPWM_TZ_CBC_OST_FLAG_VALID_MASK

#define DL_EPWM_TZ_CBC_OST_FLAG_VALID_MASK (0x1FFU)

Mask for valid values for Tripzone cycle-by-cycle and one-shot flags.

define DL_EPWM_TZ_FRC_EVT_VALID_MASK

#define DL_EPWM_TZ_FRC_EVT_VALID_MASK (0xFEU)

Mask for valid values for Tripzone events that can be forced.

define DL_EPWM_PRESCALE_PULSE_COUNT_MAX

#define DL_EPWM_PRESCALE_PULSE_COUNT_MAX (7U)

Maximum valid value for prescale pulse count.

define DL_EPWM_INT_EVT_COUNT_MAX

#define DL_EPWM_INT_EVT_COUNT_MAX (15U)

Maximum valid value for interrupt event count.

define DL_EPWM_ADC_PRESCALE_COUNT_MAX

#define DL_EPWM_ADC_PRESCALE_COUNT_MAX (15U)

Maximum valid value for ADC Prescale count.

define DL_EPWM_SOC_INIT_EVT_COUNT_MAX

#define DL_EPWM_SOC_INIT_EVT_COUNT_MAX (15U)

Maximum valid value for event count written to ADC SOC init register.

define DL_EPWM_DCTRIPSEL_COMBINATION_SEL

#define DL_EPWM_DCTRIPSEL_COMBINATION_SEL (0x0000000FU)

Trip combination input select for DC.

define DL_EPWM_DC_CMB_TRIPIN_VALID_MASK

#define DL_EPWM_DC_CMB_TRIPIN_VALID_MASK (0x7FFFU)

Mask for valid values for DC Combinational trip input.

define DL_EPWM_DC_EDGE_FILTER_COUNT_MAX

#define DL_EPWM_DC_EDGE_FILTER_COUNT_MAX (7U)

Maximum valid value for edge count given as input to DC edge filter.

define DL_EPWM_VALLEY_TRIGGER_COUNT_MAX

#define DL_EPWM_VALLEY_TRIGGER_COUNT_MAX (15U)

Maximum valid value for Valley trigger count.

define DL_EPWM_GL_REG_VALID_MASK

#define DL_EPWM_GL_REG_VALID_MASK (0x7FFU)

Mask for valid values for Global load register.

define DL_EPWM_LOCK_REG_KEY

#define DL_EPWM_LOCK_REG_KEY (0xA5A50000U)

Key used by EPWM Lock register.

define DL_EPWM_HRPWM_SFO_CAL_PERIOD

#define DL_EPWM_HRPWM_SFO_CAL_PERIOD (65535U)

OTTOCAL counter period value (HRPRD) used during SFO calibration runs.

define DL_EPWM_HRPWM_SFO_MEP_STEP_A

#define DL_EPWM_HRPWM_SFO_MEP_STEP_A (80U)

Number of MEP delay steps used for the first calibration measurement point.

define DL_EPWM_HRPWM_SFO_MEP_STEP_B

#define DL_EPWM_HRPWM_SFO_MEP_STEP_B (200U)

Number of MEP delay steps used for the second calibration measurement point.

define DL_EPWM_HRPWM_HR_DATA_OFS

#define DL_EPWM_HRPWM_HR_DATA_OFS (8U)

Bit offset of the 8-bit HR data value within its 16-bit HRPWM register field.

define DL_EPWM_HRPWM_DB_HR_BITS

#define DL_EPWM_HRPWM_DB_HR_BITS (7U)

Number of HR bits in the HRPWM Dead Band delay register field (DBREDHR/DBFEDHR).

define DL_EPWM_HRPWMCALIBRATION_COMPLETE

#define DL_EPWM_HRPWMCALIBRATION_COMPLETE (0)

HRPWM SFO calibration completed successfully and HRMSTEP has been updated.

define DL_EPWM_HRPWMCALIBRATION_INCOMPLETE

#define DL_EPWM_HRPWMCALIBRATION_INCOMPLETE (1)

HRPWM SFO calibration is still in progress.

define DL_EPWM_HRPWMCALIBRATION_ERROR

#define DL_EPWM_HRPWMCALIBRATION_ERROR (2)

HRPWM SFO calibration failed: computed MEP scale factor exceeds the maximum of 255.

define DL_EPWM_HRPWM_PHASE_COUNT_MAX

#define DL_EPWM_HRPWM_PHASE_COUNT_MAX (0xFFFFFFU)

Maximum valid 24-bit consolidated count (phase shift, time base period, counter compare).

define DL_EPWM_HRPWM_HR_COUNT_MAX

#define DL_EPWM_HRPWM_HR_COUNT_MAX (0xFFU)

Maximum valid 8-bit high resolution count (hrPhaseCount, hrPeriodCount, hrCompCount, mepCount).

define DL_EPWM_HRPWM_TRREM_MAX

#define DL_EPWM_HRPWM_TRREM_MAX (EPWM_TRREM_TRREM_MASK)

Maximum valid 11-bit translator remainder value.

define DL_EPWM_HRPWM_RED_COUNT_MAX

#define DL_EPWM_HRPWM_RED_COUNT_MAX (0x1FFFFFU)

Maximum valid 21-bit consolidated Rising Edge Delay count.

define DL_EPWM_HRPWM_HR_RED_FED_COUNT_MAX

#define DL_EPWM_HRPWM_HR_RED_FED_COUNT_MAX (0x7FU)

Maximum valid 7-bit high resolution Rising/Falling Edge Delay count.

define DL_EPWM_HRPWM_HR_DATA_MASK

#define DL_EPWM_HRPWM_HR_DATA_MASK (0xFFU)

Mask for the 8-bit HR data portion of a consolidated HRPWM count value.