MotorWare f2806x Driver API Documentation
Data Structures | Macros | Typedefs | Enumerations | Functions
pwm.h File Reference

Contains public interface to various functions related to the pulse width modulation (PWM) object. More...

#include "sw/modules/types/src/types.h"
#include "sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h"

Go to the source code of this file.

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

Contains public interface to various functions related to the pulse width modulation (PWM) object.

(C) Copyright 2015, Texas Instruments, Inc.

Definition in file pwm.h.