Go to the source code of this file.
|
| void | pwmInitTimer (TIM_HandleTypeDef *timer, uint32_t channel, uint32_t period, uint32_t prescaler) |
| |
| void | setPWM_HAL (uint32_t value, TIM_HandleTypeDef *timer, uint32_t channel, uint32_t period) |
| |
◆ ModePWM_DRV
| Enumerator |
|---|
| RC_PWM | |
| CENTERED_PWM | |
| PWM_DIR | |
| PWM_DUAL | |
Definition at line 24 of file MotorPWM.h.
◆ SpeedPWM_DRV
| Enumerator |
|---|
| LOW | |
| MID | |
| HIGH | |
| VERYHIGH | |
Definition at line 25 of file MotorPWM.h.
◆ pwmInitTimer()
| void pwmInitTimer |
( |
TIM_HandleTypeDef * | timer, |
|
|
uint32_t | channel, |
|
|
uint32_t | period, |
|
|
uint32_t | prescaler ) |
◆ setPWM_HAL()
| void setPWM_HAL |
( |
uint32_t | value, |
|
|
TIM_HandleTypeDef * | timer, |
|
|
uint32_t | channel, |
|
|
uint32_t | period ) |
Changes the pwm value of the timer via HAL
Definition at line 321 of file MotorPWM.cpp.
◆ TIM_PWM
| TIM_HandleTypeDef TIM_PWM |
|
extern |