|
libxr
1.0
Want to be the best embedded framework
|
Public Member Functions | |
| STM32PWM (TIM_HandleTypeDef *htim, uint32_t channel, bool complementary=false) | |
| ErrorCode | SetDutyCycle (float value) override |
| Sets the duty cycle of the PWM signal. 设置 PWM 信号的占空比。 | |
| ErrorCode | SetConfig (Configuration config) override |
| Configures the PWM settings. 配置 PWM 参数。 | |
| ErrorCode | Enable () override |
| Enables the PWM output. 启用 PWM 输出。 | |
| ErrorCode | Disable () override |
| Disables the PWM output. 禁用 PWM 输出。 | |
Public Member Functions inherited from LibXR::PWM | |
Private Attributes | |
| TIM_HandleTypeDef * | htim_ |
| uint32_t | channel_ |
| bool | complementary_ |
Definition at line 12 of file stm32_pwm.hpp.
| STM32PWM::STM32PWM | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | channel, | ||
| bool | complementary = false ) |
Definition at line 7 of file stm32_pwm.cpp.
|
overridevirtual |
Disables the PWM output. 禁用 PWM 输出。
Implements LibXR::PWM.
Definition at line 181 of file stm32_pwm.cpp.
|
overridevirtual |
Enables the PWM output. 启用 PWM 输出。
Implements LibXR::PWM.
Definition at line 162 of file stm32_pwm.cpp.
|
overridevirtual |
Configures the PWM settings. 配置 PWM 参数。
Implements LibXR::PWM.
Definition at line 31 of file stm32_pwm.cpp.
|
overridevirtual |
Sets the duty cycle of the PWM signal. 设置 PWM 信号的占空比。
| value | The duty cycle as a floating-point value (0.0 to 1.0). 占空比,浮点值(0.0 到 1.0)。 |
Implements LibXR::PWM.
Definition at line 12 of file stm32_pwm.cpp.
|
private |
Definition at line 27 of file stm32_pwm.hpp.
|
private |
Definition at line 28 of file stm32_pwm.hpp.
|
private |
Definition at line 26 of file stm32_pwm.hpp.