MSP432E4 DriverLib API Guide  1.11.00.03
Macros | Functions
pwm.c File Reference
#include <ti/devices/msp432e4/inc/msp432e411y.h>
#include "types.h"
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_pwm.h"
#include "inc/hw_sysctl.h"
#include "debug.h"
#include "interrupt.h"
#include "pwm.h"
Include dependency graph for pwm.c:

Macros

#define PWM_GEN_BADDR(_mod_, _gen_)   ((_mod_) + (_gen_))
 
#define PWM_GEN_EXT_BADDR(_mod_, _gen_)
 
#define PWM_OUT_BADDR(_mod_, _out_)   ((_mod_) + ((_out_) & 0xFFFFFFC0))
 
#define PWM_IS_OUTPUT_ODD(_out_)   ((_out_) & 0x00000001)
 

Functions

void PWMGenConfigure (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Config)
 
void PWMGenPeriodSet (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Period)
 
uint32_t PWMGenPeriodGet (uint32_t ui32Base, uint32_t ui32Gen)
 
void PWMGenEnable (uint32_t ui32Base, uint32_t ui32Gen)
 
void PWMGenDisable (uint32_t ui32Base, uint32_t ui32Gen)
 
void PWMPulseWidthSet (uint32_t ui32Base, uint32_t ui32PWMOut, uint32_t ui32Width)
 
uint32_t PWMPulseWidthGet (uint32_t ui32Base, uint32_t ui32PWMOut)
 
void PWMDeadBandEnable (uint32_t ui32Base, uint32_t ui32Gen, uint16_t ui16Rise, uint16_t ui16Fall)
 
void PWMDeadBandDisable (uint32_t ui32Base, uint32_t ui32Gen)
 
void PWMSyncUpdate (uint32_t ui32Base, uint32_t ui32GenBits)
 
void PWMSyncTimeBase (uint32_t ui32Base, uint32_t ui32GenBits)
 
void PWMOutputState (uint32_t ui32Base, uint32_t ui32PWMOutBits, bool bEnable)
 
void PWMOutputInvert (uint32_t ui32Base, uint32_t ui32PWMOutBits, bool bInvert)
 
void PWMOutputFaultLevel (uint32_t ui32Base, uint32_t ui32PWMOutBits, bool bDriveHigh)
 
void PWMOutputFault (uint32_t ui32Base, uint32_t ui32PWMOutBits, bool bFaultSuppress)
 
void PWMGenIntRegister (uint32_t ui32Base, uint32_t ui32Gen, void(*pfnIntHandler)(void))
 
void PWMGenIntUnregister (uint32_t ui32Base, uint32_t ui32Gen)
 
void PWMFaultIntRegister (uint32_t ui32Base, void(*pfnIntHandler)(void))
 
void PWMFaultIntUnregister (uint32_t ui32Base)
 
void PWMGenIntTrigEnable (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32IntTrig)
 
void PWMGenIntTrigDisable (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32IntTrig)
 
uint32_t PWMGenIntStatus (uint32_t ui32Base, uint32_t ui32Gen, bool bMasked)
 
void PWMGenIntClear (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Ints)
 
void PWMIntEnable (uint32_t ui32Base, uint32_t ui32GenFault)
 
void PWMIntDisable (uint32_t ui32Base, uint32_t ui32GenFault)
 
uint32_t PWMIntStatus (uint32_t ui32Base, bool bMasked)
 
void PWMFaultIntClearExt (uint32_t ui32Base, uint32_t ui32FaultInts)
 
void PWMGenFaultConfigure (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32MinFaultPeriod, uint32_t ui32FaultSenses)
 
void PWMGenFaultTriggerSet (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group, uint32_t ui32FaultTriggers)
 
uint32_t PWMGenFaultTriggerGet (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group)
 
uint32_t PWMGenFaultStatus (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group)
 
void PWMGenFaultClear (uint32_t ui32Base, uint32_t ui32Gen, uint32_t ui32Group, uint32_t ui32FaultTriggers)
 
void PWMClockSet (uint32_t ui32Base, uint32_t ui32Config)
 
uint32_t PWMClockGet (uint32_t ui32Base)
 
void PWMOutputUpdateMode (uint32_t ui32Base, uint32_t ui32PWMOutBits, uint32_t ui32Mode)
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale