HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
hf_stm32_pwm_config_t Struct Reference

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)
 

Detailed Description

PWM configuration for STM32.

Constructor & Destructor Documentation

◆ hf_stm32_pwm_config_t() [1/2]

hf_stm32_pwm_config_t::hf_stm32_pwm_config_t ( )
inlinenoexcept

◆ hf_stm32_pwm_config_t() [2/2]

hf_stm32_pwm_config_t::hf_stm32_pwm_config_t ( TIM_HandleTypeDef * handle,
hf_u8_t channels = 1 )
inlineexplicitnoexcept

Member Data Documentation

◆ complementary_output

bool hf_stm32_pwm_config_t::complementary_output

Enable complementary outputs (TIMx_CHxN)

◆ dead_time_ns

hf_u16_t hf_stm32_pwm_config_t::dead_time_ns

Dead-time for complementary pairs (ns)

◆ hal_handle

TIM_HandleTypeDef* hf_stm32_pwm_config_t::hal_handle

Pointer to CubeMX-generated TIM handle.

◆ num_channels

hf_u8_t hf_stm32_pwm_config_t::num_channels

Number of active channels (1-4)


The documentation for this struct was generated from the following file: