|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
PWM configuration for STM32. More...
#include <StmTypes.h>
Public Member Functions | |
| hf_stm32_pwm_config_t () noexcept | |
| hf_stm32_pwm_config_t (TIM_HandleTypeDef *handle, hf_u8_t channels=1) noexcept | |
Public Attributes | |
| TIM_HandleTypeDef * | hal_handle |
| Pointer to CubeMX-generated TIM handle. | |
| hf_u8_t | num_channels |
| Number of active channels (1-4) | |
| bool | complementary_output |
| Enable complementary outputs (TIMx_CHxN) | |
| hf_u16_t | dead_time_ns |
| Dead-time for complementary pairs (ns) | |
PWM configuration for STM32.
|
inlinenoexcept |
|
inlineexplicitnoexcept |
| bool hf_stm32_pwm_config_t::complementary_output |
Enable complementary outputs (TIMx_CHxN)
| hf_u16_t hf_stm32_pwm_config_t::dead_time_ns |
Dead-time for complementary pairs (ns)
| TIM_HandleTypeDef* hf_stm32_pwm_config_t::hal_handle |
Pointer to CubeMX-generated TIM handle.
| hf_u8_t hf_stm32_pwm_config_t::num_channels |
Number of active channels (1-4)