63 pwm->
TZCLR |= tripZoneFlag;
275 pwm->
TZEINT &= ~interruptSource;
291 pwm->
TZSEL &= (~src);
319 pwm->
PCCTL = (uint16_t)1;
452 pwm->
TZEINT |= interruptSource;
566 pwm->
HRCNFG |= controlMode;
598 pwm->
HRCNFG |= shadowMode;
653 pwm->
AQCTLA |= (actionQual << 6);
668 pwm->
AQCTLB |= (actionQual << 6);
683 pwm->
AQCTLA |= (actionQual << 10);
698 pwm->
AQCTLB |= (actionQual << 10);
713 pwm->
AQCTLA |= (actionQual << 4);
728 pwm->
AQCTLB |= (actionQual << 4);
743 pwm->
AQCTLA |= (actionQual << 8);
758 pwm->
AQCTLB |= (actionQual << 8);
773 pwm->
AQCSFRC |= actionQualContSWForce;
788 pwm->
AQCSFRC |= (actionQualContSWForce << 2);
803 pwm->
AQCTLA |= (actionQual << 2);
818 pwm->
AQCTLB |= (actionQual << 2);
833 pwm->
AQCTLA |= actionQual;
848 pwm->
AQCTLB |= actionQual;
863 pwm->
PCCTL |= clkFreq;
878 pwm->
PCCTL |= dutyCycle;
893 pwm->
PCCTL |= pulseWidth;
908 pwm->
TBCTL |= clkDiv;
935 pwm->
TBCTL |= counterMode;
961 pwm->
DBCTL |= inputMode;
976 pwm->
DBCTL |= outputMode;
991 pwm->
DBCTL |= polarity;
1039 pwm->
DCFCTL |= pulseSelect << 4;
1048 const uint16_t offset)
1060 const uint16_t window)
1092 const bool selectFilter,
1093 const bool disableSync,
1094 const bool enableSoc,
1095 const bool generateSync)
1105 pwm->
DCACTL |= selectFilter | (disableSync << 1) | (enableSoc << 2) | (generateSync << 3);
1114 const bool selectFilter,
1115 const bool disableSync)
1125 pwm->
DCACTL |= (selectFilter << 8) | (disableSync << 9) ;
1134 const bool selectFilter,
1135 const bool disableSync,
1136 const bool enableSoc,
1137 const bool generateSync)
1147 pwm->
DCBCTL |= selectFilter | (disableSync << 1) | (enableSoc << 2) | (generateSync << 3);
1156 const bool selectFilter,
1157 const bool disableSync)
1167 pwm->
DCBCTL |= (selectFilter << 8) | (disableSync << 9) ;
1184 pwm->
TBCTL |= clkDiv;
1199 pwm->
ETSEL |= intMode;
1214 pwm->
ETPS |= intPeriod;
1244 pwm->
CMPCTL |= (loadMode << 2);
1256 pwm->
TBPRD = period;
1297 pwm->
TBCTL |= phaseDir;
1312 pwm->
TBCTL |= periodLoad;
1327 pwm->
TBCTL |= runMode;
1342 pwm->
ETPS |= (intPeriod << 8);
1357 pwm->
ETSEL |= (pulseSrc << 8);
1372 pwm->
ETPS |= (intPeriod << 12);
1387 pwm->
ETSEL |= (pulseSrc << 12);
1402 pwm->
CMPCTL |= (shadowMode << 4);
1417 pwm->
CMPCTL |= (shadowMode << 6);
1429 pwm->
TBCTL |= 1 << 6;
1444 pwm->
TBCTL |= syncMode;
1460 pwm->
TZDCSEL |= tripZoneEvent << 0;
1479 pwm->
TZDCSEL |= tripZoneEvent << 3;
1498 pwm->
TZDCSEL |= tripZoneEvent << 6;
1517 pwm->
TZDCSEL |= tripZoneEvent << 9;
1536 pwm->
TZCTL |= tripZoneState << 4;
1555 pwm->
TZCTL |= tripZoneState << 6;
1574 pwm->
TZCTL |= tripZoneState << 8;
1593 pwm->
TZCTL |= tripZoneState << 10;
1612 pwm->
TZCTL |= tripZoneState << 0;
1631 pwm->
TZCTL |= tripZoneState << 2;
volatile uint16_t TBCTL
Time-Base Control Register.
PWM_ClkDiv_e
Enumeration to define the pulse width modulation (PWM) clock dividers.
uint16_t PWM_getDeadBandFallingEdgeDelay(PWM_Handle pwmHandle)
Gets the pulse width modulation (PWM) deadband falling edge delay.
#define PWM_TZCTL_TZB_BITS
Defines the location of the TZB bits in the TZCTL register.
PWM_ActionQual_e
Enumeration to define the pulse width modulation (PWM) action qualifiers.
uint16_t PWM_getDeadBandRisingEdgeDelay(PWM_Handle pwmHandle)
Gets the pulse width modulation (PWM) deadband rising edge delay.
void PWM_setIntMode(PWM_Handle pwmHandle, const PWM_IntMode_e intMode)
Sets the pulse width modulation (PWM) interrupt mode.
void PWM_setClkDiv(PWM_Handle pwmHandle, const PWM_ClkDiv_e clkDiv)
Sets the pulse width modulation (PWM) clock divisor.
void PWM_decrementDeadBandFallingEdgeDelay(PWM_Handle pwmHandle)
Decrement the dead band falling edge delay.
void PWM_disableTripZones(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) trip zones.
void PWM_setDigitalCompareBEvent2(PWM_Handle pwmHandle, const bool selectFilter, const bool disableSync)
Sets the pulse width modulation (PWM) digital compare B event 2 source parameters.
#define DISABLE_PROTECTED_REGISTER_WRITE_MODE
Define to disable protected register writes.
void PWM_disableDigitalCompareBlankingWindow(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) digital compare blanking window.
volatile uint16_t AQCTLA
Action-Qualifier Control Register for Output A (EPWMxA)
Contains public interface to various functions related to the pulse width modulation (PWM) object...
PWM_DeadBandOutputMode_e
Enumeration to define the pulse width modulation (PWM) deadband output modes.
#define PWM_HRPCTL_HRPE_BITS
Defines the location of the HRPE bits in the HRPCTL register.
void PWM_setTripZoneState_DCBEVT1(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Digital Compare Output B Event 1 (DCBEVT1) ...
void PWM_decrementDeadBandRisingEdgeDelay(PWM_Handle pwmHandle)
Decrement the dead band rising edge delay.
void PWM_setDigitalCompareFilterWindow(PWM_Handle pwmHandle, const uint16_t window)
Sets the pulse width modulation (PWM) digital compare filter offset.
void PWM_setLoadMode_CmpA(PWM_Handle pwmHandle, const PWM_LoadMode_e loadMode)
Sets the pulse width modulation (PWM) load mode for CMPA.
PWM_PeriodLoad_e
Enumeration to define the pulse width modulation (PWM) period load options.
void PWM_setRunMode(PWM_Handle pwmHandle, const PWM_RunMode_e runMode)
Sets the pulse width modulation (PWM) run mode.
#define PWM_TBCTL_PHSEN_BITS
Defines the location of the PHSEN bits in the TBCTL register.
#define PWM_AQCTL_CAU_BITS
Defines the location of the CAU bits in the AQCTL register.
#define PWM_TZDCSEL_DCBEVT2_BITS
Defines the location of the DCBEVT2 bits in the TZDCSEL register.
#define PWM_ETPS_SOCACNT_BITS
Defines the location of the SOCACNT bits in the ETPS register.
#define PWM_HRCNFG_CTLMODE_BITS
Defines the location of the CTLMODE bits in the HRCNFG register.
#define PWM_PCCTL_OSHTWTH_BITS
Defines the location of the OSHTWTH bits in the PCCTL register.
#define PWM_TBCTL_CTRMODE_BITS
Defines the location of the CTRMODE bits in the TBCTL register.
void PWM_disableSocAPulse(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.
#define PWM_ETSEL_INTSEL_BITS
Defines the location of the INTSEL bits in the ETSEL register.
volatile uint16_t TZEINT
Trip zone interrupt enable.
#define PWM_ETSEL_SOCASEL_BITS
Defines the location of the SOCASEL bits in the ETSEL register.
#define PWM_ETPS_SOCAPRD_BITS
Defines the location of the SOCAPRD bits in the ETPS register.
#define PWM_CMPCTL_LOADAMODE_BITS
Defines the location of the LOADAMODE bits in the CMPCTL register.
volatile uint16_t DBRED
Dead-band rising edge delay.
uint16_t PWM_getSocBCount(PWM_Handle pwmHandle)
Gets the pulse width modulation (PWM) start of conversion (SOC) B count.
volatile uint16_t TBPHS
Time-Base Phase Register.
PWM_DigitalCompare_PulseSel_e
Enumeration to define the pulse width modulation (PWM) digital compare blanking pulse select...
#define PWM_TZCTL_DCBEVT1_BITS
Defines the location of the DCBEVT1 bits in the TZCTL register.
void PWM_setPeriodLoad(PWM_Handle pwmHandle, const PWM_PeriodLoad_e periodLoad)
Sets the pulse width modulation (PWM) period load mode.
void PWM_setTripZoneState_TZA(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Output A (TZA)
PWM_ChoppingDutyCycle_e
Enumeration to define the pulse width modulation (PWM) chopping clock duty cycles.
volatile uint16_t DBFED
Dead-band falling edge delay.
volatile uint16_t AQCTLB
Action-Qualifier Control Register for Output B (EPWMxB)
#define PWM_AQCSFRC_CSFA_BITS
Defines the location of the CSFA bits in the AQCSFRC register.
PWM_LoadMode_e
Enumeration to define the pulse width modulation (PWM) load modes.
void PWM_setTripZoneDCEventSelect_DCBEVT1(PWM_Handle pwmHandle, const PWM_TripZoneDCEventSel_e tripZoneEvent)
Sets the pulse width modulation (PWM) trip zone digital compare event select for Digital Compare Outp...
PWM_ShadowMode_e
Enumeration to define the pulse width modulation (PWM) shadow modes.
PWM_HrControlMode_e
Enumeration to define the pulse width modulation (PWM) high resolution control mode options...
PWM_CounterMode_e
Enumeration to define the pulse width modulation (PWM) counter modes.
void PWM_enableHrPeriod(PWM_Handle pwmHandle)
Enables high resolution period control.
void PWM_setActionQualContSWForce_PwmA(PWM_Handle pwmHandle, const PWM_ActionQualContSWForce_e actionQualContSWForce)
Sets the pulse width modulation (PWM) object Continuous Software Force action for PWM A...
void PWM_setTripZoneState_DCAEVT1(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Digital Compare Output A Event 1 (DCAEVT1) ...
void PWM_setHrShadowMode(PWM_Handle pwmHandle, const PWM_HrShadowMode_e shadowMode)
Set the High Resolution Shadow Load Mode.
void PWM_setDeadBandRisingEdgeDelay(PWM_Handle pwmHandle, const uint16_t delay)
Sets the pulse width modulation (PWM) deadband rising edge delay.
#define PWM_TZCTL_DCAEVT2_BITS
Defines the location of the DCAEVT2 bits in the TZCTL register.
void PWM_setCount(PWM_Handle pwmHandle, const uint16_t count)
Sets the pulse width modulation (PWM) count.
void PWM_setLoadMode_CmpB(PWM_Handle pwmHandle, const PWM_LoadMode_e loadMode)
Sets the pulse width modulation (PWM) load mode for CMPB.
void PWM_enableDigitalCompareBlankingWindow(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) digital compare blanking window.
volatile uint16_t CMPCTL
Counter-Compare Control Register.
void PWM_setDigitalCompareInput(PWM_Handle pwmHandle, const PWM_DigitalCompare_Input_e input, const PWM_DigitalCompare_InputSel_e inputSel)
Sets the pulse width modulation (PWM) digital compare input.
PWM_DeadBandPolarity_e
Enumeration to define the pulse width modulation (PWM) deadband polarity.
#define PWM_CMPCTL_SHDWBMODE_BITS
Defines the location of the SHDWBMODE bits in the CMPCTL register.
void PWM_setTripZoneState_TZB(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Output B (TZB)
void PWM_setSyncMode(PWM_Handle pwmHandle, const PWM_SyncMode_e syncMode)
Sets the pulse width modulation (PWM) sync mode.
PWM_ShadowStatus_e
Enumeration to define the pulse width modulation (PWM) shadow status options.
void PWM_setActionQual_Period_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals the period...
void PWM_disableDigitalCompareBlankingWindowInversion(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) digital compare blanking window inversion.
#define PWM_AQCSFRC_CSFB_BITS
Defines the location of the CSFB bits in the AQCSFRC register.
void PWM_setDigitalCompareBlankingPulse(PWM_Handle pwmHandle, const PWM_DigitalCompare_PulseSel_e pulseSelect)
Sets the pulse width modulation (PWM) digital compare blanking pulse.
struct _PWM_Obj_ * PWM_Handle
Defines the pulse width modulation (PWM) handle.
#define PWM_ETSEL_SOCBSEL_BITS
Defines the location of the SOCBSEL bits in the ETSEL register.
PWM_TripZoneFlag_e
Enumeration to define the pulse width modulation (PWM) trip zone states.
void PWM_enableSocBPulse(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.
volatile uint16_t TZCTL
Trip zone control.
volatile uint16_t PCCTL
PWM chopper control.
void PWM_setHrEdgeMode(PWM_Handle pwmHandle, const PWM_HrEdgeMode_e edgeMode)
Set the High Resolution Edge Mode.
void PWM_setShadowMode_CmpB(PWM_Handle pwmHandle, const PWM_ShadowMode_e shadowMode)
Sets the pulse width modulation (PWM) shadow mode for CMPB.
void PWM_setActionQual_CntDown_CmpB_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals CMPB and the co...
void PWM_disableDeadBandHalfCycle(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) deadband half cycle clocking.
uint16_t PWM_getSocACount(PWM_Handle pwmHandle)
Gets the pulse width modulation (PWM) start of conversion (SOC) A count.
void PWM_clearTripZone(PWM_Handle pwmHandle, const PWM_TripZoneFlag_e tripZoneFlag)
Clears the trip zone (TZ) flag specified.
PWM_HrShadowMode_e
Enumeration to define the pulse width modulation (PWM) high resolution shadow load mode options...
void PWM_disableDeadBand(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) deadband.
#define PWM_TZDCSEL_DCAEVT2_BITS
Defines the location of the DCAEVT2 bits in the TZDCSEL register.
#define PWM_HRCNFG_EDGMODE_BITS
Defines the location of the EDGMODE bits in the HRCNFG register.
volatile uint16_t HRPCTL
High Resolution Period Control.
#define PWM_ETSEL_INTEN_BITS
Defines the location of the INTEN bits in the ETSEL register.
#define PWM_AQCTL_CBU_BITS
Defines the location of the CBU bits in the AQCTL register.
void PWM_setDigitalCompareAEvent2(PWM_Handle pwmHandle, const bool selectFilter, const bool disableSync)
Sets the pulse width modulation (PWM) digital compare A event 2 source parameters.
void PWM_disableSocBPulse(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.
#define PWM_TZCTL_DCBEVT2_BITS
Defines the location of the DCBEVT2 bits in the TZCTL register.
void PWM_setChoppingDutyCycle(PWM_Handle pwmHandle, const PWM_ChoppingDutyCycle_e dutyCycle)
Sets the pulse width modulation (PWM) chopping clock duty cycle.
void PWM_setSocBPulseSrc(PWM_Handle pwmHandle, const PWM_SocPulseSrc_e pulseSrc)
Sets the pulse width modulation (PWM) start of conversion (SOC) B interrupt pulse source...
#define PWM_HRPCTL_TBPHSHRLOADE_BITS
Defines the location of the TBPHSHRLOADE bits in the HRPCTL register.
#define PWM_HRCNFG_AUTOCONV_BITS
Defines the location of the AUTOCONV bits in the HRCNFG register.
void PWM_setDigitalCompareFilterOffset(PWM_Handle pwmHandle, const uint16_t offset)
Sets the pulse width modulation (PWM) digital compare filter offset.
void PWM_enableHrPhaseSync(PWM_Handle pwmHandle)
Enables high resolution phase synchronization.
void PWM_setActionQual_Period_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals the period...
volatile uint16_t TZCLR
Trip zone clear.
#define PWM_AQCTL_ZRO_BITS
Defines the location of the ZRO bits in the AQCTL register.
volatile uint16_t DCBCTL
Digital Compare B Control.
void PWM_setDigitalCompareAEvent1(PWM_Handle pwmHandle, const bool selectFilter, const bool disableSync, const bool enableSoc, const bool generateSync)
Sets the pulse width modulation (PWM) digital compare A event 1 source parameters.
void PWM_disableCounterLoad(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) counter loading from the phase register.
#define ENABLE_PROTECTED_REGISTER_WRITE_MODE
Define to allow protected register writes.
volatile uint16_t HRCNFG
HRPWM Config Reg.
PWM_SyncMode_e
Enumeration to define the pulse width modulation (PWM) sync modes.
volatile uint16_t DCACTL
Digital Compare A Control.
void PWM_disableChopping(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) chopping.
void PWM_setTripZoneState_DCBEVT2(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Digital Compare Output B Event 2 (DCBEVT1) ...
void PWM_setActionQual_Zero_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals the zero...
#define PWM_AQCTL_CAD_BITS
Defines the location of the CAD bits in the AQCTL register.
PWM_DigitalCompare_InputSel_e
Enumeration to define the pulse width modulation (PWM) digital compare input choices.
volatile uint16_t ETPS
Event trigger pre-scaler.
PWM_ActionQualContSWForce_e
Enumeration to define the pulse width modulation (PWM) Action-qualifier Continuous Software Force...
#define PWM_CMPCTL_SHDWAFULL_BITS
Defines the location of the SHDWAFULL bits in the CMPCTL register.
#define PWM_TBCTL_PHSDIR_BITS
Defines the location of the PHSDIR bits in the TBCTL register.
void PWM_enableTripZoneInt(PWM_Handle pwmHandle, const PWM_TripZoneFlag_e interruptSource)
Enables the pulse width modulation (PWM) trip zones interrupts.
#define PWM_DBCTL_HALFCYCLE_BITS
Defines the location of the HALFCYCLE bits in the DBCTL register.
#define PWM_TBCTL_CLKDIV_BITS
Defines the location of the CLKDIV bits in the TBCTL register.
void PWM_setHighSpeedClkDiv(PWM_Handle pwmHandle, const PWM_HspClkDiv_e clkDiv)
Sets the pulse width modulation (PWM) high speed clock divisor.
void PWM_setDeadBandInputMode(PWM_Handle pwmHandle, const PWM_DeadBandInputMode_e inputMode)
Sets the pulse width modulation (PWM) deadband input mode.
Defines the pulse width modulation (PWM) object.
volatile uint16_t DCTRIPSEL
Digital Compare Trip Select.
void PWM_setTripZoneState_DCAEVT2(PWM_Handle pwmHandle, const PWM_TripZoneState_e tripZoneState)
Sets the pulse width modulation (PWM) trip zone state for Digital Compare Output A Event 2 (DCAEVT1) ...
volatile uint16_t ETSEL
Event trigger selection.
void PWM_enableCounterLoad(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) counter loading from the phase register. ...
void PWM_setTripZoneDCEventSelect_DCBEVT2(PWM_Handle pwmHandle, const PWM_TripZoneDCEventSel_e tripZoneEvent)
Sets the pulse width modulation (PWM) trip zone digital compare event select for Digital Compare Outp...
void PWM_enableAutoConvert(PWM_Handle pwmHandle)
Enables auto conversion of delay line value.
PWM_Handle PWM_init(void *pMemory, const size_t numBytes)
Initializes the pulse width modulation (PWM) object handle.
#define PWM_TBCTL_SYNCOSEL_BITS
Defines the location of the SYNCOSEL bits in the TBCTL register.
void PWM_enableSocAPulse(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) start of conversion (SOC) A pulse generation.
PWM_TripZoneState_e
Enumeration to define the pulse width modulation (PWM) trip zone states.
PWM_IntMode_e
Enumeration to define the pulse width modulation (PWM) interrupt generation modes.
void PWM_setActionQual_CntDown_CmpB_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals CMPB and the co...
volatile uint16_t TZDCSEL
Trip zone digital comparator select.
#define PWM_TZCTL_TZA_BITS
Defines the location of the TZA bits in the TZCTL register.
void PWM_setChoppingPulseWidth(PWM_Handle pwmHandle, const PWM_ChoppingPulseWidth_e pulseWidth)
Sets the pulse width modulation (PWM) chopping clock pulse width.
void PWM_setHrControlMode(PWM_Handle pwmHandle, const PWM_HrControlMode_e controlMode)
Set the High Resolution Control Mode.
void PWM_setPhase(PWM_Handle pwmHandle, const uint16_t phase)
Sets the pulse width modulation (PWM) phase.
PWM_ChoppingPulseWidth_e
Enumeration to define the pulse width modulation (PWM) chopping clock pulse widths.
void PWM_setDeadBandOutputMode(PWM_Handle pwmHandle, const PWM_DeadBandOutputMode_e outputMode)
Sets the pulse width modulation (PWM) deadband output mode.
PWM_DeadBandInputMode_e
Enumeration to define the pulse width modulation (PWM) deadband options.
#define PWM_DBCTL_INMODE_BITS
Defines the location of the INMODE bits in the DBCTL register.
volatile uint16_t DBCTL
Dead-band control.
#define PWM_ETPS_SOCBCNT_BITS
Defines the location of the SOCBCNT bits in the ETPS register.
void PWM_setTripZoneDCEventSelect_DCAEVT1(PWM_Handle pwmHandle, const PWM_TripZoneDCEventSel_e tripZoneEvent)
Sets the pulse width modulation (PWM) trip zone digital compare event select for Digital Compare Outp...
PWM_PhaseDir_e
Enumeration to define the pulse width modulation (PWM) phase direction modes.
PWM_RunMode_e
Enumeration to define the pulse width modulation (PWM) run modes.
#define PWM_DCFCTL_PULSESEL_BITS
Defines the location of the PULSESEL bits in the DCFCTL register.
void PWM_disableHrPhaseSync(PWM_Handle pwmHandle)
Disables high resolution phase synchronization.
volatile uint16_t DCFCTL
Digital Compare Filter Control.
void PWM_setChoppingClkFreq(PWM_Handle pwmHandle, const PWM_ChoppingClkFreq_e clkFreq)
Sets the pulse width modulation (PWM) chopping clock frequency.
void PWM_setTripZoneDCEventSelect_DCAEVT2(PWM_Handle pwmHandle, const PWM_TripZoneDCEventSel_e tripZoneEvent)
Sets the pulse width modulation (PWM) trip zone digital compare event select for Digital Compare Outp...
volatile uint16_t TZSEL
Trip zone select.
PWM_IntPeriod_e
Enumeration to define the pulse width modulation (PWM) interrupt period options.
void PWM_enableInt(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) interrupt.
void PWM_disableAutoConvert(PWM_Handle pwmHandle)
Disables auto conversion of delay line value.
volatile uint16_t AQCSFRC
Action qualifier continuous SW force.
#define PWM_DBCTL_POLSEL_BITS
Defines the location of the POLSEL bits in the DBCTL register.
PWM_TripZoneDCEventSel_e
Enumeration to define the pulse width modulation (PWM) trip zone event selections.
#define PWM_DCFCTL_SRCSEL_BITS
Defines the location of the SRCSEL bits in the DCFCTL register.
PWM_SocPeriod_e
Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) period options...
volatile uint16_t TBPRD
Time-Base Period register set.
void PWM_setSocAPulseSrc(PWM_Handle pwmHandle, const PWM_SocPulseSrc_e pulseSrc)
Sets the pulse width modulation (PWM) start of conversion (SOC) A interrupt pulse source...
#define PWM_ETPS_INTPRD_BITS
Defines the location of the INTPRD bits in the ETPS register.
PWM_DigitalCompare_FilterSrc_e
Enumeration to define the pulse width modulation (PWM) digital compare filter sources.
#define PWM_TBCTL_FREESOFT_BITS
Defines the location of the FREESOFT bits in the TBCTL register.
void PWM_setSocBPeriod(PWM_Handle pwmHandle, const PWM_SocPeriod_e intPeriod)
Sets the pulse width modulation (PWM) start of conversion (SOC) B interrupt period.
void PWM_enableDigitalCompareBlankingWindowInversion(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) digital compare blanking window inversion.
void PWM_disableTripZoneInt(PWM_Handle pwmHandle, const PWM_TripZoneFlag_e interruptSource)
Disables the pulse width modulation (PWM) trip zones interrupts.
PWM_SocPulseSrc_e
Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) sources.
PWM_ShadowStatus_e PWM_getShadowStatus_CmpA(PWM_Handle pwmHandle)
void PWM_setCounterMode(PWM_Handle pwmHandle, const PWM_CounterMode_e counterMode)
Sets the pulse width modulation (PWM) counter mode.
#define PWM_PCCTL_CHPFREQ_BITS
Defines the location of the CHPFREQ bits in the PCCTL register.
volatile uint16_t DCFWINDOW
Digital Compare Filter Window.
void PWM_setPeriodHr(PWM_Handle pwmHandle, const uint16_t period)
Sets the pulse width modulation (PWM) high resolution period.
#define PWM_TZDCSEL_DCAEVT1_BITS
Defines the location of the DCAEVT1 bits in the TZDCSEL register.
void PWM_setActionQualContSWForce_PwmB(PWM_Handle pwmHandle, const PWM_ActionQualContSWForce_e actionQualContSWForce)
Sets the pulse width modulation (PWM) object Continuous Software Force action for PWM B...
#define PWM_ETSEL_SOCBEN_BITS
Defines the location of the SOCBEN bits in the ETSEL register.
#define PWM_ETSEL_SOCAEN_BITS
Defines the location of the SOCAEN bits in the ETSEL register.
#define PWM_ETPS_INTCNT_BITS
Defines the location of the INTCNT bits in the ETPS register.
void PWM_setDeadBandFallingEdgeDelay(PWM_Handle pwmHandle, const uint16_t delay)
Sets the pulse width modulation (PWM) deadband falling edge delay.
#define PWM_DCFCTL_BLANKE_BITS
Defines the location of the BLANKE bits in the DCFCTL register.
#define PWM_AQCTL_CBD_BITS
Defines the location of the CBD bits in the AQCTL register.
void PWM_disableInt(PWM_Handle pwmHandle)
Disables the pulse width modulation (PWM) interrupt.
void PWM_setDigitalCompareBEvent1(PWM_Handle pwmHandle, const bool selectFilter, const bool disableSync, const bool enableSoc, const bool generateSync)
Sets the pulse width modulation (PWM) digital compare B event 1 source parameters.
void PWM_setPhaseDir(PWM_Handle pwmHandle, const PWM_PhaseDir_e phaseDir)
Sets the pulse width modulation (PWM) phase direction.
void PWM_setActionQual_CntDown_CmpA_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals CMPA and the co...
#define PWM_HRCNFG_HRLOAD_BITS
Defines the location of the HRLOAD bits in the HRCNFG register.
#define PWM_TBCTL_HSPCLKDIV_BITS
Defines the location of the HSPCLKDIV bits in the TBCTL register.
void PWM_enableChopping(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) chopping.
void PWM_disableHrPeriod(PWM_Handle pwmHandle)
Disables high resolution period control.
void PWM_setSocAPeriod(PWM_Handle pwmHandle, const PWM_SocPeriod_e intPeriod)
Sets the pulse width modulation (PWM) start of conversion (SOC) A interrupt period.
void PWM_setIntPeriod(PWM_Handle pwmHandle, const PWM_IntPeriod_e intPeriod)
Sets the pulse width modulation (PWM) interrupt period.
#define PWM_TBCTL_PRDLD_BITS
Defines the location of the PRDLD bits in the TBCTL register.
void PWM_setActionQual_CntUp_CmpB_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals CMPB and the co...
void PWM_setActionQual_CntUp_CmpB_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals CMPB and the co...
void PWM_incrementDeadBandFallingEdgeDelay(PWM_Handle pwmHandle)
Increment the dead band falling edge delay.
volatile uint16_t TBPRDHR
Time-Base Period High Resolution Register.
#define PWM_CMPCTL_SHDWAMODE_BITS
Defines the location of the SHDWAMODE bits in the CMPCTL register.
volatile uint16_t TBCTR
Time-Base Counter.
void PWM_setActionQual_Zero_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals the zero...
void PWM_setActionQual_CntUp_CmpA_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals CMPA and the co...
#define PWM_PCCTL_CHPEN_BITS
Defines the location of the CHPEN bits in the PCCTL register.
#define PWM_DCFCTL_BLANKINV_BITS
Defines the location of the BLANKINV bits in the DCFCTL register.
#define PWM_AQCTL_PRD_BITS
Defines the location of the PRD bits in the AQCTL register.
void PWM_incrementDeadBandRisingEdgeDelay(PWM_Handle pwmHandle)
Increment the dead band rising edge delay.
#define PWM_ETPS_SOCBPRD_BITS
Defines the location of the SOCBPRD bits in the ETPS register.
PWM_ChoppingClkFreq_e
Enumeration to define the pulse width modulation (PWM) chopping clock frequencies.
PWM_HspClkDiv_e
Enumeration to define the pulse width modulation (PWM) high speed clock divide options.
#define PWM_PCCTL_CHPDUTY_BITS
Defines the location of the CHPDUTY bits in the PCCTL register.
PWM_DigitalCompare_Input_e
Enumeration to define the pulse width modulation (PWM) digital compare inputs.
void PWM_setActionQual_CntUp_CmpA_PwmB(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM B when the counter equals CMPA and the co...
void PWM_setDigitalCompareFilterSource(PWM_Handle pwmHandle, const PWM_DigitalCompare_FilterSrc_e input)
Sets the pulse width modulation (PWM) digital compare filter source.
void PWM_setSwSync(PWM_Handle pwmHandle)
Sets the pulse width modulation (PWM) software sync.
void PWM_setShadowMode_CmpA(PWM_Handle pwmHandle, const PWM_ShadowMode_e shadowMode)
Sets the pulse width modulation (PWM) shadow mode for CMPA.
#define PWM_CMPCTL_LOADBMODE_BITS
Defines the location of the LOADBMODE bits in the CMPCTL register.
volatile uint16_t DCFOFFSET
Digital Compare Filter Offset.
#define PWM_TZCTL_DCAEVT1_BITS
Defines the location of the DCAEVT1 bits in the TZCTL register.
void PWM_setPeriod(PWM_Handle pwmHandle, const uint16_t period)
Sets the pulse width modulation (PWM) period.
void PWM_enableTripZoneSrc(PWM_Handle pwmHandle, const PWM_TripZoneSrc_e src)
Enable the pulse width modulation (PWM) trip zone source.
void PWM_enableDeadBandHalfCycle(PWM_Handle pwmHandle)
Enables the pulse width modulation (PWM) deadband half cycle clocking.
#define PWM_TZDCSEL_DCBEVT1_BITS
Defines the location of the DCBEVT1 bits in the TZDCSEL register.
#define PWM_DBCTL_OUTMODE_BITS
Defines the location of the OUTMODE bits in the DBCTL register.
void PWM_disableTripZoneSrc(PWM_Handle pwmHandle, const PWM_TripZoneSrc_e src)
Disable the pulse width modulation (PWM) trip zone source.
PWM_HrEdgeMode_e
Enumeration to define the pulse width modulation (PWM) high resolution edge mode options.
PWM_ShadowStatus_e PWM_getShadowStatus_CmpB(PWM_Handle pwmHandle)
void PWM_setActionQual_CntDown_CmpA_PwmA(PWM_Handle pwmHandle, const PWM_ActionQual_e actionQual)
Sets the pulse width modulation (PWM) object action for PWM A when the counter equals CMPA and the co...
uint16_t PWM_getIntCount(PWM_Handle pwmHandle)
Gets the pulse width modulation (PWM) interrupt event count.
PWM_TripZoneSrc_e
Enumeration to define the pulse width modulation (PWM) trip zone sources.
void PWM_setDeadBandPolarity(PWM_Handle pwmHandle, const PWM_DeadBandPolarity_e polarity)
Sets the pulse width modulation (PWM) deadband polarity.