|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
103 #include <drivers/hw_include/cslr.h>
104 #include <drivers/hw_include/cslr_epwm.h>
121 #define EPWM_OUTPUT_CH_MIN (0U)
123 #define EPWM_OUTPUT_CH_A (EPWM_OUTPUT_CH_MIN)
125 #define EPWM_OUTPUT_CH_B (1U)
127 #define EPWM_OUTPUT_CH_MAX (EPWM_OUTPUT_CH_B)
138 #define EPWM_TB_COUNTER_DIR_UP (PWMSS_EPWM_TBCTL_CTRMODE_UP_COUNT)
140 #define EPWM_TB_COUNTER_DIR_DOWN (PWMSS_EPWM_TBCTL_CTRMODE_DOWN_COUNT)
142 #define EPWM_TB_COUNTER_DIR_UP_DOWN (PWMSS_EPWM_TBCTL_CTRMODE_UP_DOWN_COUNT)
144 #define EPWM_TB_COUNTER_DIR_STOP (PWMSS_EPWM_TBCTL_CTRMODE_STOP_FREEZE)
176 #define EPWM_SHADOW_REG_CTRL_ENABLE (PWMSS_EPWM_TBCTL_PRDLD_LOAD_FROM_SHADOW)
178 #define EPWM_SHADOW_REG_CTRL_DISABLE (PWMSS_EPWM_TBCTL_PRDLD_LOAD_IMMEDIATELY)
189 #define EPWM_TB_CNT_DIR_AFT_SYNC_DOWN (PWMSS_EPWM_TBCTL_PHSDIR_COUNT_DOWN)
191 #define EPWM_TB_CNT_DIR_AFT_SYNC_UP (PWMSS_EPWM_TBCTL_PHSDIR_COUNT_UP)
202 #define EPWM_TB_SYNC_OUT_EVT_SYNCIN (PWMSS_EPWM_TBCTL_SYNCOSEL_EPWMXSYNC)
204 #define EPWM_TB_SYNC_OUT_EVT_CNT_EQ_ZERO (PWMSS_EPWM_TBCTL_SYNCOSEL_CTR_0)
206 #define EPWM_TB_SYNC_OUT_EVT_CNT_EQ_CMP_B (PWMSS_EPWM_TBCTL_SYNCOSEL_CTR_CPMB)
208 #define EPWM_TB_SYNC_OUT_EVT_DISABLE (PWMSS_EPWM_TBCTL_SYNCOSEL_DISABLE_EPWMXSYNCO)
219 #define EPWM_TB_STS_CTR_MAX (PWMSS_EPWM_TBSTS_CTRMAX_MASK)
221 #define EPWM_TB_STS_SYNCI (PWMSS_EPWM_TBSTS_SYNCI_MASK)
223 #define EPWM_TB_STS_CTR_DIR (PWMSS_EPWM_TBSTS_CTRDIR_MASK)
235 #define EPWM_TB_EMU_MODE_STP_AFT_NEXT_CYCLE (PWMSS_EPWM_TBCTL_FREE_SOFT_STOP_AFTER_NEXT_CTR)
237 #define EPWM_TB_EMU_MODE_STP_AFT_COMPLETE_CYCLE (PWMSS_EPWM_TBCTL_FREE_SOFT_STOP_AFTER_CYCLE)
242 #define EPWM_TB_EMU_MODE_FREE_RUN (PWMSS_EPWM_TBCTL_FREE_SOFT_RUN2)
253 #define EPWM_CC_CMP_MIN (0U)
255 #define EPWM_CC_CMP_A (EPWM_CC_CMP_MIN)
257 #define EPWM_CC_CMP_B (1U)
259 #define EPWM_CC_CMP_MAX (CSL_EPWM_CC_CMP_B)
297 #define EPWM_CC_CMP_LOAD_MODE_CNT_EQ_ZERO (PWMSS_EPWM_CMPCTL_LOADAMODE_CTR_0)
299 #define EPWM_CC_CMP_LOAD_MODE_CNT_EQ_PRD (PWMSS_EPWM_CMPCTL_LOADAMODE_CTR_PRD)
301 #define EPWM_CC_CMP_LOAD_MODE_CNT_EQ_ZERO_OR_PRD (PWMSS_EPWM_CMPCTL_LOADAMODE_CTR_0_OR_PRD)
303 #define EPWM_CC_CMP_LOAD_MODE_NO_LOAD (PWMSS_EPWM_CMPCTL_LOADAMODE_FREEZE)
350 #define EPWM_AQ_ACTION_DONOTHING (PWMSS_EPWM_AQCTLA_ZRO_DISABLED)
352 #define EPWM_AQ_ACTION_LOW (PWMSS_EPWM_AQCTLA_ZRO_CLEAR)
354 #define EPWM_AQ_ACTION_HIGH (PWMSS_EPWM_AQCTLA_ZRO_SET)
356 #define EPQM_AQ_ACTION_TOLLGE (PWMSS_EPWM_AQCTLA_ZRO_TOGGLE)
357 #define EPWM_AQ_ACTION_TOLLGE (CSL_EPQM_AQ_ACTION_TOLLGE)
388 #define EPWM_AQ_SW_TRIG_OT_ACTION_DONOTHING (PWMSS_EPWM_AQSFRC_ACTSFA_DISABLED)
390 #define EPWM_AQ_SW_TRIG_OT_ACTION_LOW (PWMSS_EPWM_AQSFRC_ACTSFA_CLEAR)
392 #define EPWM_AQ_SW_TRIG_OT_ACTION_HIGH (PWMSS_EPWM_AQSFRC_ACTSFA_SET)
394 #define EPWM_AQ_SW_TRIG_OT_ACTION_TOGGLE (PWMSS_EPWM_AQSFRC_ACTSFA_TOGGLE)
423 #define EPWM_AQ_SW_TRIG_CONT_ACTION_NOEFFECT (PWMSS_EPWM_AQCSFRC_CSFA_DISABLED)
425 #define EPWM_AQ_SW_TRIG_CONT_ACTION_LOW (PWMSS_EPWM_AQCSFRC_CSFA_LOW_OUTPUT)
427 #define EPWM_AQ_SW_TRIG_CONT_ACTION_HIGH (PWMSS_EPWM_AQCSFRC_CSFA_HIGH_OUTPUT)
429 #define EPWM_AQ_SW_TRIG_CONT_ACTION_SW_DISBALED (PWMSS_EPWM_AQCSFRC_CSFA_NO_EFFECT)
441 #define EPWM_AQ_CSFRC_REG_RELOAD_CNT_EQ_ZRO (PWMSS_EPWM_AQSFRC_RLDCSF_CTR_0)
443 #define EPWM_AQ_CSFRC_REG_RELOAD_CNT_EQ_PRD (PWMSS_EPWM_AQSFRC_RLDCSF_CTR_PERIOD)
445 #define EPWM_AQ_CSFRC_REG_RELOAD_CNT_EQ_ZRO_OR_PRD (PWMSS_EPWM_AQSFRC_RLDCSF_CTR_0_OR_PERIOD)
447 #define EPWM_AQ_CSFRC_REG_RELOAD_IMMEDIATE (PWMSS_EPWM_AQSFRC_RLDCSF_IMMEDIATE)
459 #define EPWM_DB_IN_MODE_A_RED_A_FED (PWMSS_EPWM_DBCTL_IN_MODE_SRC_ARED_AFED)
462 #define EPWM_DB_IN_MODE_B_RED_A_FED (PWMSS_EPWM_DBCTL_IN_MODE_SRC_BRED_AFED)
466 #define EPWM_DB_IN_MODE_A_RED_B_FED (PWMSS_EPWM_DBCTL_IN_MODE_SRC_ARED_BFED)
470 #define EPWM_DB_IN_MODE_B_RED_B_FED (PWMSS_EPWM_DBCTL_IN_MODE_SRC_BRED_BFED)
484 #define EPWM_DB_POL_SEL_ACTV_HIGH (PWMSS_EPWM_DBCTL_POLSEL_ACTIVE_HIGH)
486 #define EPWM_DB_POL_SEL_ACTV_LOW_COMPLEMENTARY (PWMSS_EPWM_DBCTL_POLSEL_ACTIVE_LOW_COMPLEMENTARY)
488 #define EPWM_DB_POL_SEL_ACTV_HIGH_COMPLEMENTARY (PWMSS_EPWM_DBCTL_POLSEL_ACTIVE_HIGH_COMPLEMENTARY)
490 #define EPWM_DB_POL_SEL_ACTV_LOW (PWMSS_EPWM_DBCTL_POLSEL_ACTIVE_LOW)
503 #define EPWM_DB_OUT_MODE_BYPASS (PWMSS_EPWM_DBCTL_OUT_MODE_DISABLED)
507 #define EPWM_DB_OUT_MODE_NO_RED_B_FED (PWMSS_EPWM_DBCTL_OUT_MODE_DISABLE_RISING_EDGE)
511 #define EPWM_DB_OUT_MODE_A_RED_NO_FED (PWMSS_EPWM_DBCTL_OUT_MODE_DISABLE_FALLING_EDGE)
515 #define EPWM_DB_OUT_MODE_A_RED_B_FED (PWMSS_EPWM_DBCTL_OUT_MODE_ENABLED)
527 #define EPWM_CHP_DUTY_CYCLE_PERC_12PNT5 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_12_5)
529 #define EPWM_CHP_DUTY_CYCLE_PERC_25 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_25)
531 #define EPWM_CHP_DUTY_CYCLE_PERC_37PNT5 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_37_5)
533 #define EPWM_CHP_DUTY_CYCLE_PERC_50_PER (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_50)
535 #define EPWM_CHP_DUTY_CYCLE_PERC_62PNT5 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_62_5)
537 #define EPWM_CHP_DUTY_CYCLE_PERC_75 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_75)
539 #define EPWM_CHP_DUTY_CYCLE_PERC_87PNT5 (PWMSS_EPWM_PCCTL_CHPDUTY_DUTY_87_5)
550 #define EPWM_CHP_CLK_FREQ_DIV_BY_1 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_1)
552 #define EPWM_CHP_CLK_FREQ_DIV_BY_2 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_2)
554 #define EPWM_CHP_CLK_FREQ_DIV_BY_3 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_3)
556 #define EPWM_CHP_CLK_FREQ_DIV_BY_4 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_4)
558 #define EPWM_CHP_CLK_FREQ_DIV_BY_5 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_5)
560 #define EPWM_CHP_CLK_FREQ_DIV_BY_6 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_6)
562 #define EPWM_CHP_CLK_FREQ_DIV_BY_7 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_7)
564 #define EPWM_CHP_CLK_FREQ_DIV_BY_8 (PWMSS_EPWM_PCCTL_CHPFREQ_DIV_8)
575 #define EPWM_CHP_OSHT_WIDTH_MIN (0U)
577 #define EPWM_CHP_OSHT_WIDTH_1XSYSOUT_BY_8 (CSL_EPWM_CHP_OSHT_WIDTH_MIN)
579 #define EPWM_CHP_OSHT_WIDTH_2XSYSOUT_BY_8 (1U)
581 #define EPWM_CHP_OSHT_WIDTH_3XSYSOUT_BY_8 (2U)
583 #define EPWM_CHP_OSHT_WIDTH_4XSYSOUT_BY_8 (3U)
585 #define EPWM_CHP_OSHT_WIDTH_5XSYSOUT_BY_8 (4U)
587 #define EPWM_CHP_OSHT_WIDTH_6XSYSOUT_BY_8 (5U)
589 #define EPWM_CHP_OSHT_WIDTH_7XSYSOUT_BY_8 (6U)
591 #define EPWM_CHP_OSHT_WIDTH_8XSYSOUT_BY_8 (7U)
593 #define EPWM_CHP_OSHT_WIDTH_9XSYSOUT_BY_8 (8U)
595 #define EPWM_CHP_OSHT_WIDTH_10XSYSOUT_BY_8 (9U)
597 #define EPWM_CHP_OSHT_WIDTH_11XSYSOUT_BY_8 (10U)
599 #define EPWM_CHP_OSHT_WIDTH_12XSYSOUT_BY_8 (11U)
601 #define EPWM_CHP_OSHT_WIDTH_13XSYSOUT_BY_8 (12U)
603 #define EPWM_CHP_OSHT_WIDTH_14XSYSOUT_BY_8 (13U)
605 #define EPWM_CHP_OSHT_WIDTH_15XSYSOUT_BY_8 (14U)
607 #define EPWM_CHP_OSHT_WIDTH_16XSYSOUT_BY_8 (15U)
609 #define EPWM_CHP_OSHT_WIDTH_MAX (CSL_EPWM_CHP_OSHT_WIDTH_16XSYSOUT_BY_8)
638 #define EPWM_TZ_TRIP_ACTION_TRI_STATE (PWMSS_EPWM_TZCTL_TZA_HIGH_IMPEDANCE)
640 #define EPWM_TZ_TRIP_ACTION_HIGH (PWMSS_EPWM_TZCTL_TZA_HIGH_STATE)
642 #define EPWM_TZ_TRIP_ACTION_LOW (PWMSS_EPWM_TZCTL_TZA_LOW_STATE)
644 #define EPWM_TZ_TRIP_ACTION_DO_NOTHING (PWMSS_EPWM_TZCTL_TZA_DO_NOTHING)
655 #define EPWM_TZ_EVENT_MIN (0x0U)
657 #define EPWM_TZ_EVENT_ONE_SHOT (EPWM_TZ_EVENT_MIN)
659 #define EPWM_TZ_EVENT_CYCLE_BY_CYCLE (0x1U)
661 #define EPWM_TZ_EVENT_MAX (CSL_EPWM_TZ_EVENT_CYCLE_BY_CYCLE)
672 #define EPWM_TZ_STS_FLG_OST (PWMSS_EPWM_TZFLG_OST_MASK)
674 #define EPWM_TZ_STS_FLG_CBC (PWMSS_EPWM_TZFLG_CBC_MASK)
676 #define EPWM_TZ_STS_FLG_INT (PWMSS_EPWM_TZFLG_INT_MASK)
687 #define EPWM_ET_INTR_EVT_CNT_EQ_ZRO (PWMSS_EPWM_ETSEL_INTSEL_CTR_0)
689 #define EPWM_ET_INTR_EVT_CNT_EQ_PRD (PWMSS_EPWM_ETSEL_INTSEL_CTR_PERIOD)
691 #define EPWM_ET_INTR_EVT_CNT_EQ_CMPA_INC (PWMSS_EPWM_ETSEL_INTSEL_CTR_CMPA_INCR)
694 #define EPWM_ET_INTR_EVT_CNT_EQ_CMPA_DEC (PWMSS_EPWM_ETSEL_INTSEL_CTR_CMPA_DECR)
697 #define EPWM_ET_INTR_EVT_CNT_EQ_CMPB_INC (PWMSS_EPWM_ETSEL_INTSEL_CTR_CMPB_INCR)
700 #define EPWM_ET_INTR_EVT_CNT_EQ_CMPB_DEC (PWMSS_EPWM_ETSEL_INTSEL_CTR_CMPB_DECR)
714 #define EPWM_ET_INTR_PERIOD_DIS_INTR (PWMSS_EPWM_ETPS_INTPRD_DISABLE)
716 #define EPWM_ET_INTR_PERIOD_FIRST_EVT (PWMSS_EPWM_ETPS_INTPRD_GEN_FIRST_EVT)
718 #define EPWM_ET_INTR_PERIOD_SECOND_EVT (PWMSS_EPWM_ETPS_INTPRD_GEN_SECOND_EVT)
720 #define EPWM_ET_INTR_PERIOD_THIRD_EVT (PWMSS_EPWM_ETPS_INTPRD_GEN_THIRD_EVT)
725 #define EPWM_ETFLG_INT_MASK (PWMSS_EPWM_ETFLG_INT_MASK)
732 typedef struct EPWM_TimebaseCfg_s
755 typedef struct EPWM_CounterCmpCfg_s
765 typedef struct EPWM_AqActionCfg_s
793 typedef struct EPWM_DeadbandCfg_s
815 typedef struct EPWM_ChopperCfg_s
830 typedef struct EPWM_TripzoneCfg_s
846 typedef struct EPWM_EtCfg_s
905 uint32_t enableShadowWrite);
924 uint32_t counterDir);
1057 uint32_t enableShadowWrite,
1058 uint32_t shadowToActiveLoadTrigger,
1059 uint32_t overwriteShadow);
1079 uint32_t pwmOutputCh,
1097 uint32_t pwmOutputCh,
1098 uint32_t swTrigAction);
1116 uint32_t pwmOutputCh,
1117 uint32_t swTrigAction,
1118 uint32_t activeRegReloadMode);
1178 uint32_t tripAction,
1179 uint32_t pwmOutputCh);
1194 uint32_t tzEventType,
1208 uint32_t tzEventType,
uint32_t EPWM_CcCmp_t
Definition: epwm/v0/epwm.h:252
Structure holding the TimeBase sub-module configuration parameters.
Definition: epwm/v0/epwm.h:733
Structure holding the Action Qualifier actions to be taken on the PWM output at the specific events.
Definition: epwm/v0/epwm.h:766
uint32_t zeroAction
Definition: epwm/v0/epwm.h:767
uint32_t inputMode
Definition: epwm/v0/epwm.h:795
void EPWM_deadbandCfg(uint32_t baseAddr, const EPWM_DeadbandCfg *pCfg)
This API performs the configuration of the dead band sub-module. This API configures the input source...
uint32_t EPWM_TbCntDirAftSync_t
Counter directions after sync event.
Definition: epwm/v0/epwm.h:188
uint16_t EPWM_tbReadTbCount(uint32_t baseAddr)
This API gets the Time base counter current value. The count operation is not affected by the read.
uint32_t EPWM_OutputCh_t
Number of supported EPWM outputs in a single epwm channel.
Definition: epwm/v0/epwm.h:120
void EPWM_tbWriteTbCount(uint32_t baseAddr, uint32_t tbCount)
This API loads the Time base counter. The new value is taken immediately.
void EPWM_chopperCfg(uint32_t baseAddr, const EPWM_ChopperCfg *pCfg)
This API performs the configuration of the chopper sub-module. This API configures chopping clock dut...
uint32_t tripAction
Definition: epwm/v0/epwm.h:832
uint32_t cmpADownAction
Definition: epwm/v0/epwm.h:777
uint32_t cntDirAfterSync
Definition: epwm/v0/epwm.h:744
void EPWM_tbSyncDisable(uint32_t baseAddr)
This API disables the synchronization. Even if sync-in event occurs the count value will not be reloa...
Structure holding the Counter Comparator values.
Definition: epwm/v0/epwm.h:756
Structure holding the configuration parameters of Chopper sub-module.
Definition: epwm/v0/epwm.h:816
void EPWM_tbPwmFreqCfg(uint32_t baseAddr, uint32_t tbClk, uint32_t pwmFreq, uint32_t counterDir, uint32_t enableShadowWrite)
This API configures the PWM Time base counter Frequency/Period.
void EPWM_tbSyncEnable(uint32_t baseAddr, uint32_t tbPhsValue, uint32_t counterDir)
This API enables the synchronization of time base sub-module and also configures the phase count valu...
Structure holding the dead band generation sub-module configuration parameters.
Definition: epwm/v0/epwm.h:794
void EPWM_tbTriggerSwSync(uint32_t baseAddr)
This API generates software triggered sync pulse.
void EPWM_tbTimebaseClkCfg(uint32_t baseAddr, uint32_t tbClk, uint32_t moduleClk)
This API configures the clock divider of the Time base module.
uint32_t cmpBDownAction
Definition: epwm/v0/epwm.h:785
uint32_t phsCountAfterSync
Definition: epwm/v0/epwm.h:747
uint32_t EPWM_AqSwTrigContAction_t
Types of Continuous software forced actions on output.
Definition: epwm/v0/epwm.h:422
uint32_t prdAction
Definition: epwm/v0/epwm.h:770
uint32_t EPWM_ChpOshtWidth_t
One-Shot Pulse Width values.
Definition: epwm/v0/epwm.h:574
uint32_t cmpBUpAction
Definition: epwm/v0/epwm.h:781
uint32_t EPWM_TbSyncOutEvt_t
Source of Synchronization output signal.
Definition: epwm/v0/epwm.h:201
uint32_t clkFrequency
Definition: epwm/v0/epwm.h:820
uint32_t EPWM_TbEmuMode_t
Emulation Mode. This selects the behaviour of the ePWM time-base counter during emulation events.
Definition: epwm/v0/epwm.h:234
void EPWM_aqSwTriggerContAction(uint32_t baseAddr, uint32_t pwmOutputCh, uint32_t swTrigAction, uint32_t activeRegReloadMode)
This API forces output value continuously on PWM output channel. The output can be forced to low or h...
uint32_t EPWM_ChpDutyCycle_t
Chopping Clock Duty Cycle values.
Definition: epwm/v0/epwm.h:526
uint32_t intrEvtSource
Definition: epwm/v0/epwm.h:848
void EPWM_chopperEnable(uint32_t baseAddr, uint32_t enableChopper)
This API controls the enabling or disabling of chopper sub-module.
void EPWM_tbSetEmulationMode(uint32_t baseAddr, uint32_t mode)
This API configures emulation mode. This setting determines the behaviour of Timebase counter during ...
uint32_t pwmtbCounterFreqPrd
Definition: epwm/v0/epwm.h:736
uint32_t EPWM_AqSwTrigOtAction_t
Actions to be taken on the output, when Software triggered one time events will occur.
Definition: epwm/v0/epwm.h:387
uint32_t enableSynchronization
Definition: epwm/v0/epwm.h:741
void EPWM_etIntrEnable(uint32_t baseAddr)
This API enables the ePWM Event interrupt.
uint32_t EPWM_ChpClkFreq_t
Chopping Clock Frequency values .
Definition: epwm/v0/epwm.h:549
void EPWM_etIntrCfg(uint32_t baseAddr, uint32_t intrEvtSrc, uint32_t intrPrd)
This API configures the Event Trigger sub-module. This API configures the interrupt source and interr...
uint32_t oneShotPulseWidth
Definition: epwm/v0/epwm.h:823
uint32_t EPWM_TbSts_t
Flags to get the different types of time base status.
Definition: epwm/v0/epwm.h:218
uint32_t EPWM_TzEvent_t
Type of trip zone events.
Definition: epwm/v0/epwm.h:654
uint16_t EPWM_etIntrStatus(uint32_t baseAddr)
This API returns the ePWM event interrupt status.
void EPWM_tbSetSyncOutMode(uint32_t baseAddr, uint32_t syncOutMode)
This API selects the source of the synchronization output signal. It determines on which of the suppo...
uint32_t syncOutSrc
Definition: epwm/v0/epwm.h:749
void EPWM_etIntrClear(uint32_t baseAddr)
This API clears the interrupt. This will clear the interrupt flag bit and enable further interrupts p...
uint32_t EPWM_AqCsfrcRegReload_t
Action Qualifier Software Force Active Register Reload From Shadow Options.
Definition: epwm/v0/epwm.h:440
void EPWM_aqSwTriggerOneTimeAction(uint32_t baseAddr, uint32_t pwmOutputCh, uint32_t swTrigAction)
This API triggers the SW forced single event on the PWM output.
uint32_t EPWM_DbInMode_t
Dead Band Input Mode Control. This allows you to select the input source to the falling-edge and risi...
Definition: epwm/v0/epwm.h:458
void EPWM_tzIntrEnable(uint32_t baseAddr, uint32_t tzEventType)
This API enables the trip interrupt. When trip event occurs the sub-module can be configured to inter...
uint32_t polaritySelect
Definition: epwm/v0/epwm.h:803
void EPWM_aqActionOnOutputCfg(uint32_t baseAddr, uint32_t pwmOutputCh, const EPWM_AqActionCfg *pCfg)
This API configures the action to be taken on output by the Action qualifier module upon receiving th...
void EPWM_tzTripEventEnable(uint32_t baseAddr, uint32_t tzEventType, uint32_t pinNum)
This API enables the trip event.
void EPWM_tzTriggerSwEvent(uint32_t baseAddr, uint32_t tzEventType)
This API enables to generate Software forced trip condition.
uint32_t enableTripIntr
Definition: epwm/v0/epwm.h:840
uint32_t tbClk
Definition: epwm/v0/epwm.h:734
void EPWM_tzTriggerTripAction(uint32_t baseAddr, uint32_t tripAction, uint32_t pwmOutputCh)
This API configures the o/p on PWM channel when a trip event is recognized. The output can be set to ...
void EPWM_etIntrTrigger(uint32_t baseAddr)
This API forces interrupt to be generated. This API is used for testing purpose.
Structure holding the trip-zone sub-module configuration parameters.
Definition: epwm/v0/epwm.h:831
uint32_t fallingEdgeDelay
Definition: epwm/v0/epwm.h:809
void EPWM_deadbandBypass(uint32_t baseAddr)
This API bypasses the Dead-band sub-module.
uint32_t tripEvtType
Definition: epwm/v0/epwm.h:835
void EPWM_tzEventStatusClear(uint32_t baseAddr, uint32_t eventMask)
This API clears the selected trip zone event status.
uint32_t intrPrd
Definition: epwm/v0/epwm.h:851
uint16_t EPWM_tzEventStatus(uint32_t baseAddr, uint32_t eventMask)
This API returns the selected trip zone event status.
uint32_t EPWM_EtIntrEvt_t
ePWM Interrupt (EPWMx_INT) Selection Options.
Definition: epwm/v0/epwm.h:686
uint16_t EPWM_etGetEventCount(uint32_t baseAddr)
This API returns the number of events occurred.
char mode[32]
Definition: tisci_pm_core.h:1
uint32_t tbCntrDirection
Definition: epwm/v0/epwm.h:738
uint32_t EPWM_counterComparatorCfg(uint32_t baseAddr, uint32_t cmpType, uint32_t cmpVal, uint32_t enableShadowWrite, uint32_t shadowToActiveLoadTrigger, uint32_t overwriteShadow)
This API configures the counter comparator and loads the comparator value. When Counter comparator va...
uint32_t risingEdgeDelay
Definition: epwm/v0/epwm.h:807
uint32_t dutyCycle
Definition: epwm/v0/epwm.h:817
uint32_t EPWM_ShadowRegCtrl_t
Shadow register enable or disable control.
Definition: epwm/v0/epwm.h:175
uint16_t EPWM_tbGetStatus(uint32_t baseAddr, uint32_t tbStatusMask)
This API gets the Time Base status as indicated by the tbStatusMask parameter.
uint32_t EPWM_TzStsFlg_t
Trip zone status flags.
Definition: epwm/v0/epwm.h:671
uint32_t cmpBValue
Definition: epwm/v0/epwm.h:759
void EPWM_tbStatusClear(uint32_t baseAddr, uint32_t tbStatusClrMask)
This API clears the Time base status bits indicated by the tbStatusClrMask parameter.
uint32_t EPWM_DbPolSel_t
Polarity Select Control. This allows you to selectively invert one of the delayed signals before it i...
Definition: epwm/v0/epwm.h:483
uint32_t cmpAValue
Definition: epwm/v0/epwm.h:757
uint32_t tripPin
Definition: epwm/v0/epwm.h:838
uint32_t EPWM_TbCounterDir_t
Types of Time base counter direction modes.
Definition: epwm/v0/epwm.h:137
Structure holding the Event Trigger Sub-Module configuration parameters.
Definition: epwm/v0/epwm.h:847
uint32_t cmpAUpAction
Definition: epwm/v0/epwm.h:773
uint32_t EPWM_AqAction_t
Types of Actions that Action Qualifier can take on the Output when the supported counter compare even...
Definition: epwm/v0/epwm.h:349
void EPWM_tzTripEventDisable(uint32_t baseAddr, uint32_t tzEventType, uint32_t pinNum)
This API disable the trip event. The disabled trip events will be ignored.
uint32_t EPWM_DbOutMode_t
Dead-band Output Mode Control. This allows you to selectively enable or bypass the dead-band generati...
Definition: epwm/v0/epwm.h:502
uint32_t outputMode
Definition: epwm/v0/epwm.h:799
void EPWM_etIntrDisable(uint32_t baseAddr)
This API disables the ePWM Event interrupt.
uint32_t EPWM_TzTripAction_t
Action to be taken on PWM output When a trip event occurs.
Definition: epwm/v0/epwm.h:637
uint32_t EPWM_CcCmpLoadMode_t
Counter-Comparator registers(A and B) load mode flags from shadow register.
Definition: epwm/v0/epwm.h:296
void EPWM_tzIntrDisable(uint32_t baseAddr, uint32_t tzEventType)
This API disables the trip interrupt.
uint32_t EPWM_EtIntrPeriod_t
ePWM Interrupt (EPWMx_INT) Period Select. These values determine how many selected events need to occ...
Definition: epwm/v0/epwm.h:713