MotorWare f2806x Driver API Documentation
Data Structures | Macros | Typedefs | Enumerations | Functions
PWM

Data Structures

struct  _PWM_Obj_
 Defines the pulse width modulation (PWM) object. More...
 

Macros

#define PWM_ePWM1_BASE_ADDR   (0x00006800)
 Defines the base address of the pulse width modulation (PWM) 1 registers. More...
 
#define PWM_ePWM2_BASE_ADDR   (0x00006840)
 Defines the base address of the pulse width modulation (PWM) 2 registers. More...
 
#define PWM_ePWM3_BASE_ADDR   (0x00006880)
 Defines the base address of the pulse width modulation (PWM) 3 registers. More...
 
#define PWM_ePWM4_BASE_ADDR   (0x000068C0)
 Defines the base address of the pulse width modulation (PWM) 4 registers. More...
 
#define PWM_ePWM5_BASE_ADDR   (0x00006900)
 Defines the base address of the pulse width modulation (PWM) 5 registers. More...
 
#define PWM_ePWM6_BASE_ADDR   (0x00006940)
 Defines the base address of the pulse width modulation (PWM) 6 registers. More...
 
#define PWM_ePWM7_BASE_ADDR   (0x00006980)
 Defines the base address of the pulse width modulation (PWM) 7 registers. More...
 
#define PWM_ePWM8_BASE_ADDR   (0x000069C0)
 Defines the base address of the pulse width modulation (PWM) 8 registers. More...
 
#define PWM_AQCTL_ZRO_BITS   (3 << 0)
 Defines the location of the ZRO bits in the AQCTL register. More...
 
#define PWM_AQCTL_PRD_BITS   (3 << 2)
 Defines the location of the PRD bits in the AQCTL register. More...
 
#define PWM_AQCTL_CAU_BITS   (3 << 4)
 Defines the location of the CAU bits in the AQCTL register. More...
 
#define PWM_AQCTL_CAD_BITS   (3 << 6)
 Defines the location of the CAD bits in the AQCTL register. More...
 
#define PWM_AQCTL_CBU_BITS   (3 << 8)
 Defines the location of the CBU bits in the AQCTL register. More...
 
#define PWM_AQCTL_CBD_BITS   (3 << 10)
 Defines the location of the CBD bits in the AQCTL register. More...
 
#define PWM_AQCSFRC_CSFA_BITS   (3 << 0)
 Defines the location of the CSFA bits in the AQCSFRC register. More...
 
#define PWM_AQCSFRC_CSFB_BITS   (3 << 2)
 Defines the location of the CSFB bits in the AQCSFRC register. More...
 
#define PWM_CMPCTL_LOADAMODE_BITS   (3 << 0)
 Defines the location of the LOADAMODE bits in the CMPCTL register. More...
 
#define PWM_CMPCTL_LOADBMODE_BITS   (3 << 2)
 Defines the location of the LOADBMODE bits in the CMPCTL register. More...
 
#define PWM_CMPCTL_SHDWAMODE_BITS   (1 << 4)
 Defines the location of the SHDWAMODE bits in the CMPCTL register. More...
 
#define PWM_CMPCTL_SHDWBMODE_BITS   (1 << 6)
 Defines the location of the SHDWBMODE bits in the CMPCTL register. More...
 
#define PWM_CMPCTL_SHDWAFULL_BITS   (1 << 8)
 Defines the location of the SHDWAFULL bits in the CMPCTL register. More...
 
#define PWM_CMPCTL_SHDWBFULL_BITS   (1 << 9)
 Defines the location of the SHDWBFULL bits in the CMPCTL register. More...
 
#define PWM_DBCTL_OUTMODE_BITS   (3 << 0)
 Defines the location of the OUTMODE bits in the DBCTL register. More...
 
#define PWM_DBCTL_POLSEL_BITS   (3 << 2)
 Defines the location of the POLSEL bits in the DBCTL register. More...
 
#define PWM_DBCTL_INMODE_BITS   (3 << 4)
 Defines the location of the INMODE bits in the DBCTL register. More...
 
#define PWM_DBCTL_HALFCYCLE_BITS   (1 << 15)
 Defines the location of the HALFCYCLE bits in the DBCTL register. More...
 
#define PWM_ETCLR_INT_BITS   (1 << 0)
 Defines the location of the ETCR bits in the ETCLR register. More...
 
#define PWM_ETCLR_SOCA_BITS   (1 << 2)
 Defines the location of the SOCA bits in the ETCLR register. More...
 
#define PWM_ETCLR_SOCB_BITS   (1 << 3)
 Defines the location of the SOCB bits in the ETCLR register. More...
 
#define PWM_ETPS_INTPRD_BITS   (3 << 0)
 Defines the location of the INTPRD bits in the ETPS register. More...
 
#define PWM_ETPS_INTCNT_BITS   (3 << 2)
 Defines the location of the INTCNT bits in the ETPS register. More...
 
#define PWM_ETPS_SOCAPRD_BITS   (3 << 8)
 Defines the location of the SOCAPRD bits in the ETPS register. More...
 
#define PWM_ETPS_SOCACNT_BITS   (3 << 10)
 Defines the location of the SOCACNT bits in the ETPS register. More...
 
#define PWM_ETPS_SOCBPRD_BITS   (3 << 12)
 Defines the location of the SOCBPRD bits in the ETPS register. More...
 
#define PWM_ETPS_SOCBCNT_BITS   (3 << 14)
 Defines the location of the SOCBCNT bits in the ETPS register. More...
 
#define PWM_ETSEL_INTSEL_BITS   (7 << 0)
 Defines the location of the INTSEL bits in the ETSEL register. More...
 
#define PWM_ETSEL_INTEN_BITS   (1 << 3)
 Defines the location of the INTEN bits in the ETSEL register. More...
 
#define PWM_ETSEL_SOCASEL_BITS   (7 << 8)
 Defines the location of the SOCASEL bits in the ETSEL register. More...
 
#define PWM_ETSEL_SOCAEN_BITS   (1 << 11)
 Defines the location of the SOCAEN bits in the ETSEL register. More...
 
#define PWM_ETSEL_SOCBSEL_BITS   (7 << 12)
 Defines the location of the SOCBSEL bits in the ETSEL register. More...
 
#define PWM_ETSEL_SOCBEN_BITS   (1 << 15)
 Defines the location of the SOCBEN bits in the ETSEL register. More...
 
#define PWM_PCCTL_CHPEN_BITS   (1 << 0)
 Defines the location of the CHPEN bits in the PCCTL register. More...
 
#define PWM_PCCTL_OSHTWTH_BITS   (15 << 1)
 Defines the location of the OSHTWTH bits in the PCCTL register. More...
 
#define PWM_PCCTL_CHPFREQ_BITS   (7 << 5)
 Defines the location of the CHPFREQ bits in the PCCTL register. More...
 
#define PWM_PCCTL_CHPDUTY_BITS   (7 << 8)
 Defines the location of the CHPDUTY bits in the PCCTL register. More...
 
#define PWM_HRCNFG_EDGMODE_BITS   (3 << 0)
 Defines the location of the EDGMODE bits in the HRCNFG register. More...
 
#define PWM_HRCNFG_CTLMODE_BITS   (1 << 2)
 Defines the location of the CTLMODE bits in the HRCNFG register. More...
 
#define PWM_HRCNFG_HRLOAD_BITS   (3 << 3)
 Defines the location of the HRLOAD bits in the HRCNFG register. More...
 
#define PWM_HRCNFG_SELOUTB_BITS   (1 << 5)
 Defines the location of the SELOUTB bits in the HRCNFG register. More...
 
#define PWM_HRCNFG_AUTOCONV_BITS   (1 << 6)
 Defines the location of the AUTOCONV bits in the HRCNFG register. More...
 
#define PWM_HRCNFG_SWAPAB_BITS   (1 << 7)
 Defines the location of the SWAPAB bits in the HRCNFG register. More...
 
#define PWM_HRPCTL_HRPE_BITS   (1 << 0)
 Defines the location of the HRPE bits in the HRPCTL register. More...
 
#define PWM_HRPCTL_PWMSYNCSEL_BITS   (1 << 1)
 Defines the location of the PWMSYNCSEL bits in the HRPCTL register. More...
 
#define PWM_HRPCTL_TBPHSHRLOADE_BITS   (1 << 2)
 Defines the location of the TBPHSHRLOADE bits in the HRPCTL register. More...
 
#define PWM_TBCTL_CTRMODE_BITS   (3 << 0)
 Defines the location of the CTRMODE bits in the TBCTL register. More...
 
#define PWM_TBCTL_PHSEN_BITS   (1 << 2)
 Defines the location of the PHSEN bits in the TBCTL register. More...
 
#define PWM_TBCTL_PRDLD_BITS   (1 << 3)
 Defines the location of the PRDLD bits in the TBCTL register. More...
 
#define PWM_TBCTL_SYNCOSEL_BITS   (3 << 4)
 Defines the location of the SYNCOSEL bits in the TBCTL register. More...
 
#define PWM_TBCTL_SWFSYNC_BITS   (1 << 6)
 Defines the location of the SWFSYNC bits in the TBCTL register. More...
 
#define PWM_TBCTL_HSPCLKDIV_BITS   (7 << 7)
 Defines the location of the HSPCLKDIV bits in the TBCTL register. More...
 
#define PWM_TBCTL_CLKDIV_BITS   (7 << 10)
 Defines the location of the CLKDIV bits in the TBCTL register. More...
 
#define PWM_TBCTL_PHSDIR_BITS   (1 << 13)
 Defines the location of the PHSDIR bits in the TBCTL register. More...
 
#define PWM_TBCTL_FREESOFT_BITS   (3 << 14)
 Defines the location of the FREESOFT bits in the TBCTL register. More...
 
#define PWM_TZCLR_INT_BITS   (1 << 0)
 Defines the location of the INT bits in the TXCLR register. More...
 
#define PWM_TZCLR_CBC_BITS   (1 << 1)
 Defines the location of the CBC bits in the TXCLR register. More...
 
#define PWM_TZCLR_OST_BITS   (1 << 2)
 Defines the location of the OST bits in the TXCLR register. More...
 
#define PWM_TZCLR_DCAEVT1_BITS   (1 << 3)
 Defines the location of the DCAEVT1 bits in the TXCLR register. More...
 
#define PWM_TZCLR_DCAEVT2_BITS   (1 << 4)
 Defines the location of the DCAEVT2 bits in the TXCLR register. More...
 
#define PWM_TZCLR_DCBEVT1_BITS   (1 << 5)
 Defines the location of the DCBEVT1 bits in the TXCLR register. More...
 
#define PWM_TZCLR_DCBEVT2_BITS   (1 << 6)
 Defines the location of the DCBEVT2 bits in the TXCLR register. More...
 
#define PWM_TZCTL_TZA_BITS   (3 << 0)
 Defines the location of the TZA bits in the TZCTL register. More...
 
#define PWM_TZCTL_TZB_BITS   (3 << 2)
 Defines the location of the TZB bits in the TZCTL register. More...
 
#define PWM_TZCTL_DCAEVT1_BITS   (3 << 4)
 Defines the location of the DCAEVT1 bits in the TZCTL register. More...
 
#define PWM_TZCTL_DCAEVT2_BITS   (3 << 6)
 Defines the location of the DCAEVT2 bits in the TZCTL register. More...
 
#define PWM_TZCTL_DCBEVT1_BITS   (3 << 8)
 Defines the location of the DCBEVT1 bits in the TZCTL register. More...
 
#define PWM_TZCTL_DCBEVT2_BITS   (3 << 10)
 Defines the location of the DCBEVT2 bits in the TZCTL register. More...
 
#define PWM_TZFRC_CBC_BITS   (1 << 1)
 Defines the location of the CBC bits in the TZFRC register. More...
 
#define PWM_TZFRC_OST_BITS   (1 << 2)
 Defines the location of the OST bits in the TZFRC register. More...
 
#define PWM_TZFRC_DCAEVT1_BITS   (1 << 3)
 Defines the location of the DCAEVT1 bits in the TZFRC register. More...
 
#define PWM_TZFRC_DCAEVT2_BITS   (1 << 4)
 Defines the location of the DCAEVT2 bits in the TZFRC register. More...
 
#define PWM_TZFRC_DCBEVT1_BITS   (1 << 5)
 Defines the location of the DCBEVT1 bits in the TZFRC register. More...
 
#define PWM_TZFRC_DCBEVT2_BITS   (1 << 6)
 Defines the location of the DCBEVT2 bits in the TZFRC register. More...
 
#define PWM_TZDCSEL_DCAEVT1_BITS   (7 << 0)
 Defines the location of the DCAEVT1 bits in the TZDCSEL register. More...
 
#define PWM_TZDCSEL_DCAEVT2_BITS   (7 << 3)
 Defines the location of the DCAEVT2 bits in the TZDCSEL register. More...
 
#define PWM_TZDCSEL_DCBEVT1_BITS   (7 << 6)
 Defines the location of the DCBEVT1 bits in the TZDCSEL register. More...
 
#define PWM_TZDCSEL_DCBEVT2_BITS   (7 << 9)
 Defines the location of the DCBEVT2 bits in the TZDCSEL register. More...
 
#define PWM_DCTRIPSEL_DCAHCOMPSEL_BITS   (15 << 0)
 Defines the location of the DCAHCOMPSEL bits in the DCTRIPSEL register. More...
 
#define PWM_DCTRIPSEL_DCALCOMPSEL_BITS   (15 << 4)
 Defines the location of the DCALCOMPSEL bits in the DCTRIPSEL register. More...
 
#define PWM_DCTRIPSEL_DCBHCOMPSEL_BITS   (15 << 8)
 Defines the location of the DCBHCOMPSEL bits in the DCTRIPSEL register. More...
 
#define PWM_DCTRIPSEL_DCBLCOMPSEL_BITS   (15 << 12)
 Defines the location of the DCBLCOMPSEL bits in the DCTRIPSEL register. More...
 
