| RTOS_MSPM0 1.1 ECE445M starter code

PWMA0.h
Go to the documentation of this file.
1
30 /*
31 * Derived from timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang
32
33 */
34
35 #ifndef __PWMA0_H__
36 #define __PWMA0_H__
37
41 #define PWMUSELFCLK 2
45 #define PWMUSEMFCLK 4
49 #define PWMUSEBUSCLK 8
76 void PWMA0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
77 uint32_t period, uint32_t duty0, uint32_t duty1);
87 void PWMA0_SetDuty(uint32_t duty0, uint32_t duty1);
88
97 void PWMA0_Forward(uint32_t duty0);
98
107 void PWMA0_Backward(uint32_t duty1);
108
117 void PWMA0_Break(void);
118
127 void PWMA0_Coast(void);
128
129 #endif // __PWMA0_H__
PWMA0_Break
void PWMA0_Break(void)
Motor break.
PWMA0_SetDuty
void PWMA0_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.
PWMA0_Backward
void PWMA0_Backward(uint32_t duty1)
Motor backward.
PWMA0_Forward
void PWMA0_Forward(uint32_t duty0)
Motor forward.
PWMA0_Coast
void PWMA0_Coast(void)
Motor coast.
PWMA0_Init
void PWMA0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWMA0.