libxr 1.0
Want to be the best embedded framework
|
Public Member Functions | |
STM32PWM (TIM_HandleTypeDef *htim, uint32_t channel) | |
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 输出。 | |
Private Attributes | |
TIM_HandleTypeDef * | htim_ |
uint32_t | channel_ |
Definition at line 12 of file stm32_pwm.hpp.
|
inline |
Definition at line 15 of file stm32_pwm.hpp.
|
inlineoverridevirtual |
Disables the PWM output. 禁用 PWM 输出。
Implements LibXR::PWM.
Definition at line 177 of file stm32_pwm.hpp.
|
inlineoverridevirtual |
Enables the PWM output. 启用 PWM 输出。
Implements LibXR::PWM.
Definition at line 168 of file stm32_pwm.hpp.
|
inlineoverridevirtual |
Configures the PWM settings. 配置 PWM 参数。
Implements LibXR::PWM.
Definition at line 36 of file stm32_pwm.hpp.
|
inlineoverridevirtual |
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 17 of file stm32_pwm.hpp.
|
private |
Definition at line 188 of file stm32_pwm.hpp.
|
private |
Definition at line 187 of file stm32_pwm.hpp.