#define PWM_DCFCTL_SRCSEL_BITS   (3 << 0)
 Defines the location of the SRCSEL bits in the DCFCTL register. More...
 
#define PWM_DCFCTL_BLANKE_BITS   (1 << 2)
 Defines the location of the BLANKE bits in the DCFCTL register. More...
 
#define PWM_DCFCTL_BLANKINV_BITS   (1 << 3)
 Defines the location of the BLANKINV bits in the DCFCTL register. More...
 
#define PWM_DCFCTL_PULSESEL_BITS   (3 << 4)
 Defines the location of the PULSESEL bits in the DCFCTL register. More...
 

Typedefs

typedef struct _PWM_Obj_ PWM_Obj
 Defines the pulse width modulation (PWM) object. More...
 
typedef struct _PWM_Obj_PWM_Handle
 Defines the pulse width modulation (PWM) handle. More...
 

Enumerations

enum  PWM_ActionQual_e { PWM_ActionQual_Disabled =0, PWM_ActionQual_Clear, PWM_ActionQual_Set, PWM_ActionQual_Toggle }
 Enumeration to define the pulse width modulation (PWM) action qualifiers. More...
 
enum  PWM_ActionQualContSWForce_e { PWM_ActionQualContSWForce_Disabled =0, PWM_ActionQualContSWForce_Clear, PWM_ActionQualContSWForce_Set }
 Enumeration to define the pulse width modulation (PWM) Action-qualifier Continuous Software Force. More...
 
enum  PWM_ClkDiv_e {
  PWM_ClkDiv_by_1 =(0 << 10), PWM_ClkDiv_by_2 =(1 << 10), PWM_ClkDiv_by_4 =(2 << 10), PWM_ClkDiv_by_8 =(3 << 10),
  PWM_ClkDiv_by_16 =(4 << 10), PWM_ClkDiv_by_32 =(5 << 10), PWM_ClkDiv_by_64 =(6 << 10), PWM_ClkDiv_by_128 =(7 << 10)
}
 Enumeration to define the pulse width modulation (PWM) clock dividers. More...
 
enum  PWM_ChoppingClkFreq_e {
  PWM_ChoppingClkFreq_SysClkOut_by_1 =(0 << 5), PWM_ChoppingClkFreq_SysClkOut_by_2 =(1 << 5), PWM_ChoppingClkFreq_SysClkOut_by_3 =(2 << 5), PWM_ChoppingClkFreq_SysClkOut_by_4 =(3 << 5),
  PWM_ChoppingClkFreq_SysClkOut_by_5 =(4 << 5), PWM_ChoppingClkFreq_SysClkOut_by_6 =(5 << 5), PWM_ChoppingClkFreq_SysClkOut_by_7 =(6 << 5), PWM_ChoppingClkFreq_SysClkOut_by_8 =(7 << 5)
}
 Enumeration to define the pulse width modulation (PWM) chopping clock frequencies. More...
 
enum  PWM_ChoppingDutyCycle_e {
  PWM_ChoppingDutyCycle_One_Eighth =(0 << 8), PWM_ChoppingDutyCycle_Two_Eighths =(1 << 8), PWM_ChoppingDutyCycle_Three_Eighths =(2 << 8), PWM_ChoppingDutyCycle_Four_Eighths =(3 << 8),
  PWM_ChoppingDutyCycle_Five_Eighths =(4 << 8), PWM_ChoppingDutyCycle_Six_Eighths =(5 << 8), PWM_ChoppingDutyCycle_Seven_Eighths =(6 << 8)
}
 Enumeration to define the pulse width modulation (PWM) chopping clock duty cycles. More...
 
enum  PWM_ChoppingPulseWidth_e {
  PWM_ChoppingPulseWidth_One_Eighth_SysClkOut =(0 << 1), PWM_ChoppingPulseWidth_Two_Eighths_SysClkOut =(1 << 1), PWM_ChoppingPulseWidth_Three_Eighths_SysClkOut =(2 << 1), PWM_ChoppingPulseWidth_Four_Eighths_SysClkOut =(3 << 1),
  PWM_ChoppingPulseWidth_Five_Eighths_SysClkOut =(4 << 1), PWM_ChoppingPulseWidth_Six_Eighths_SysClkOut =(5 << 1), PWM_ChoppingPulseWidth_Seven_Eighths_SysClkOut =(6 << 1), PWM_ChoppingPulseWidth_Eight_Eighths_SysClkOut =(7 << 1),
  PWM_ChoppingPulseWidth_Nine_Eighths_SysClkOut =(8 << 1), PWM_ChoppingPulseWidth_Ten_Eighths_SysClkOut =(9 << 1), PWM_ChoppingPulseWidth_Eleven_Eighths_SysClkOut =(10 << 1), PWM_ChoppingPulseWidth_Twelve_Eighths_SysClkOut =(11 << 1),
  PWM_ChoppingPulseWidth_Thirteen_Eighths_SysClkOut =(12 << 1), PWM_ChoppingPulseWidth_Fourteen_Eighths_SysClkOut =(13 << 1), PWM_ChoppingPulseWidth_Fifteen_Eighths_SysClkOut =(14 << 1), PWM_ChoppingPulseWidth_Sixteen_Eighths_SysClkOut =(15 << 1)
}
 Enumeration to define the pulse width modulation (PWM) chopping clock pulse widths. More...
 
enum  PWM_CounterMode_e { PWM_CounterMode_Up =(0 << 0), PWM_Countermode_Down =(1 << 0), PWM_CounterMode_UpDown =(2 << 0), PWM_CounterMode_Stop =(3 << 0) }
 Enumeration to define the pulse width modulation (PWM) counter modes. More...
 
enum  PWM_DeadBandInputMode_e { PWM_DeadBandInputMode_EPWMxA_Rising_and_Falling =(0 << 4), PWM_DeadBandInputMode_EPWMxA_Falling_EPWMxB_Rising =(1 << 4), PWM_DeadBandInputMode_EPWMxA_Rising_EPWMxB_Falling =(2 << 4), PWM_DeadBandInputMode_EPWMxB_Rising_and_Falling =(3 << 4) }
 Enumeration to define the pulse width modulation (PWM) deadband options. More...
 
enum  PWM_DeadBandOutputMode_e { PWM_DeadBandOutputMode_Bypass =(0 << 0), PWM_DeadBandOutputMode_EPWMxA_Disable_EPWMxB_Falling =(1 << 0), PWM_DeadBandOutputMode_EPWMxA_Rising_EPWMxB_Disable =(2 << 0), PWM_DeadBandOutputMode_EPWMxA_Rising_EPWMxB_Falling =(3 << 0) }
 Enumeration to define the pulse width modulation (PWM) deadband output modes. More...
 
enum  PWM_DeadBandPolarity_e { PWM_DeadBandPolarity_EPWMxA_EPWMxB =(0 << 2), PWM_DeadBandPolarity_EPWMxA_Inverted =(1 << 2), PWM_DeadBandPolarity_EPWMxB_Inverted =(2 << 2), PWM_DeadBandPolarity_EPWMxA_Inverted_EPWMxB_Inverted =(3 << 2) }
 Enumeration to define the pulse width modulation (PWM) deadband polarity. More...
 
enum  PWM_DigitalCompare_Input_e { PWM_DigitalCompare_A_High = 0, PWM_DigitalCompare_A_Low = 4, PWM_DigitalCompare_B_High = 8, PWM_DigitalCompare_B_Low = 12 }
 Enumeration to define the pulse width modulation (PWM) digital compare inputs. More...
 
enum  PWM_DigitalCompare_InputSel_e {
  PWM_DigitalCompare_InputSel_TZ1 =(0 << 0), PWM_DigitalCompare_InputSel_TZ2 =(1 << 0), PWM_DigitalCompare_InputSel_TZ3 =(2 << 0), PWM_DigitalCompare_InputSel_COMP1OUT =(8 << 0),
  PWM_DigitalCompare_InputSel_COMP2OUT =(9 << 0), PWM_DigitalCompare_InputSel_COMP3OUT =(10 << 0)
}
 Enumeration to define the pulse width modulation (PWM) digital compare input choices. More...
 
enum  PWM_DigitalCompare_FilterSrc_e { PWM_DigitalCompare_FilterSrc_DCAEVT1 =0, PWM_DigitalCompare_FilterSrc_DCAEVT2, PWM_DigitalCompare_FilterSrc_DCBEVT1, PWM_DigitalCompare_FilterSrc_DCBEVT2 }
 Enumeration to define the pulse width modulation (PWM) digital compare filter sources. More...
 
enum  PWM_DigitalCompare_PulseSel_e { PWM_DigitalCompare_PulseSel_CTRPRD =0, PWM_DigitalCompare_PulseSel_CTR0 }
 Enumeration to define the pulse width modulation (PWM) digital compare blanking pulse select. More...
 
enum  PWM_HspClkDiv_e {
  PWM_HspClkDiv_by_1 =(0 << 7), PWM_HspClkDiv_by_2 =(1 << 7), PWM_HspClkDiv_by_4 =(2 << 7), PWM_HspClkDiv_by_6 =(3 << 7),
  PWM_HspClkDiv_by_8 =(4 << 7), PWM_HspClkDiv_by_10 =(5 << 7), PWM_HspClkDiv_by_12 =(6 << 7), PWM_HspClkDiv_by_14 =(7 << 7)
}
 Enumeration to define the pulse width modulation (PWM) high speed clock divide options. More...
 
enum  PWM_HrControlMode_e { PWM_HrControlMode_Duty = (0 << 2), PWM_HrControlMode_Phase = (1 << 2) }
 Enumeration to define the pulse width modulation (PWM) high resolution control mode options. More...
 
enum  PWM_HrEdgeMode_e { PWM_HrEdgeMode_Disabled = (0 << 0), PWM_HrEdgeMode_Rising = (1 << 0), PWM_HrEdgeMode_Falling = (2 << 0), PWM_HrEdgeMode_Both = (3 << 0) }
 Enumeration to define the pulse width modulation (PWM) high resolution edge mode options. More...
 
enum  PWM_HrShadowMode_e { PWM_HrShadowMode_CTR_EQ_0 = (0 << 3), PWM_HrShadowMode_CTR_EQ_PRD = (1 << 3), PWM_HrShadowMode_CTR_EQ_0_OR_PRD = (2 << 3) }
 Enumeration to define the pulse width modulation (PWM) high resolution shadow load mode options. More...
 
enum  PWM_IntMode_e {
  PWM_IntMode_CounterEqualZero =(1 << 0), PWM_IntMode_CounterEqualPeriod =(2 << 0), PWM_IntMode_CounterEqualZeroOrPeriod =(3 << 0), PWM_IntMode_CounterEqualCmpAIncr =(4 << 0),
  PWM_IntMode_CounterEqualCmpADecr =(5 << 0), PWM_IntMode_CounterEqualCmpBIncr =(6 << 0), PWM_IntMode_CounterEqualCmpBDecr =(7 << 0)
}
 Enumeration to define the pulse width modulation (PWM) interrupt generation modes. More...
 
enum  PWM_IntPeriod_e { PWM_IntPeriod_Disable =(0 << 0), PWM_IntPeriod_FirstEvent =(1 << 0), PWM_IntPeriod_SecondEvent =(2 << 0), PWM_IntPeriod_ThirdEvent =(3 << 0) }
 Enumeration to define the pulse width modulation (PWM) interrupt period options. More...
 
enum  PWM_LoadMode_e { PWM_LoadMode_Zero =0, PWM_LoadMode_Period, PWM_LoadMode_Either, PWM_LoadMode_Freeze }
 Enumeration to define the pulse width modulation (PWM) load modes. More...
 
enum  PWM_Number_e {
  PWM_Number_1 =0, PWM_Number_2, PWM_Number_3, PWM_Number_4,
  PWM_Number_5, PWM_Number_6, PWM_Number_7, PWM_Number_8
}
 Enumeration to define the pulse width modulation (PWM) numbers. More...
 
enum  PWM_PeriodLoad_e { PWM_PeriodLoad_Shadow =(0 << 3), PWM_PeriodLoad_Immediate =(1 << 3) }
 Enumeration to define the pulse width modulation (PWM) period load options. More...
 
enum  PWM_PhaseDir_e { PWM_PhaseDir_CountDown =(0 << 13), PWM_PhaseDir_CountUp =(1 << 13) }
 Enumeration to define the pulse width modulation (PWM) phase direction modes. More...
 
enum  PWM_RunMode_e { PWM_RunMode_SoftStopAfterIncr =(0 << 14), PWM_RunMode_SoftStopAfterDecr =(0 << 14), PWM_RunMode_SoftStopAfterCycle =(1 << 14), PWM_RunMode_FreeRun =(2 << 14) }
 Enumeration to define the pulse width modulation (PWM) run modes. More...
 
enum  PWM_ShadowMode_e { PWM_ShadowMode_Shadow =0, PWM_ShadowMode_Immediate }
 Enumeration to define the pulse width modulation (PWM) shadow modes. More...
 
enum  PWM_ShadowStatus_e { PWM_ShadowStatus_NotFull =0, PWM_ShadowStatus_Full }
 Enumeration to define the pulse width modulation (PWM) shadow status options. More...
 
enum  PWM_SocPeriod_e { PWM_SocPeriod_Disable =0, PWM_SocPeriod_FirstEvent, PWM_SocPeriod_SecondEvent, PWM_SocPeriod_ThirdEvent }
 Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) period options. More...
 
enum  PWM_SocPulseSrc_e {
  PWM_SocPulseSrc_DcEvt =0, PWM_SocPulseSrc_CounterEqualZero, PWM_SocPulseSrc_CounterEqualPeriod, PWM_SocPulseSrc_CounterEqualZeroOrPeriod,
  PWM_SocPulseSrc_CounterEqualCmpAIncr, PWM_SocPulseSrc_CounterEqualCmpADecr, PWM_SocPulseSrc_CounterEqualCmpBIncr, PWM_SocPulseSrc_CounterEqualCmpBDecr
}
 Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) sources. More...
 
enum  PWM_SyncMode_e { PWM_SyncMode_EPWMxSYNC =(0 << 4), PWM_SyncMode_CounterEqualZero =(1 << 4), PWM_SyncMode_CounterEqualCounterCompareZero =(2 << 4), PWM_SyncMode_Disable =(3 << 4) }
 Enumeration to define the pulse width modulation (PWM) sync modes. More...
 
enum  PWM_TripZoneSrc_e {
  PWM_TripZoneSrc_CycleByCycle_TZ1_NOT =(1 << 0), PWM_TripZoneSrc_CycleByCycle_TZ2_NOT =(1 << 1), PWM_TripZoneSrc_CycleByCycle_TZ3_NOT =(1 << 2), PWM_TripZoneSrc_CycleByCycle_TZ4_NOT =(1 << 3),
  PWM_TripZoneSrc_CycleByCycle_TZ5_NOT =(1 << 4), PWM_TripZoneSrc_CycleByCycle_TZ6_NOT =(1 << 5), PWM_TripZoneSrc_CycleByCycle_CmpA =(1 << 6), PWM_TripZoneSrc_CycleByCycle_CmpB =(1 << 7),
  PWM_TripZoneSrc_OneShot_TZ1_NOT =(1 << 8), PWM_TripZoneSrc_OneShot_TZ2_NOT =(1 << 9), PWM_TripZoneSrc_OneShot_TZ3_NOT =(1 << 10), PWM_TripZoneSrc_OneShot_TZ4_NOT =(1 << 11),
  PWM_TripZoneSrc_OneShot_TZ5_NOT =(1 << 12), PWM_TripZoneSrc_OneShot_TZ6_NOT =(1 << 13), PWM_TripZoneSrc_OneShot_CmpA =(1 << 14), PWM_TripZoneSrc_OneShot_CmpB =(1 << 15)
}
 Enumeration to define the pulse width modulation (PWM) trip zone sources. More...
 
enum  PWM_TripZoneState_e { PWM_TripZoneState_HighImp =0, PWM_TripZoneState_EPWM_High, PWM_TripZoneState_EPWM_Low, PWM_TripZoneState_DoNothing }
 Enumeration to define the pulse width modulation (PWM) trip zone states. More...
 
enum  PWM_TripZoneFlag_e {
  PWM_TripZoneFlag_Global = (1 << 0), PWM_TripZoneFlag_CBC = (1 << 1), PWM_TripZoneFlag_OST = (1 << 2), PWM_TripZoneFlag_DCAEVT1 = (1 << 3),
  PWM_TripZoneFlag_DCAEVT2 = (1 << 4), PWM_TripZoneFlag_DCBEVT1 = (1 << 5), PWM_TripZoneFlag_DCBEVT2 = (1 << 6)
}
 Enumeration to define the pulse width modulation (PWM) trip zone states. More...
 
enum  PWM_TripZoneDCEventSel_e {
  PWM_TripZoneDCEventSel_Disabled = (0 << 0), PWM_TripZoneDCEventSel_DCxHL_DCxLX = (1 << 0), PWM_TripZoneDCEventSel_DCxHH_DCxLX = (2 << 0), PWM_TripZoneDCEventSel_DCxHx_DCxLL = (3 << 0),
  PWM_TripZoneDCEventSel_DCxHx_DCxLH = (4 << 0), PWM_TripZoneDCEventSel_DCxHL_DCxLH = (5 << 0)
}
 Enumeration to define the pulse width modulation (PWM) trip zone event selections. More...
 

Functions

static void PWM_clearIntFlag (PWM_Handle pwmHandle)
 Clears the pulse width modulation (PWM) interrupt flag. More...
 
static void PWM_clearOneShotTrip (PWM_Handle pwmHandle)
 Clears the pulse width modulation (PWM) one shot trip. More...
 
static void PWM_clearSocAFlag (PWM_Handle pwmHandle)
 Clears the pulse width modulation (PWM) start of conversion (SOC) A flag. More...
 
static void PWM_clearSocBFlag (PWM_Handle pwmHandle)
 Clears the pulse width modulation (PWM) start of conversion (SOC) B flag. More...
 
void PWM_clearTripZone (PWM_Handle pwmHandle, const PWM_TripZoneFlag_e tripZoneFlag)
 Clears the trip zone (TZ) flag specified. More...
 
void PWM_decrementDeadBandFallingEdgeDelay (PWM_Handle pwmHandle)
 Decrement the dead band falling edge delay. More...
 
void PWM_decrementDeadBandRisingEdgeDelay (PWM_Handle pwmHandle)
 Decrement the dead band rising edge delay. More...
 
void PWM_disableAutoConvert (PWM_Handle pwmHandle)
 Disables auto conversion of delay line value. More...
 
void PWM_disableChopping (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) chopping. More...
 
void PWM_disableCounterLoad (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) counter loading from the phase register. More...
 
void PWM_disableDeadBand (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) deadband. More...
 
void PWM_disableDeadBandHalfCycle (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) deadband half cycle clocking. More...
 
void PWM_disableDigitalCompareBlankingWindow (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) digital compare blanking window. More...
 
void PWM_disableDigitalCompareBlankingWindowInversion (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) digital compare blanking window inversion. More...
 
void PWM_disableHrPeriod (PWM_Handle pwmHandle)
 Disables high resolution period control. More...
 
void PWM_disableHrPhaseSync (PWM_Handle pwmHandle)
 Disables high resolution phase synchronization. More...
 
void PWM_disableInt (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) interrupt. More...
 
void PWM_disableSocAPulse (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation. More...
 
void PWM_disableSocBPulse (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation. More...
 
void PWM_disableTripZones (PWM_Handle pwmHandle)
 Disables the pulse width modulation (PWM) trip zones. More...
 
void PWM_disableTripZoneInt (PWM_Handle pwmHandle, const PWM_TripZoneFlag_e interruptSource)
 Disables the pulse width modulation (PWM) trip zones interrupts. More...
 
void PWM_disableTripZoneSrc (PWM_Handle pwmHandle, const PWM_TripZoneSrc_e src)
 Disable the pulse width modulation (PWM) trip zone source. More...
 
void PWM_enableAutoConvert (PWM_Handle pwmHandle)
 Enables auto conversion of delay line value. More...
 
void PWM_enableChopping (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) chopping. More...
 
void PWM_enableCounterLoad (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) counter loading from the phase register. More...
 
void PWM_enableDeadBandHalfCycle (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) deadband half cycle clocking. More...
 
void PWM_enableDigitalCompareBlankingWindow (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) digital compare blanking window. More...
 
void PWM_enableDigitalCompareBlankingWindowInversion (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) digital compare blanking window inversion. More...
 
void PWM_enableHrPeriod (PWM_Handle pwmHandle)
 Enables high resolution period control. More...
 
void PWM_enableHrPhaseSync (PWM_Handle pwmHandle)
 Enables high resolution phase synchronization. More...
 
void PWM_enableInt (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) interrupt. More...
 
void PWM_enableSocAPulse (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) start of conversion (SOC) A pulse generation. More...
 
void PWM_enableSocBPulse (PWM_Handle pwmHandle)
 Enables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation. More...
 
void PWM_enableTripZoneInt (PWM_Handle pwmHandle, const PWM_TripZoneFlag_e interruptSource)
 Enables the pulse width modulation (PWM) trip zones interrupts. More...
 
void PWM_enableTripZoneSrc (PWM_Handle pwmHandle, const PWM_TripZoneSrc_e src)
 Enable the pulse width modulation (PWM) trip zone source. More...
 
static uint16_t PWM_get_CmpA (PWM_Handle pwmHandle)
 Gets the value of the Counter Compare A hardware. More...
 
static uint16_t PWM_get_CmpAM (PWM_Handle pwmHandle)
 Gets the value of the Counter Compare A Mirror Register. More...
 
static uint16_t PWM_get_CmpB (PWM_Handle pwmHandle)
 Gets the value of the Counter Compare B hardware. More...
 
static void PWM_forceSync (PWM_Handle pwmHandle)
 Force Synchronization. More...
 
uint16_t PWM_getDeadBandFallingEdgeDelay (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) deadband falling edge delay. More...
 
uint16_t PWM_getDeadBandRisingEdgeDelay (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) deadband rising edge delay. More...
 
uint16_t PWM_getIntCount (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) interrupt event count. More...
 
static uint16_t PWM_getPeriod (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) period value. More...
 
static uint16_t PWM_getCmpA (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) data value from the Counter Compare A hardware. More...
 
static uint16_t PWM_getCmpAHr (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) data value from the Counter Compare A Hr hardware. More...
 
static uint16_t PWM_getCmpB (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) data value from the Counter Compare B hardware. More...
 
uint16_t PWM_getSocACount (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) start of conversion (SOC) A count. More...
 
uint16_t PWM_getSocBCount (PWM_Handle pwmHandle)
 Gets the pulse width modulation (PWM) start of conversion (SOC) B count. More...
 
void PWM_setHrControlMode (PWM_Handle pwmHandle, const PWM_HrControlMode_e controlMode)
 Set the High Resolution Control Mode. More...
 
void PWM_setHrEdgeMode (PWM_Handle pwmHandle, const PWM_HrEdgeMode_e edgeMode)
 Set the High Resolution Edge Mode. More...
 
void PWM_setHrShadowMode (PWM_Handle pwmHandle, const PWM_HrShadowMode_e shadowMode)
 Set the High Resolution Shadow Load Mode. More...
 
void PWM_incrementDeadBandFallingEdgeDelay (PWM_Handle pwmHandle)
 Increment the dead band falling edge delay. More...
 
void PWM_incrementDeadBandRisingEdgeDelay (PWM_Handle pwmHandle)
 Increment the dead band rising edge delay. More...
 
PWM_Handle PWM_init (void *pMemory, const size_t numBytes)
 Initializes the pulse width modulation (PWM) object handle. More...
 
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 counter is decrementing. More...
 
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 counter is decrementing. More...
 
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 counter is decrementing. More...
 
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 counter is decrementing. More...
 
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 counter is incrementing. More...
 
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 counter is incrementing. More...
 
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 counter is incrementing. More...
 
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 counter is incrementing. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void PWM_setChoppingClkFreq (PWM_Handle pwmHandle, const PWM_ChoppingClkFreq_e clkFreq)
 Sets the pulse width modulation (PWM) chopping clock frequency. More...
 
void PWM_setChoppingDutyCycle (PWM_Handle pwmHandle, const PWM_ChoppingDutyCycle_e dutyCycle)
 Sets the pulse width modulation (PWM) chopping clock duty cycle. More...
 
void PWM_setChoppingPulseWidth (PWM_Handle pwmHandle, const PWM_ChoppingPulseWidth_e pulseWidth)
 Sets the pulse width modulation (PWM) chopping clock pulse width. More...
 
void PWM_setClkDiv (PWM_Handle pwmHandle, const PWM_ClkDiv_e clkDiv)
 Sets the pulse width modulation (PWM) clock divisor. More...
 
void PWM_setCount (PWM_Handle pwmHandle, const uint16_t count)
 Sets the pulse width modulation (PWM) count. More...
 
void PWM_setCounterMode (PWM_Handle pwmHandle, const PWM_CounterMode_e counterMode)
 Sets the pulse width modulation (PWM) counter mode. More...
 
void PWM_setDeadBandFallingEdgeDelay (PWM_Handle pwmHandle, const uint16_t delay)
 Sets the pulse width modulation (PWM) deadband falling edge delay. More...
 
void PWM_setDeadBandInputMode (PWM_Handle pwmHandle, const PWM_DeadBandInputMode_e inputMode)
 Sets the pulse width modulation (PWM) deadband input mode. More...
 
void PWM_setDeadBandOutputMode (PWM_Handle pwmHandle, const PWM_DeadBandOutputMode_e outputMode)
 Sets the pulse width modulation (PWM) deadband output mode. More...
 
void PWM_setDeadBandPolarity (PWM_Handle pwmHandle, const PWM_DeadBandPolarity_e polarity)
 Sets the pulse width modulation (PWM) deadband polarity. More...
 
void PWM_setDeadBandRisingEdgeDelay (PWM_Handle pwmHandle, const uint16_t delay)
 Sets the pulse width modulation (PWM) deadband rising edge delay. More...
 
void PWM_setDigitalCompareFilterSource (PWM_Handle pwmHandle, const PWM_DigitalCompare_FilterSrc_e input)
 Sets the pulse width modulation (PWM) digital compare filter source. More...
 
void PWM_setDigitalCompareBlankingPulse (PWM_Handle pwmHandle, const PWM_DigitalCompare_PulseSel_e pulseSelect)
 Sets the pulse width modulation (PWM) digital compare blanking pulse. More...
 
void PWM_setDigitalCompareFilterOffset (PWM_Handle pwmHandle, const uint16_t offset)
 Sets the pulse width modulation (PWM) digital compare filter offset. More...
 
void PWM_setDigitalCompareFilterWindow (PWM_Handle pwmHandle, const uint16_t window)
 Sets the pulse width modulation (PWM) digital compare filter offset. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void PWM_setHighSpeedClkDiv (PWM_Handle pwmHandle, const PWM_HspClkDiv_e clkDiv)
 Sets the pulse width modulation (PWM) high speed clock divisor. More...
 
void PWM_setIntMode (PWM_Handle pwmHandle, const PWM_IntMode_e intMode)
 Sets the pulse width modulation (PWM) interrupt mode. More...
 
void PWM_setIntPeriod (PWM_Handle pwmHandle, const PWM_IntPeriod_e intPeriod)
 Sets the pulse width modulation (PWM) interrupt period. More...
 
void PWM_setLoadMode_CmpA (PWM_Handle pwmHandle, const PWM_LoadMode_e loadMode)
 Sets the pulse width modulation (PWM) load mode for CMPA. More...
 
void PWM_setLoadMode_CmpB (PWM_Handle pwmHandle, const PWM_LoadMode_e loadMode)
 Sets the pulse width modulation (PWM) load mode for CMPB. More...
 
void PWM_setPeriodLoad (PWM_Handle pwmHandle, const PWM_PeriodLoad_e periodLoad)
 Sets the pulse width modulation (PWM) period load mode. More...
 
static void PWM_setOneShotTrip (PWM_Handle pwmHandle)
 Sets the pulse width modulation (PWM) one shot trip. More...
 
void PWM_setPeriod (PWM_Handle pwmHandle, const uint16_t period)
 Sets the pulse width modulation (PWM) period. More...
 
void PWM_setPeriodHr (PWM_Handle pwmHandle, const uint16_t period)
 Sets the pulse width modulation (PWM) high resolution period. More...
 
void PWM_setPhase (PWM_Handle pwmHandle, const uint16_t phase)
 Sets the pulse width modulation (PWM) phase. More...
 
void PWM_setPhaseDir (PWM_Handle pwmHandle, const PWM_PhaseDir_e phaseDir)
 Sets the pulse width modulation (PWM) phase direction. More...
 
void PWM_setRunMode (PWM_Handle pwmHandle, const PWM_RunMode_e runMode)
 Sets the pulse width modulation (PWM) run mode. More...
 
void PWM_setSocAPeriod (PWM_Handle pwmHandle, const PWM_SocPeriod_e intPeriod)
 Sets the pulse width modulation (PWM) start of conversion (SOC) A interrupt period. More...
 
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. More...
 
void PWM_setSocBPeriod (PWM_Handle pwmHandle, const PWM_SocPeriod_e intPeriod)
 Sets the pulse width modulation (PWM) start of conversion (SOC) B interrupt period. More...
 
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. More...
 
void PWM_setShadowMode_CmpA (PWM_Handle pwmHandle, const PWM_ShadowMode_e shadowMode)
 Sets the pulse width modulation (PWM) shadow mode for CMPA. More...
 
void PWM_setShadowMode_CmpB (PWM_Handle pwmHandle, const PWM_ShadowMode_e shadowMode)
 Sets the pulse width modulation (PWM) shadow mode for CMPB. More...
 
void PWM_setSwSync (PWM_Handle pwmHandle)
 Sets the pulse width modulation (PWM) software sync. More...
 
void PWM_setSyncMode (PWM_Handle pwmHandle, const PWM_SyncMode_e syncMode)
 Sets the pulse width modulation (PWM) sync mode. More...
 
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 Output A Event 1 (DCAEVT1) More...
 
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 Output A Event 2 (DCAEVT2) More...
 
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 Output B Event 1 (DCBEVT1) More...
 
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 Output B Event 2 (DCBEVT2) More...
 
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) More...
 
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) More...
 
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) More...
 
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) More...
 
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) More...
 
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) More...
 
static void PWM_write_CmpA (PWM_Handle pwmHandle, const uint16_t pwmData)
 Writes the pulse width modulation (PWM) data value to the Counter Compare A hardware. More...
 
static void PWM_setCmpA (PWM_Handle pwmHandle, const uint16_t pwmData)
 Writes the pulse width modulation (PWM) data value to the Counter Compare A hardware. More...
 
static void PWM_setCmpAHr (PWM_Handle pwmHandle, const uint16_t pwmData)
 Writes the pulse width modulation (PWM) data value to the Counter Compare A Hr hardware. More...
 
static void PWM_write_CmpB (PWM_Handle pwmHandle, const uint16_t pwmData)
 Writes the pulse width modulation (PWM) data value to the Counter Compare B hardware. More...
 
static void PWM_setCmpB (PWM_Handle pwmHandle, const uint16_t pwmData)
 Writes the pulse width modulation (PWM) data value to the Counter Compare B hardware. More...
 

Detailed Description


Data Structure Documentation

struct _PWM_Obj_

Defines the pulse width modulation (PWM) object.

Definition at line 873 of file pwm.h.

Data Fields
volatile uint16_t AQCSFRC Action qualifier continuous SW force.
volatile uint16_t AQCTLA Action-Qualifier Control Register for Output A (EPWMxA)
volatile uint16_t AQCTLB Action-Qualifier Control Register for Output B (EPWMxB)
volatile uint16_t AQSFRC Action qual SW force.
volatile uint16_t CMPA Counter-Compare A Register.
volatile uint16_t CMPAHR Extension of HRPWM Counter-Compare A Register.
volatile uint16_t CMPAHRM Extension of HRPWM Counter-Compare A mirror Register.
volatile uint16_t CMPAM Counter-Compare A mirror Register.
volatile uint16_t CMPB Counter-Compare B Register.
volatile uint16_t CMPCTL Counter-Compare Control Register.
volatile uint16_t DBCTL Dead-band control.
volatile uint16_t DBFED Dead-band falling edge delay.
volatile uint16_t DBRED Dead-band rising edge delay.
volatile uint16_t DCACTL Digital Compare A Control.
volatile uint16_t DCBCTL Digital Compare B Control.
volatile uint16_t DCCAP Digital Compare Filter Counter Capture.
volatile uint16_t DCCAPCTL Digital Compare Capture Control.
volatile uint16_t DCFCTL Digital Compare Filter Control.
volatile uint16_t DCFOFFSET Digital Compare Filter Offset.
volatile uint16_t DCFOFFSETCNT Digital Compare Filter Offset Counter.
volatile uint16_t DCFWINDOW Digital Compare Filter Window.
volatile uint16_t DCFWINDOWCNT Digital Compare Filter Window Counter.
volatile uint16_t DCTRIPSEL Digital Compare Trip Select.
volatile uint16_t ETCLR Event trigger clear.
volatile uint16_t ETFLG Event trigger flags.
volatile uint16_t ETFRC Event trigger force.
volatile uint16_t ETPS Event trigger pre-scaler.
volatile uint16_t ETSEL Event trigger selection.
volatile uint16_t HRCNFG HRPWM Config Reg.
volatile uint16_t HRMSTEP HRPWM MEP Step Register.
volatile uint16_t HRPCTL High Resolution Period Control.
volatile uint16_t HRPWR HRPWM Power Register.
volatile uint16_t PCCTL PWM chopper control.
volatile uint16_t rsvd_1 Reserved.
volatile uint16_t rsvd_2[4] Reserved.
volatile uint16_t rsvd_3 Reserved.
volatile uint16_t rsvd_4 Reserved.
volatile uint16_t rsvd_5[2] Reserved.
volatile uint16_t TBCTL Time-Base Control Register.
volatile uint16_t TBCTR Time-Base Counter.
volatile uint16_t TBPHS Time-Base Phase Register.
volatile uint16_t TBPHSHR Extension for the HRPWM Phase Register.
volatile uint16_t TBPRD Time-Base Period register set.
volatile uint16_t TBPRDHR Time-Base Period High Resolution Register.
volatile uint16_t TBPRDHRM Time-Base Period High Resolution mirror Register.
volatile uint16_t TBPRDM Time-Base Period mirror register.
volatile uint16_t TBSTS Time-Base Status Register.
volatile uint16_t TZCLR Trip zone clear.
volatile uint16_t TZCTL Trip zone control.
volatile uint16_t TZDCSEL Trip zone digital comparator select.
volatile uint16_t TZEINT Trip zone interrupt enable.
volatile uint16_t TZFLG Trip zone interrupt flags.
volatile uint16_t TZFRC Trip zone force interrupt.
volatile uint16_t TZSEL Trip zone select.

Macro Definition Documentation

#define PWM_AQCSFRC_CSFA_BITS   (3 << 0)

Defines the location of the CSFA bits in the AQCSFRC register.

Definition at line 125 of file pwm.h.

Referenced by PWM_setActionQualContSWForce_PwmA().

#define PWM_AQCSFRC_CSFB_BITS   (3 << 2)

Defines the location of the CSFB bits in the AQCSFRC register.

Definition at line 129 of file pwm.h.

Referenced by PWM_setActionQualContSWForce_PwmB().

#define PWM_AQCTL_CAD_BITS   (3 << 6)

Defines the location of the CAD bits in the AQCTL register.

Definition at line 113 of file pwm.h.

Referenced by PWM_setActionQual_CntDown_CmpA_PwmA(), and PWM_setActionQual_CntDown_CmpA_PwmB().

#define PWM_AQCTL_CAU_BITS   (3 << 4)

Defines the location of the CAU bits in the AQCTL register.

Definition at line 109 of file pwm.h.

Referenced by PWM_setActionQual_CntUp_CmpA_PwmA(), and PWM_setActionQual_CntUp_CmpA_PwmB().

#define PWM_AQCTL_CBD_BITS   (3 << 10)

Defines the location of the CBD bits in the AQCTL register.

Definition at line 121 of file pwm.h.

Referenced by PWM_setActionQual_CntDown_CmpB_PwmA(), and PWM_setActionQual_CntDown_CmpB_PwmB().

#define PWM_AQCTL_CBU_BITS   (3 << 8)

Defines the location of the CBU bits in the AQCTL register.

Definition at line 117 of file pwm.h.

Referenced by PWM_setActionQual_CntUp_CmpB_PwmA(), and PWM_setActionQual_CntUp_CmpB_PwmB().

#define PWM_AQCTL_PRD_BITS   (3 << 2)

Defines the location of the PRD bits in the AQCTL register.

Definition at line 105 of file pwm.h.

Referenced by PWM_setActionQual_Period_PwmA(), and PWM_setActionQual_Period_PwmB().

#define PWM_AQCTL_ZRO_BITS   (3 << 0)

Defines the location of the ZRO bits in the AQCTL register.

Definition at line 101 of file pwm.h.

Referenced by PWM_setActionQual_Zero_PwmA(), and PWM_setActionQual_Zero_PwmB().

#define PWM_CMPCTL_LOADAMODE_BITS   (3 << 0)

Defines the location of the LOADAMODE bits in the CMPCTL register.

Definition at line 133 of file pwm.h.

Referenced by PWM_setLoadMode_CmpA().

#define PWM_CMPCTL_LOADBMODE_BITS   (3 << 2)

Defines the location of the LOADBMODE bits in the CMPCTL register.

Definition at line 137 of file pwm.h.

Referenced by PWM_setLoadMode_CmpB().

#define PWM_CMPCTL_SHDWAFULL_BITS   (1 << 8)

Defines the location of the SHDWAFULL bits in the CMPCTL register.

Definition at line 149 of file pwm.h.

Referenced by PWM_getShadowStatus_CmpA(), and PWM_getShadowStatus_CmpB().

#define PWM_CMPCTL_SHDWAMODE_BITS   (1 << 4)

Defines the location of the SHDWAMODE bits in the CMPCTL register.

Definition at line 141 of file pwm.h.

Referenced by PWM_setShadowMode_CmpA().

#define PWM_CMPCTL_SHDWBFULL_BITS   (1 << 9)

Defines the location of the SHDWBFULL bits in the CMPCTL register.

Definition at line 153 of file pwm.h.

#define PWM_CMPCTL_SHDWBMODE_BITS   (1 << 6)

Defines the location of the SHDWBMODE bits in the CMPCTL register.

Definition at line 145 of file pwm.h.

Referenced by PWM_setShadowMode_CmpB().

#define PWM_DBCTL_HALFCYCLE_BITS   (1 << 15)

Defines the location of the HALFCYCLE bits in the DBCTL register.

Definition at line 170 of file pwm.h.

Referenced by PWM_disableDeadBandHalfCycle(), and PWM_enableDeadBandHalfCycle().

#define PWM_DBCTL_INMODE_BITS   (3 << 4)

Defines the location of the INMODE bits in the DBCTL register.

Definition at line 166 of file pwm.h.

Referenced by PWM_setDeadBandInputMode().

#define PWM_DBCTL_OUTMODE_BITS   (3 << 0)

Defines the location of the OUTMODE bits in the DBCTL register.

Definition at line 158 of file pwm.h.

Referenced by PWM_setDeadBandOutputMode().

#define PWM_DBCTL_POLSEL_BITS   (3 << 2)

Defines the location of the POLSEL bits in the DBCTL register.

Definition at line 162 of file pwm.h.

Referenced by PWM_setDeadBandPolarity().

#define PWM_DCFCTL_BLANKE_BITS   (1 << 2)

Defines the location of the BLANKE bits in the DCFCTL register.

Definition at line 444 of file pwm.h.

Referenced by PWM_disableDigitalCompareBlankingWindow(), and PWM_enableDigitalCompareBlankingWindow().

#define PWM_DCFCTL_BLANKINV_BITS   (1 << 3)

Defines the location of the BLANKINV bits in the DCFCTL register.

Definition at line 448 of file pwm.h.

Referenced by PWM_disableDigitalCompareBlankingWindowInversion(), and PWM_enableDigitalCompareBlankingWindowInversion().

#define PWM_DCFCTL_PULSESEL_BITS   (3 << 4)

Defines the location of the PULSESEL bits in the DCFCTL register.

Definition at line 452 of file pwm.h.

Referenced by PWM_setDigitalCompareBlankingPulse().

#define PWM_DCFCTL_SRCSEL_BITS   (3 << 0)

Defines the location of the SRCSEL bits in the DCFCTL register.

Definition at line 440 of file pwm.h.

Referenced by PWM_setDigitalCompareFilterSource().

#define PWM_DCTRIPSEL_DCAHCOMPSEL_BITS   (15 << 0)

Defines the location of the DCAHCOMPSEL bits in the DCTRIPSEL register.

Definition at line 423 of file pwm.h.

#define PWM_DCTRIPSEL_DCALCOMPSEL_BITS   (15 << 4)

Defines the location of the DCALCOMPSEL bits in the DCTRIPSEL register.

Definition at line 427 of file pwm.h.

#define PWM_DCTRIPSEL_DCBHCOMPSEL_BITS   (15 << 8)

Defines the location of the DCBHCOMPSEL bits in the DCTRIPSEL register.

Definition at line 431 of file pwm.h.

#define PWM_DCTRIPSEL_DCBLCOMPSEL_BITS   (15 << 12)

Defines the location of the DCBLCOMPSEL bits in the DCTRIPSEL register.

Definition at line 435 of file pwm.h.

#define PWM_ePWM1_BASE_ADDR   (0x00006800)

Defines the base address of the pulse width modulation (PWM) 1 registers.

Definition at line 69 of file pwm.h.

#define PWM_ePWM2_BASE_ADDR   (0x00006840)

Defines the base address of the pulse width modulation (PWM) 2 registers.

Definition at line 73 of file pwm.h.

#define PWM_ePWM3_BASE_ADDR   (0x00006880)

Defines the base address of the pulse width modulation (PWM) 3 registers.

Definition at line 77 of file pwm.h.

#define PWM_ePWM4_BASE_ADDR   (0x000068C0)

Defines the base address of the pulse width modulation (PWM) 4 registers.

Definition at line 81 of file pwm.h.

#define PWM_ePWM5_BASE_ADDR   (0x00006900)

Defines the base address of the pulse width modulation (PWM) 5 registers.

Definition at line 85 of file pwm.h.

#define PWM_ePWM6_BASE_ADDR   (0x00006940)

Defines the base address of the pulse width modulation (PWM) 6 registers.

Definition at line 89 of file pwm.h.

#define PWM_ePWM7_BASE_ADDR   (0x00006980)

Defines the base address of the pulse width modulation (PWM) 7 registers.

Definition at line 93 of file pwm.h.

#define PWM_ePWM8_BASE_ADDR   (0x000069C0)

Defines the base address of the pulse width modulation (PWM) 8 registers.

Definition at line 97 of file pwm.h.

#define PWM_ETCLR_INT_BITS   (1 << 0)

Defines the location of the ETCR bits in the ETCLR register.

Definition at line 175 of file pwm.h.

Referenced by PWM_clearIntFlag().

#define PWM_ETCLR_SOCA_BITS   (1 << 2)

Defines the location of the SOCA bits in the ETCLR register.

Definition at line 179 of file pwm.h.

Referenced by PWM_clearSocAFlag().

#define PWM_ETCLR_SOCB_BITS   (1 << 3)

Defines the location of the SOCB bits in the ETCLR register.

Definition at line 183 of file pwm.h.

Referenced by PWM_clearSocBFlag().

#define PWM_ETPS_INTCNT_BITS   (3 << 2)

Defines the location of the INTCNT bits in the ETPS register.

Definition at line 192 of file pwm.h.

Referenced by PWM_getIntCount().

#define PWM_ETPS_INTPRD_BITS   (3 << 0)

Defines the location of the INTPRD bits in the ETPS register.

Definition at line 188 of file pwm.h.

Referenced by PWM_setIntPeriod().

#define PWM_ETPS_SOCACNT_BITS   (3 << 10)

Defines the location of the SOCACNT bits in the ETPS register.

Definition at line 200 of file pwm.h.

Referenced by PWM_getSocACount().

#define PWM_ETPS_SOCAPRD_BITS   (3 << 8)

Defines the location of the SOCAPRD bits in the ETPS register.

Definition at line 196 of file pwm.h.

Referenced by PWM_setSocAPeriod().

#define PWM_ETPS_SOCBCNT_BITS   (3 << 14)

Defines the location of the SOCBCNT bits in the ETPS register.

Definition at line 208 of file pwm.h.

Referenced by PWM_getSocBCount().

#define PWM_ETPS_SOCBPRD_BITS   (3 << 12)

Defines the location of the SOCBPRD bits in the ETPS register.

Definition at line 204 of file pwm.h.

Referenced by PWM_setSocBPeriod().

#define PWM_ETSEL_INTEN_BITS   (1 << 3)

Defines the location of the INTEN bits in the ETSEL register.

Definition at line 217 of file pwm.h.

Referenced by PWM_disableInt(), and PWM_enableInt().

#define PWM_ETSEL_INTSEL_BITS   (7 << 0)

Defines the location of the INTSEL bits in the ETSEL register.

Definition at line 213 of file pwm.h.

Referenced by PWM_setIntMode().

#define PWM_ETSEL_SOCAEN_BITS   (1 << 11)

Defines the location of the SOCAEN bits in the ETSEL register.

Definition at line 225 of file pwm.h.

Referenced by PWM_disableSocAPulse(), and PWM_enableSocAPulse().

#define PWM_ETSEL_SOCASEL_BITS   (7 << 8)

Defines the location of the SOCASEL bits in the ETSEL register.

Definition at line 221 of file pwm.h.

Referenced by PWM_setSocAPulseSrc().

#define PWM_ETSEL_SOCBEN_BITS   (1 << 15)

Defines the location of the SOCBEN bits in the ETSEL register.

Definition at line 233 of file pwm.h.

Referenced by PWM_disableSocBPulse(), and PWM_enableSocBPulse().

#define PWM_ETSEL_SOCBSEL_BITS   (7 << 12)

Defines the location of the SOCBSEL bits in the ETSEL register.

Definition at line 229 of file pwm.h.

Referenced by PWM_setSocBPulseSrc().

#define PWM_HRCNFG_AUTOCONV_BITS   (1 << 6)

Defines the location of the AUTOCONV bits in the HRCNFG register.

Definition at line 270 of file pwm.h.

Referenced by PWM_disableAutoConvert(), and PWM_enableAutoConvert().

#define PWM_HRCNFG_CTLMODE_BITS   (1 << 2)

Defines the location of the CTLMODE bits in the HRCNFG register.

Definition at line 258 of file pwm.h.

Referenced by PWM_setHrControlMode().

#define PWM_HRCNFG_EDGMODE_BITS   (3 << 0)

Defines the location of the EDGMODE bits in the HRCNFG register.

Definition at line 254 of file pwm.h.

Referenced by PWM_setHrEdgeMode().

#define PWM_HRCNFG_HRLOAD_BITS   (3 << 3)

Defines the location of the HRLOAD bits in the HRCNFG register.

Definition at line 262 of file pwm.h.

Referenced by PWM_setHrShadowMode().

#define PWM_HRCNFG_SELOUTB_BITS   (1 << 5)

Defines the location of the SELOUTB bits in the HRCNFG register.

Definition at line 266 of file pwm.h.

#define PWM_HRCNFG_SWAPAB_BITS   (1 << 7)

Defines the location of the SWAPAB bits in the HRCNFG register.

Definition at line 274 of file pwm.h.

#define PWM_HRPCTL_HRPE_BITS   (1 << 0)

Defines the location of the HRPE bits in the HRPCTL register.

Definition at line 278 of file pwm.h.

Referenced by PWM_disableHrPeriod(), and PWM_enableHrPeriod().

#define PWM_HRPCTL_PWMSYNCSEL_BITS   (1 << 1)

Defines the location of the PWMSYNCSEL bits in the HRPCTL register.

Definition at line 282 of file pwm.h.

#define PWM_HRPCTL_TBPHSHRLOADE_BITS   (1 << 2)

Defines the location of the TBPHSHRLOADE bits in the HRPCTL register.

Definition at line 286 of file pwm.h.

Referenced by PWM_disableHrPhaseSync(), and PWM_enableHrPhaseSync().

#define PWM_PCCTL_CHPDUTY_BITS   (7 << 8)

Defines the location of the CHPDUTY bits in the PCCTL register.

Definition at line 250 of file pwm.h.

Referenced by PWM_setChoppingDutyCycle().

#define PWM_PCCTL_CHPEN_BITS   (1 << 0)

Defines the location of the CHPEN bits in the PCCTL register.

Definition at line 238 of file pwm.h.

Referenced by PWM_disableChopping().

#define PWM_PCCTL_CHPFREQ_BITS   (7 << 5)

Defines the location of the CHPFREQ bits in the PCCTL register.

Definition at line 246 of file pwm.h.

Referenced by PWM_setChoppingClkFreq().

#define PWM_PCCTL_OSHTWTH_BITS   (15 << 1)

Defines the location of the OSHTWTH bits in the PCCTL register.

Definition at line 242 of file pwm.h.

Referenced by PWM_setChoppingPulseWidth().

#define PWM_TBCTL_CLKDIV_BITS   (7 << 10)

Defines the location of the CLKDIV bits in the TBCTL register.

Definition at line 314 of file pwm.h.

Referenced by PWM_setClkDiv().

#define PWM_TBCTL_CTRMODE_BITS   (3 << 0)

Defines the location of the CTRMODE bits in the TBCTL register.

Definition at line 290 of file pwm.h.

Referenced by PWM_setCounterMode().

#define PWM_TBCTL_FREESOFT_BITS   (3 << 14)

Defines the location of the FREESOFT bits in the TBCTL register.

Definition at line 322 of file pwm.h.

Referenced by PWM_setRunMode().

#define PWM_TBCTL_HSPCLKDIV_BITS   (7 << 7)

Defines the location of the HSPCLKDIV bits in the TBCTL register.

Definition at line 310 of file pwm.h.

Referenced by PWM_setHighSpeedClkDiv().

#define PWM_TBCTL_PHSDIR_BITS   (1 << 13)

Defines the location of the PHSDIR bits in the TBCTL register.

Definition at line 318 of file pwm.h.

Referenced by PWM_setPhaseDir().

#define PWM_TBCTL_PHSEN_BITS   (1 << 2)

Defines the location of the PHSEN bits in the TBCTL register.

Definition at line 294 of file pwm.h.

Referenced by PWM_disableCounterLoad(), and PWM_enableCounterLoad().

#define PWM_TBCTL_PRDLD_BITS   (1 << 3)

Defines the location of the PRDLD bits in the TBCTL register.

Definition at line 298 of file pwm.h.

Referenced by PWM_setPeriodLoad().

#define PWM_TBCTL_SWFSYNC_BITS   (1 << 6)

Defines the location of the SWFSYNC bits in the TBCTL register.

Definition at line 306 of file pwm.h.

Referenced by PWM_forceSync().

#define PWM_TBCTL_SYNCOSEL_BITS   (3 << 4)

Defines the location of the SYNCOSEL bits in the TBCTL register.

Definition at line 302 of file pwm.h.

Referenced by PWM_setSyncMode().

#define PWM_TZCLR_CBC_BITS   (1 << 1)

Defines the location of the CBC bits in the TXCLR register.

Definition at line 331 of file pwm.h.

#define PWM_TZCLR_DCAEVT1_BITS   (1 << 3)

Defines the location of the DCAEVT1 bits in the TXCLR register.

Definition at line 339 of file pwm.h.

#define PWM_TZCLR_DCAEVT2_BITS   (1 << 4)

Defines the location of the DCAEVT2 bits in the TXCLR register.

Definition at line 343 of file pwm.h.

#define PWM_TZCLR_DCBEVT1_BITS   (1 << 5)

Defines the location of the DCBEVT1 bits in the TXCLR register.

Definition at line 347 of file pwm.h.

#define PWM_TZCLR_DCBEVT2_BITS   (1 << 6)

Defines the location of the DCBEVT2 bits in the TXCLR register.

Definition at line 351 of file pwm.h.

#define PWM_TZCLR_INT_BITS   (1 << 0)

Defines the location of the INT bits in the TXCLR register.

Definition at line 327 of file pwm.h.

#define PWM_TZCLR_OST_BITS   (1 << 2)

Defines the location of the OST bits in the TXCLR register.

Definition at line 335 of file pwm.h.

Referenced by PWM_clearOneShotTrip().

#define PWM_TZCTL_DCAEVT1_BITS   (3 << 4)

Defines the location of the DCAEVT1 bits in the TZCTL register.

Definition at line 364 of file pwm.h.

Referenced by PWM_setTripZoneState_DCAEVT1().

#define PWM_TZCTL_DCAEVT2_BITS   (3 << 6)

Defines the location of the DCAEVT2 bits in the TZCTL register.

Definition at line 368 of file pwm.h.

Referenced by PWM_setTripZoneState_DCAEVT2().

#define PWM_TZCTL_DCBEVT1_BITS   (3 << 8)

Defines the location of the DCBEVT1 bits in the TZCTL register.

Definition at line 372 of file pwm.h.

Referenced by PWM_setTripZoneState_DCBEVT1().

#define PWM_TZCTL_DCBEVT2_BITS   (3 << 10)

Defines the location of the DCBEVT2 bits in the TZCTL register.

Definition at line 376 of file pwm.h.

Referenced by PWM_setTripZoneState_DCBEVT2().

#define PWM_TZCTL_TZA_BITS   (3 << 0)

Defines the location of the TZA bits in the TZCTL register.

Definition at line 356 of file pwm.h.

Referenced by PWM_setTripZoneState_TZA().

#define PWM_TZCTL_TZB_BITS   (3 << 2)

Defines the location of the TZB bits in the TZCTL register.

Definition at line 360 of file pwm.h.

Referenced by PWM_setTripZoneState_TZB().

#define PWM_TZDCSEL_DCAEVT1_BITS   (7 << 0)

Defines the location of the DCAEVT1 bits in the TZDCSEL register.

Definition at line 406 of file pwm.h.

Referenced by PWM_setTripZoneDCEventSelect_DCAEVT1().

#define PWM_TZDCSEL_DCAEVT2_BITS   (7 << 3)

Defines the location of the DCAEVT2 bits in the TZDCSEL register.

Definition at line 410 of file pwm.h.

Referenced by PWM_setTripZoneDCEventSelect_DCAEVT2().

#define PWM_TZDCSEL_DCBEVT1_BITS   (7 << 6)

Defines the location of the DCBEVT1 bits in the TZDCSEL register.

Definition at line 414 of file pwm.h.

Referenced by PWM_setTripZoneDCEventSelect_DCBEVT1().

#define PWM_TZDCSEL_DCBEVT2_BITS   (7 << 9)

Defines the location of the DCBEVT2 bits in the TZDCSEL register.

Definition at line 418 of file pwm.h.

Referenced by PWM_setTripZoneDCEventSelect_DCBEVT2().

#define PWM_TZFRC_CBC_BITS   (1 << 1)

Defines the location of the CBC bits in the TZFRC register.

Definition at line 381 of file pwm.h.

#define PWM_TZFRC_DCAEVT1_BITS   (1 << 3)

Defines the location of the DCAEVT1 bits in the TZFRC register.

Definition at line 389 of file pwm.h.

#define PWM_TZFRC_DCAEVT2_BITS   (1 << 4)

Defines the location of the DCAEVT2 bits in the TZFRC register.

Definition at line 393 of file pwm.h.

#define PWM_TZFRC_DCBEVT1_BITS   (1 << 5)

Defines the location of the DCBEVT1 bits in the TZFRC register.

Definition at line 397 of file pwm.h.

#define PWM_TZFRC_DCBEVT2_BITS   (1 << 6)

Defines the location of the DCBEVT2 bits in the TZFRC register.

Definition at line 401 of file pwm.h.

#define PWM_TZFRC_OST_BITS   (1 << 2)

Defines the location of the OST bits in the TZFRC register.

Definition at line 385 of file pwm.h.

Referenced by PWM_setOneShotTrip().

Typedef Documentation

typedef struct _PWM_Obj_* PWM_Handle

Defines the pulse width modulation (PWM) handle.

Definition at line 935 of file pwm.h.

typedef struct _PWM_Obj_ PWM_Obj

Defines the pulse width modulation (PWM) object.

Enumeration Type Documentation

Enumeration to define the pulse width modulation (PWM) action qualifiers.

Enumerator
PWM_ActionQual_Disabled 
PWM_ActionQual_Clear 
PWM_ActionQual_Set 
PWM_ActionQual_Toggle 

Definition at line 460 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) Action-qualifier Continuous Software Force.

Enumerator
PWM_ActionQualContSWForce_Disabled 
PWM_ActionQualContSWForce_Clear 
PWM_ActionQualContSWForce_Set 

Definition at line 471 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) chopping clock frequencies.

Enumerator
PWM_ChoppingClkFreq_SysClkOut_by_1 
PWM_ChoppingClkFreq_SysClkOut_by_2 
PWM_ChoppingClkFreq_SysClkOut_by_3 
PWM_ChoppingClkFreq_SysClkOut_by_4 
PWM_ChoppingClkFreq_SysClkOut_by_5 
PWM_ChoppingClkFreq_SysClkOut_by_6 
PWM_ChoppingClkFreq_SysClkOut_by_7 
PWM_ChoppingClkFreq_SysClkOut_by_8 

Definition at line 496 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) chopping clock duty cycles.

Enumerator
PWM_ChoppingDutyCycle_One_Eighth 
PWM_ChoppingDutyCycle_Two_Eighths 
PWM_ChoppingDutyCycle_Three_Eighths 
PWM_ChoppingDutyCycle_Four_Eighths 
PWM_ChoppingDutyCycle_Five_Eighths 
PWM_ChoppingDutyCycle_Six_Eighths 
PWM_ChoppingDutyCycle_Seven_Eighths 

Definition at line 511 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) chopping clock pulse widths.

Enumerator
PWM_ChoppingPulseWidth_One_Eighth_SysClkOut 
PWM_ChoppingPulseWidth_Two_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Three_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Four_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Five_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Six_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Seven_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Eight_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Nine_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Ten_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Eleven_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Twelve_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Thirteen_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Fourteen_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Fifteen_Eighths_SysClkOut 
PWM_ChoppingPulseWidth_Sixteen_Eighths_SysClkOut 

Definition at line 525 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) clock dividers.

Enumerator
PWM_ClkDiv_by_1 
PWM_ClkDiv_by_2 
PWM_ClkDiv_by_4 
PWM_ClkDiv_by_8 
PWM_ClkDiv_by_16 
PWM_ClkDiv_by_32 
PWM_ClkDiv_by_64 
PWM_ClkDiv_by_128 

Definition at line 481 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) counter modes.

Enumerator
PWM_CounterMode_Up 
PWM_Countermode_Down 
PWM_CounterMode_UpDown 
PWM_CounterMode_Stop 

Definition at line 548 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) deadband options.

Enumerator
PWM_DeadBandInputMode_EPWMxA_Rising_and_Falling 
PWM_DeadBandInputMode_EPWMxA_Falling_EPWMxB_Rising 
PWM_DeadBandInputMode_EPWMxA_Rising_EPWMxB_Falling 
PWM_DeadBandInputMode_EPWMxB_Rising_and_Falling 

Definition at line 559 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) deadband output modes.

Enumerator
PWM_DeadBandOutputMode_Bypass 
PWM_DeadBandOutputMode_EPWMxA_Disable_EPWMxB_Falling 
PWM_DeadBandOutputMode_EPWMxA_Rising_EPWMxB_Disable 
PWM_DeadBandOutputMode_EPWMxA_Rising_EPWMxB_Falling 

Definition at line 570 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) deadband polarity.

Enumerator
PWM_DeadBandPolarity_EPWMxA_EPWMxB 
PWM_DeadBandPolarity_EPWMxA_Inverted 
PWM_DeadBandPolarity_EPWMxB_Inverted 
PWM_DeadBandPolarity_EPWMxA_Inverted_EPWMxB_Inverted 

Definition at line 581 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) digital compare filter sources.

Enumerator
PWM_DigitalCompare_FilterSrc_DCAEVT1 
PWM_DigitalCompare_FilterSrc_DCAEVT2 
PWM_DigitalCompare_FilterSrc_DCBEVT1 
PWM_DigitalCompare_FilterSrc_DCBEVT2 

Definition at line 616 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) digital compare inputs.

Enumerator
PWM_DigitalCompare_A_High 
PWM_DigitalCompare_A_Low 
PWM_DigitalCompare_B_High 
PWM_DigitalCompare_B_Low 

Definition at line 592 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) digital compare input choices.

Enumerator
PWM_DigitalCompare_InputSel_TZ1 
PWM_DigitalCompare_InputSel_TZ2 
PWM_DigitalCompare_InputSel_TZ3 
PWM_DigitalCompare_InputSel_COMP1OUT 
PWM_DigitalCompare_InputSel_COMP2OUT 
PWM_DigitalCompare_InputSel_COMP3OUT 

Definition at line 603 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) digital compare blanking pulse select.

Enumerator
PWM_DigitalCompare_PulseSel_CTRPRD 
PWM_DigitalCompare_PulseSel_CTR0 

Definition at line 627 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) high resolution control mode options.

Enumerator
PWM_HrControlMode_Duty 
PWM_HrControlMode_Phase 

Definition at line 650 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) high resolution edge mode options.

Enumerator
PWM_HrEdgeMode_Disabled 
PWM_HrEdgeMode_Rising 
PWM_HrEdgeMode_Falling 
PWM_HrEdgeMode_Both 

Definition at line 659 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) high resolution shadow load mode options.

Enumerator
PWM_HrShadowMode_CTR_EQ_0 
PWM_HrShadowMode_CTR_EQ_PRD 
PWM_HrShadowMode_CTR_EQ_0_OR_PRD 

Definition at line 670 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) high speed clock divide options.

Enumerator
PWM_HspClkDiv_by_1 
PWM_HspClkDiv_by_2 
PWM_HspClkDiv_by_4 
PWM_HspClkDiv_by_6 
PWM_HspClkDiv_by_8 
PWM_HspClkDiv_by_10 
PWM_HspClkDiv_by_12 
PWM_HspClkDiv_by_14 

Definition at line 636 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) interrupt generation modes.

Enumerator
PWM_IntMode_CounterEqualZero 
PWM_IntMode_CounterEqualPeriod 
PWM_IntMode_CounterEqualZeroOrPeriod 
PWM_IntMode_CounterEqualCmpAIncr 
PWM_IntMode_CounterEqualCmpADecr 
PWM_IntMode_CounterEqualCmpBIncr 
PWM_IntMode_CounterEqualCmpBDecr 

Definition at line 679 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) interrupt period options.

Enumerator
PWM_IntPeriod_Disable 
PWM_IntPeriod_FirstEvent 
PWM_IntPeriod_SecondEvent 
PWM_IntPeriod_ThirdEvent 

Definition at line 693 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) load modes.

Enumerator
PWM_LoadMode_Zero 
PWM_LoadMode_Period 
PWM_LoadMode_Either 
PWM_LoadMode_Freeze 

Definition at line 704 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) numbers.

Enumerator
PWM_Number_1 
PWM_Number_2 
PWM_Number_3 
PWM_Number_4 
PWM_Number_5 
PWM_Number_6 
PWM_Number_7 
PWM_Number_8 

Definition at line 715 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) period load options.

Enumerator
PWM_PeriodLoad_Shadow 
PWM_PeriodLoad_Immediate 

Definition at line 730 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) phase direction modes.

Enumerator
PWM_PhaseDir_CountDown 
PWM_PhaseDir_CountUp 

Definition at line 739 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) run modes.

Enumerator
PWM_RunMode_SoftStopAfterIncr 
PWM_RunMode_SoftStopAfterDecr 
PWM_RunMode_SoftStopAfterCycle 
PWM_RunMode_FreeRun 

Definition at line 748 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) shadow modes.

Enumerator
PWM_ShadowMode_Shadow 
PWM_ShadowMode_Immediate 

Definition at line 759 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) shadow status options.

Enumerator
PWM_ShadowStatus_NotFull 
PWM_ShadowStatus_Full 

Definition at line 768 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) period options.

Enumerator
PWM_SocPeriod_Disable 
PWM_SocPeriod_FirstEvent 
PWM_SocPeriod_SecondEvent 
PWM_SocPeriod_ThirdEvent 

Definition at line 777 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) start of conversion (SOC) sources.

Enumerator
PWM_SocPulseSrc_DcEvt 
PWM_SocPulseSrc_CounterEqualZero 
PWM_SocPulseSrc_CounterEqualPeriod 
PWM_SocPulseSrc_CounterEqualZeroOrPeriod 
PWM_SocPulseSrc_CounterEqualCmpAIncr 
PWM_SocPulseSrc_CounterEqualCmpADecr 
PWM_SocPulseSrc_CounterEqualCmpBIncr 
PWM_SocPulseSrc_CounterEqualCmpBDecr 

Definition at line 788 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) sync modes.

Enumerator
PWM_SyncMode_EPWMxSYNC 
PWM_SyncMode_CounterEqualZero 
PWM_SyncMode_CounterEqualCounterCompareZero 
PWM_SyncMode_Disable 

Definition at line 803 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) trip zone event selections.

Enumerator
PWM_TripZoneDCEventSel_Disabled 

Event Disabled.

PWM_TripZoneDCEventSel_DCxHL_DCxLX 

Compare H = Low, Compare L = Don't Care.

PWM_TripZoneDCEventSel_DCxHH_DCxLX 

Compare H = High, Compare L = Don't Care.

PWM_TripZoneDCEventSel_DCxHx_DCxLL 

Compare H = Don't Care, Compare L = Low.

PWM_TripZoneDCEventSel_DCxHx_DCxLH 

Compare H = Don't Care, Compare L = High.

PWM_TripZoneDCEventSel_DCxHL_DCxLH 

Compare H = Low, Compare L = High.

Definition at line 860 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) trip zone states.

Enumerator
PWM_TripZoneFlag_Global 

Global Trip Zone flag.

PWM_TripZoneFlag_CBC 

Cycle by cycle Trip Zone flag.

PWM_TripZoneFlag_OST 

One Shot Trip Zone flag.

PWM_TripZoneFlag_DCAEVT1 

Digital Compare A Event 1 Trip Zone flag.

PWM_TripZoneFlag_DCAEVT2 

Digital Compare A Event 2 Trip Zone flag.

PWM_TripZoneFlag_DCBEVT1 

Digital Compare B Event 1 Trip Zone flag.

PWM_TripZoneFlag_DCBEVT2 

Digital Compare B Event 2 Trip Zone flag.

Definition at line 847 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) trip zone sources.

Enumerator
PWM_TripZoneSrc_CycleByCycle_TZ1_NOT 
PWM_TripZoneSrc_CycleByCycle_TZ2_NOT 
PWM_TripZoneSrc_CycleByCycle_TZ3_NOT 
PWM_TripZoneSrc_CycleByCycle_TZ4_NOT 
PWM_TripZoneSrc_CycleByCycle_TZ5_NOT 
PWM_TripZoneSrc_CycleByCycle_TZ6_NOT 
PWM_TripZoneSrc_CycleByCycle_CmpA 
PWM_TripZoneSrc_CycleByCycle_CmpB 
PWM_TripZoneSrc_OneShot_TZ1_NOT 
PWM_TripZoneSrc_OneShot_TZ2_NOT 
PWM_TripZoneSrc_OneShot_TZ3_NOT 
PWM_TripZoneSrc_OneShot_TZ4_NOT 
PWM_TripZoneSrc_OneShot_TZ5_NOT 
PWM_TripZoneSrc_OneShot_TZ6_NOT 
PWM_TripZoneSrc_OneShot_CmpA 
PWM_TripZoneSrc_OneShot_CmpB 

Definition at line 814 of file pwm.h.

Enumeration to define the pulse width modulation (PWM) trip zone states.

Enumerator
PWM_TripZoneState_HighImp 
PWM_TripZoneState_EPWM_High 
PWM_TripZoneState_EPWM_Low 
PWM_TripZoneState_DoNothing 

Definition at line 837 of file pwm.h.

Function Documentation

static void PWM_clearIntFlag ( PWM_Handle  pwmHandle)
inlinestatic

Clears the pulse width modulation (PWM) interrupt flag.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 947 of file pwm.h.

References _PWM_Obj_::ETCLR, and PWM_ETCLR_INT_BITS.

static void PWM_clearOneShotTrip ( PWM_Handle  pwmHandle)
inlinestatic

Clears the pulse width modulation (PWM) one shot trip.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 961 of file pwm.h.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCLR_OST_BITS, and _PWM_Obj_::TZCLR.

static void PWM_clearSocAFlag ( PWM_Handle  pwmHandle)
inlinestatic

Clears the pulse width modulation (PWM) start of conversion (SOC) A flag.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 979 of file pwm.h.

References _PWM_Obj_::ETCLR, and PWM_ETCLR_SOCA_BITS.

static void PWM_clearSocBFlag ( PWM_Handle  pwmHandle)
inlinestatic

Clears the pulse width modulation (PWM) start of conversion (SOC) B flag.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 993 of file pwm.h.

References _PWM_Obj_::ETCLR, and PWM_ETCLR_SOCB_BITS.

void PWM_clearTripZone ( PWM_Handle  pwmHandle,
const PWM_TripZoneFlag_e  tripZoneFlag 
)

Clears the trip zone (TZ) flag specified.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneFlagThe trip zone flag to clear

Definition at line 56 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZCLR.

void PWM_decrementDeadBandFallingEdgeDelay ( PWM_Handle  pwmHandle)

Decrement the dead band falling edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 71 of file pwm.c.

References _PWM_Obj_::DBFED.

void PWM_decrementDeadBandRisingEdgeDelay ( PWM_Handle  pwmHandle)

Decrement the dead band rising edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 82 of file pwm.c.

References _PWM_Obj_::DBRED.

void PWM_disableAutoConvert ( PWM_Handle  pwmHandle)

Disables auto conversion of delay line value.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 93 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRCNFG, and PWM_HRCNFG_AUTOCONV_BITS.

void PWM_disableChopping ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) chopping.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 108 of file pwm.c.

References _PWM_Obj_::PCCTL, and PWM_PCCTL_CHPEN_BITS.

void PWM_disableCounterLoad ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) counter loading from the phase register.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 119 of file pwm.c.

References PWM_TBCTL_PHSEN_BITS, and _PWM_Obj_::TBCTL.

void PWM_disableDeadBand ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) deadband.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 131 of file pwm.c.

References _PWM_Obj_::DBCTL.

void PWM_disableDeadBandHalfCycle ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) deadband half cycle clocking.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 143 of file pwm.c.

References _PWM_Obj_::DBCTL, and PWM_DBCTL_HALFCYCLE_BITS.

void PWM_disableDigitalCompareBlankingWindow ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) digital compare blanking window.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 155 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_BLANKE_BITS.

void PWM_disableDigitalCompareBlankingWindowInversion ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) digital compare blanking window inversion.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 170 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_BLANKINV_BITS.

void PWM_disableHrPeriod ( PWM_Handle  pwmHandle)

Disables high resolution period control.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 185 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRPCTL, and PWM_HRPCTL_HRPE_BITS.

void PWM_disableHrPhaseSync ( PWM_Handle  pwmHandle)

Disables high resolution phase synchronization.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 200 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRPCTL, and PWM_HRPCTL_TBPHSHRLOADE_BITS.

void PWM_disableInt ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) interrupt.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 215 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_INTEN_BITS.

void PWM_disableSocAPulse ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 227 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCAEN_BITS.

void PWM_disableSocBPulse ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 239 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCBEN_BITS.

void PWM_disableTripZoneInt ( PWM_Handle  pwmHandle,
const PWM_TripZoneFlag_e  interruptSource 
)

Disables the pulse width modulation (PWM) trip zones interrupts.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]interruptThe interrupt source to disable

Definition at line 267 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZEINT.

void PWM_disableTripZones ( PWM_Handle  pwmHandle)

Disables the pulse width modulation (PWM) trip zones.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 251 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZSEL.

void PWM_disableTripZoneSrc ( PWM_Handle  pwmHandle,
const PWM_TripZoneSrc_e  src 
)

Disable the pulse width modulation (PWM) trip zone source.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]srcThe pulse width modulation (PWM) trip zone source

Definition at line 283 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZSEL.

void PWM_enableAutoConvert ( PWM_Handle  pwmHandle)

Enables auto conversion of delay line value.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 299 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRCNFG, and PWM_HRCNFG_AUTOCONV_BITS.

void PWM_enableChopping ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) chopping.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 314 of file pwm.c.

References _PWM_Obj_::PCCTL.

void PWM_enableCounterLoad ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) counter loading from the phase register.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 325 of file pwm.c.

References PWM_TBCTL_PHSEN_BITS, and _PWM_Obj_::TBCTL.

void PWM_enableDeadBandHalfCycle ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) deadband half cycle clocking.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 337 of file pwm.c.

References _PWM_Obj_::DBCTL, and PWM_DBCTL_HALFCYCLE_BITS.

void PWM_enableDigitalCompareBlankingWindow ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) digital compare blanking window.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 349 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_BLANKE_BITS.

void PWM_enableDigitalCompareBlankingWindowInversion ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) digital compare blanking window inversion.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 364 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_BLANKINV_BITS.

void PWM_enableHrPeriod ( PWM_Handle  pwmHandle)

Enables high resolution period control.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 379 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRPCTL, and PWM_HRPCTL_HRPE_BITS.

void PWM_enableHrPhaseSync ( PWM_Handle  pwmHandle)

Enables high resolution phase synchronization.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 406 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRPCTL, and PWM_HRPCTL_TBPHSHRLOADE_BITS.

void PWM_enableInt ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) interrupt.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 394 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_INTEN_BITS.

void PWM_enableSocAPulse ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) start of conversion (SOC) A pulse generation.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 421 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCAEN_BITS.

void PWM_enableSocBPulse ( PWM_Handle  pwmHandle)

Enables the pulse width modulation (PWM) start of conversion (SOC) B pulse generation.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 433 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCBEN_BITS.

void PWM_enableTripZoneInt ( PWM_Handle  pwmHandle,
const PWM_TripZoneFlag_e  interruptSource 
)

Enables the pulse width modulation (PWM) trip zones interrupts.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]interruptThe interrupt source to enable

Definition at line 445 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZEINT.

void PWM_enableTripZoneSrc ( PWM_Handle  pwmHandle,
const PWM_TripZoneSrc_e  src 
)

Enable the pulse width modulation (PWM) trip zone source.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]srcThe pulse width modulation (PWM) trip zone source

Definition at line 460 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TZSEL.

static void PWM_forceSync ( PWM_Handle  pwmHandle)
inlinestatic

Force Synchronization.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 1191 of file pwm.h.

References PWM_TBCTL_SWFSYNC_BITS, and _PWM_Obj_::TBCTL.

static uint16_t PWM_get_CmpA ( PWM_Handle  pwmHandle)
inlinestatic

Gets the value of the Counter Compare A hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The CMPA value

Definition at line 1159 of file pwm.h.

References _PWM_Obj_::CMPA.

static uint16_t PWM_get_CmpAM ( PWM_Handle  pwmHandle)
inlinestatic

Gets the value of the Counter Compare A Mirror Register.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The CMPAM value

Definition at line 1170 of file pwm.h.

References _PWM_Obj_::CMPAM.

static uint16_t PWM_get_CmpB ( PWM_Handle  pwmHandle)
inlinestatic

Gets the value of the Counter Compare B hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The CMPB value

Definition at line 1181 of file pwm.h.

References _PWM_Obj_::CMPB.

static uint16_t PWM_getCmpA ( PWM_Handle  pwmHandle)
inlinestatic

Gets the pulse width modulation (PWM) data value from the Counter Compare A hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The PWM compare data value

Definition at line 1233 of file pwm.h.

References _PWM_Obj_::CMPA.

static uint16_t PWM_getCmpAHr ( PWM_Handle  pwmHandle)
inlinestatic

Gets the pulse width modulation (PWM) data value from the Counter Compare A Hr hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The PWM compare high resolution data value

Definition at line 1243 of file pwm.h.

References _PWM_Obj_::CMPAHR.

static uint16_t PWM_getCmpB ( PWM_Handle  pwmHandle)
inlinestatic

Gets the pulse width modulation (PWM) data value from the Counter Compare B hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The PWM compare data value

Definition at line 1253 of file pwm.h.

References _PWM_Obj_::CMPB.

uint16_t PWM_getDeadBandFallingEdgeDelay ( PWM_Handle  pwmHandle)

Gets the pulse width modulation (PWM) deadband falling edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The delay

Definition at line 476 of file pwm.c.

References _PWM_Obj_::DBFED.

uint16_t PWM_getDeadBandRisingEdgeDelay ( PWM_Handle  pwmHandle)

Gets the pulse width modulation (PWM) deadband rising edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The delay

Definition at line 484 of file pwm.c.

References _PWM_Obj_::DBRED.

uint16_t PWM_getIntCount ( PWM_Handle  pwmHandle)

Gets the pulse width modulation (PWM) interrupt event count.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The interrupt event count

Definition at line 492 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_INTCNT_BITS.

static uint16_t PWM_getPeriod ( PWM_Handle  pwmHandle)
inlinestatic

Gets the pulse width modulation (PWM) period value.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The pwm period value

Definition at line 1222 of file pwm.h.

References _PWM_Obj_::TBPRD.

uint16_t PWM_getSocACount ( PWM_Handle  pwmHandle)

Gets the pulse width modulation (PWM) start of conversion (SOC) A count.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The SOC A count

Definition at line 502 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_SOCACNT_BITS.

uint16_t PWM_getSocBCount ( PWM_Handle  pwmHandle)

Gets the pulse width modulation (PWM) start of conversion (SOC) B count.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
Returns
The SOC B count

Definition at line 515 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_SOCBCNT_BITS.

void PWM_incrementDeadBandFallingEdgeDelay ( PWM_Handle  pwmHandle)

Increment the dead band falling edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 606 of file pwm.c.

References _PWM_Obj_::DBFED.

void PWM_incrementDeadBandRisingEdgeDelay ( PWM_Handle  pwmHandle)

Increment the dead band rising edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 617 of file pwm.c.

References _PWM_Obj_::DBRED.

PWM_Handle PWM_init ( void *  pMemory,
const size_t  numBytes 
)

Initializes the pulse width modulation (PWM) object handle.

Parameters
[in]pMemoryA pointer to the base address of the PWM registers
[in]numBytesThe number of bytes allocated for the PWM object, bytes
Returns
The pulse width modulation (PWM) object handle

Definition at line 628 of file pwm.c.

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 counter is decrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 644 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_CAD_BITS.

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 counter is decrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 659 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_CAD_BITS.

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 counter is decrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 674 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_CBD_BITS.

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 counter is decrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 689 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_CBD_BITS.

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 counter is incrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 704 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_CAU_BITS.

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 counter is incrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 719 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_CAU_BITS.

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 counter is incrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 734 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_CBU_BITS.

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 counter is incrementing.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 749 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_CBU_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 794 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_PRD_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 809 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_PRD_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 824 of file pwm.c.

References _PWM_Obj_::AQCTLA, and PWM_AQCTL_ZRO_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualThe action qualifier

Definition at line 839 of file pwm.c.

References _PWM_Obj_::AQCTLB, and PWM_AQCTL_ZRO_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualContSWForceThe action qualifier continuous software force

Definition at line 764 of file pwm.c.

References _PWM_Obj_::AQCSFRC, and PWM_AQCSFRC_CSFA_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]actionQualContSWForceThe action qualifier continuous software force

Definition at line 779 of file pwm.c.

References _PWM_Obj_::AQCSFRC, and PWM_AQCSFRC_CSFB_BITS.

void PWM_setChoppingClkFreq ( PWM_Handle  pwmHandle,
const PWM_ChoppingClkFreq_e  clkFreq 
)

Sets the pulse width modulation (PWM) chopping clock frequency.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]clkFreqThe clock frequency

Definition at line 854 of file pwm.c.

References _PWM_Obj_::PCCTL, and PWM_PCCTL_CHPFREQ_BITS.

void PWM_setChoppingDutyCycle ( PWM_Handle  pwmHandle,
const PWM_ChoppingDutyCycle_e  dutyCycle 
)

Sets the pulse width modulation (PWM) chopping clock duty cycle.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]dutyCycleThe duty cycle

Definition at line 869 of file pwm.c.

References _PWM_Obj_::PCCTL, and PWM_PCCTL_CHPDUTY_BITS.

void PWM_setChoppingPulseWidth ( PWM_Handle  pwmHandle,
const PWM_ChoppingPulseWidth_e  pulseWidth 
)

Sets the pulse width modulation (PWM) chopping clock pulse width.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pulseWidthThe pulse width

Definition at line 884 of file pwm.c.

References _PWM_Obj_::PCCTL, and PWM_PCCTL_OSHTWTH_BITS.

void PWM_setClkDiv ( PWM_Handle  pwmHandle,
const PWM_ClkDiv_e  clkDiv 
)

Sets the pulse width modulation (PWM) clock divisor.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]clkDivThe clock divisor

Definition at line 899 of file pwm.c.

References PWM_TBCTL_CLKDIV_BITS, and _PWM_Obj_::TBCTL.

static void PWM_setCmpA ( PWM_Handle  pwmHandle,
const uint16_t  pwmData 
)
inlinestatic

Writes the pulse width modulation (PWM) data value to the Counter Compare A hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pwmDataThe PWM data value

Definition at line 1744 of file pwm.h.

References _PWM_Obj_::CMPA.

static void PWM_setCmpAHr ( PWM_Handle  pwmHandle,
const uint16_t  pwmData 
)
inlinestatic

Writes the pulse width modulation (PWM) data value to the Counter Compare A Hr hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pwmDataThe PWM high resolution data value

Definition at line 1756 of file pwm.h.

References _PWM_Obj_::CMPAHR.

static void PWM_setCmpB ( PWM_Handle  pwmHandle,
const uint16_t  pwmData 
)
inlinestatic

Writes the pulse width modulation (PWM) data value to the Counter Compare B hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pwmDataThe PWM data value

Definition at line 1781 of file pwm.h.

References _PWM_Obj_::CMPB.

void PWM_setCount ( PWM_Handle  pwmHandle,
const uint16_t  count 
)

Sets the pulse width modulation (PWM) count.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]countThe count

Definition at line 914 of file pwm.c.

References _PWM_Obj_::TBCTR.

void PWM_setCounterMode ( PWM_Handle  pwmHandle,
const PWM_CounterMode_e  counterMode 
)

Sets the pulse width modulation (PWM) counter mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]counterModeThe count mode

Definition at line 926 of file pwm.c.

References PWM_TBCTL_CTRMODE_BITS, and _PWM_Obj_::TBCTL.

void PWM_setDeadBandFallingEdgeDelay ( PWM_Handle  pwmHandle,
const uint16_t  delay 
)

Sets the pulse width modulation (PWM) deadband falling edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]delayThe delay

Definition at line 941 of file pwm.c.

References _PWM_Obj_::DBFED.

void PWM_setDeadBandInputMode ( PWM_Handle  pwmHandle,
const PWM_DeadBandInputMode_e  inputMode 
)

Sets the pulse width modulation (PWM) deadband input mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]inputModeThe input mode

Definition at line 952 of file pwm.c.

References _PWM_Obj_::DBCTL, and PWM_DBCTL_INMODE_BITS.

void PWM_setDeadBandOutputMode ( PWM_Handle  pwmHandle,
const PWM_DeadBandOutputMode_e  outputMode 
)

Sets the pulse width modulation (PWM) deadband output mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]outputModeThe output mode

Definition at line 967 of file pwm.c.

References _PWM_Obj_::DBCTL, and PWM_DBCTL_OUTMODE_BITS.

void PWM_setDeadBandPolarity ( PWM_Handle  pwmHandle,
const PWM_DeadBandPolarity_e  polarity 
)

Sets the pulse width modulation (PWM) deadband polarity.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]polarityThe polarity

Definition at line 982 of file pwm.c.

References _PWM_Obj_::DBCTL, and PWM_DBCTL_POLSEL_BITS.

void PWM_setDeadBandRisingEdgeDelay ( PWM_Handle  pwmHandle,
const uint16_t  delay 
)

Sets the pulse width modulation (PWM) deadband rising edge delay.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]delayThe delay

Definition at line 997 of file pwm.c.

References _PWM_Obj_::DBRED.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]selectFilterSelect filter output if true
[in]disableSyncAsynchronous if true
[in]enableSocEnable SOC generation if true
[in]generateSyncGenerate SYNC if true

Definition at line 1091 of file pwm.c.

References _PWM_Obj_::DCACTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]selectFilterSelect filter output if true
[in]disableSyncAsynchronous if true

Definition at line 1113 of file pwm.c.

References _PWM_Obj_::DCACTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]selectFilterSelect filter output if true
[in]disableSyncAsynchronous if true
[in]enableSocEnable SOC generation if true
[in]generateSyncGenerate SYNC if true

Definition at line 1133 of file pwm.c.

References _PWM_Obj_::DCBCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]selectFilterSelect filter output if true
[in]disableSyncAsynchronous if true

Definition at line 1155 of file pwm.c.

References _PWM_Obj_::DCBCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.

void PWM_setDigitalCompareBlankingPulse ( PWM_Handle  pwmHandle,
const PWM_DigitalCompare_PulseSel_e  pulseSelect 
)

Sets the pulse width modulation (PWM) digital compare blanking pulse.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]inputThe pulse selection

Definition at line 1028 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_PULSESEL_BITS.

void PWM_setDigitalCompareFilterOffset ( PWM_Handle  pwmHandle,
const uint16_t  offset 
)

Sets the pulse width modulation (PWM) digital compare filter offset.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]offsetThe offset

Definition at line 1047 of file pwm.c.

References _PWM_Obj_::DCFOFFSET.

void PWM_setDigitalCompareFilterSource ( PWM_Handle  pwmHandle,
const PWM_DigitalCompare_FilterSrc_e  input 
)

Sets the pulse width modulation (PWM) digital compare filter source.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]inputThe filter's source

Definition at line 1009 of file pwm.c.

References _PWM_Obj_::DCFCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and PWM_DCFCTL_SRCSEL_BITS.

void PWM_setDigitalCompareFilterWindow ( PWM_Handle  pwmHandle,
const uint16_t  window 
)

Sets the pulse width modulation (PWM) digital compare filter offset.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]windowThe window

Definition at line 1059 of file pwm.c.

References _PWM_Obj_::DCFWINDOW.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]inputComparator input to change
[in]inputSelInput selection for designated input

Definition at line 1071 of file pwm.c.

References _PWM_Obj_::DCTRIPSEL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.

void PWM_setHighSpeedClkDiv ( PWM_Handle  pwmHandle,
const PWM_HspClkDiv_e  clkDiv 
)

Sets the pulse width modulation (PWM) high speed clock divisor.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]clkDivThe clock divisor

Definition at line 1175 of file pwm.c.

References PWM_TBCTL_HSPCLKDIV_BITS, and _PWM_Obj_::TBCTL.

void PWM_setHrControlMode ( PWM_Handle  pwmHandle,
const PWM_HrControlMode_e  controlMode 
)

Set the High Resolution Control Mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]edgeModeThe control mode HRPWM should use

Definition at line 558 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRCNFG, and PWM_HRCNFG_CTLMODE_BITS.

void PWM_setHrEdgeMode ( PWM_Handle  pwmHandle,
const PWM_HrEdgeMode_e  edgeMode 
)

Set the High Resolution Edge Mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]edgeModeThe edge mode HRPWM should use

Definition at line 574 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRCNFG, and PWM_HRCNFG_EDGMODE_BITS.

void PWM_setHrShadowMode ( PWM_Handle  pwmHandle,
const PWM_HrShadowMode_e  shadowMode 
)

Set the High Resolution Shadow Load Mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]edgeModeThe shadow load mode HRPWM should use

Definition at line 590 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, _PWM_Obj_::HRCNFG, and PWM_HRCNFG_HRLOAD_BITS.

void PWM_setIntMode ( PWM_Handle  pwmHandle,
const PWM_IntMode_e  intMode 
)

Sets the pulse width modulation (PWM) interrupt mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]intModeThe interrupt mode

Definition at line 1190 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_INTSEL_BITS.

void PWM_setIntPeriod ( PWM_Handle  pwmHandle,
const PWM_IntPeriod_e  intPeriod 
)

Sets the pulse width modulation (PWM) interrupt period.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]intPeriodThe interrupt period

Definition at line 1205 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_INTPRD_BITS.

void PWM_setLoadMode_CmpA ( PWM_Handle  pwmHandle,
const PWM_LoadMode_e  loadMode 
)

Sets the pulse width modulation (PWM) load mode for CMPA.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]loadModeThe load mode

Definition at line 1220 of file pwm.c.

References _PWM_Obj_::CMPCTL, and PWM_CMPCTL_LOADAMODE_BITS.

void PWM_setLoadMode_CmpB ( PWM_Handle  pwmHandle,
const PWM_LoadMode_e  loadMode 
)

Sets the pulse width modulation (PWM) load mode for CMPB.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]loadModeThe load mode

Definition at line 1235 of file pwm.c.

References _PWM_Obj_::CMPCTL, and PWM_CMPCTL_LOADBMODE_BITS.

static void PWM_setOneShotTrip ( PWM_Handle  pwmHandle)
inlinestatic

Sets the pulse width modulation (PWM) one shot trip.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 1577 of file pwm.h.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZFRC_OST_BITS, and _PWM_Obj_::TZFRC.

void PWM_setPeriod ( PWM_Handle  pwmHandle,
const uint16_t  period 
)

Sets the pulse width modulation (PWM) period.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]periodThe period

Definition at line 1250 of file pwm.c.

References _PWM_Obj_::TBPRD.

void PWM_setPeriodHr ( PWM_Handle  pwmHandle,
const uint16_t  period 
)

Sets the pulse width modulation (PWM) high resolution period.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]periodThe period

Definition at line 1262 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _PWM_Obj_::TBPRDHR.

void PWM_setPeriodLoad ( PWM_Handle  pwmHandle,
const PWM_PeriodLoad_e  periodLoad 
)

Sets the pulse width modulation (PWM) period load mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]periodLoadThe period load mode

Definition at line 1303 of file pwm.c.

References PWM_TBCTL_PRDLD_BITS, and _PWM_Obj_::TBCTL.

void PWM_setPhase ( PWM_Handle  pwmHandle,
const uint16_t  phase 
)

Sets the pulse width modulation (PWM) phase.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]phaseThe phase

Definition at line 1277 of file pwm.c.

References _PWM_Obj_::TBPHS.

void PWM_setPhaseDir ( PWM_Handle  pwmHandle,
const PWM_PhaseDir_e  phaseDir 
)

Sets the pulse width modulation (PWM) phase direction.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]phaseDirThe phase direction

Definition at line 1288 of file pwm.c.

References PWM_TBCTL_PHSDIR_BITS, and _PWM_Obj_::TBCTL.

void PWM_setRunMode ( PWM_Handle  pwmHandle,
const PWM_RunMode_e  runMode 
)

Sets the pulse width modulation (PWM) run mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]runModeThe run mode

Definition at line 1318 of file pwm.c.

References PWM_TBCTL_FREESOFT_BITS, and _PWM_Obj_::TBCTL.

void PWM_setShadowMode_CmpA ( PWM_Handle  pwmHandle,
const PWM_ShadowMode_e  shadowMode 
)

Sets the pulse width modulation (PWM) shadow mode for CMPA.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]shadowModeThe shadow mode

Definition at line 1393 of file pwm.c.

References _PWM_Obj_::CMPCTL, and PWM_CMPCTL_SHDWAMODE_BITS.

void PWM_setShadowMode_CmpB ( PWM_Handle  pwmHandle,
const PWM_ShadowMode_e  shadowMode 
)

Sets the pulse width modulation (PWM) shadow mode for CMPB.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]shadowModeThe shadow mode

Definition at line 1408 of file pwm.c.

References _PWM_Obj_::CMPCTL, and PWM_CMPCTL_SHDWBMODE_BITS.

void PWM_setSocAPeriod ( PWM_Handle  pwmHandle,
const PWM_SocPeriod_e  intPeriod 
)

Sets the pulse width modulation (PWM) start of conversion (SOC) A interrupt period.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]intPeriodThe interrupt period

Definition at line 1333 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_SOCAPRD_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pulseSrcThe interrupt pulse source

Definition at line 1348 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCASEL_BITS.

void PWM_setSocBPeriod ( PWM_Handle  pwmHandle,
const PWM_SocPeriod_e  intPeriod 
)

Sets the pulse width modulation (PWM) start of conversion (SOC) B interrupt period.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]intPeriodThe interrupt period

Definition at line 1363 of file pwm.c.

References _PWM_Obj_::ETPS, and PWM_ETPS_SOCBPRD_BITS.

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.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pulseSrcThe interrupt pulse source

Definition at line 1378 of file pwm.c.

References _PWM_Obj_::ETSEL, and PWM_ETSEL_SOCBSEL_BITS.

void PWM_setSwSync ( PWM_Handle  pwmHandle)

Sets the pulse width modulation (PWM) software sync.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle

Definition at line 1423 of file pwm.c.

References _PWM_Obj_::TBCTL.

void PWM_setSyncMode ( PWM_Handle  pwmHandle,
const PWM_SyncMode_e  syncMode 
)

Sets the pulse width modulation (PWM) sync mode.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]syncModeThe sync mode

Definition at line 1435 of file pwm.c.

References PWM_TBCTL_SYNCOSEL_BITS, and _PWM_Obj_::TBCTL.

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 Output A Event 1 (DCAEVT1)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneEventThe trip zone digital compare event

Definition at line 1449 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZDCSEL_DCAEVT1_BITS, and _PWM_Obj_::TZDCSEL.

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 Output A Event 2 (DCAEVT2)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneEventThe trip zone digital compare event

Definition at line 1468 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZDCSEL_DCAEVT2_BITS, and _PWM_Obj_::TZDCSEL.

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 Output B Event 1 (DCBEVT1)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneEventThe trip zone digital compare event

Definition at line 1487 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZDCSEL_DCBEVT1_BITS, and _PWM_Obj_::TZDCSEL.

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 Output B Event 2 (DCBEVT2)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneEventThe trip zone digital compare event

Definition at line 1506 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZDCSEL_DCBEVT2_BITS, and _PWM_Obj_::TZDCSEL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1525 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_DCAEVT1_BITS, and _PWM_Obj_::TZCTL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1544 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_DCAEVT2_BITS, and _PWM_Obj_::TZCTL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1563 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_DCBEVT1_BITS, and _PWM_Obj_::TZCTL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1582 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_DCBEVT2_BITS, and _PWM_Obj_::TZCTL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1601 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_TZA_BITS, and _PWM_Obj_::TZCTL.

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)

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]tripZoneStateThe trip zone state

Definition at line 1620 of file pwm.c.

References DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, PWM_TZCTL_TZB_BITS, and _PWM_Obj_::TZCTL.

static void PWM_write_CmpA ( PWM_Handle  pwmHandle,
const uint16_t  pwmData 
)
inlinestatic

Writes the pulse width modulation (PWM) data value to the Counter Compare A hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pwmDataThe PWM data value

Definition at line 1731 of file pwm.h.

References _PWM_Obj_::CMPA.

static void PWM_write_CmpB ( PWM_Handle  pwmHandle,
const uint16_t  pwmData 
)
inlinestatic

Writes the pulse width modulation (PWM) data value to the Counter Compare B hardware.

Parameters
[in]pwmHandleThe pulse width modulation (PWM) object handle
[in]pwmDataThe PWM data value

Definition at line 1768 of file pwm.h.

References _PWM_Obj_::CMPB.