no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stm32_pwm_init_param Struct Reference

Structure holding the STM32 PWM parameters. More...

#include <stm32_pwm.h>

Collaboration diagram for stm32_pwm_init_param:

Public Attributes

void * htimer
 
enum stm32_pwm_timer pwm_timer
 
uint32_t prescaler
 
bool timer_autoreload
 
enum TimOCMode mode
 
uint32_t timer_chn
 
bool complementary_channel
 
uint32_t(* get_timer_clock )(void)
 
uint32_t clock_divider
 
enum stm32_pwm_slave_mode slave_mode
 
enum stm32_pwm_trigger trigger_source
 
enum stm32_pwm_trigger_out trigger_output
 
bool onepulse_enable
 
uint32_t repetitions
 
bool dma_enable
 
struct no_os_callback_desc timer_callback
 

Detailed Description

Structure holding the STM32 PWM parameters.

Member Data Documentation

◆ clock_divider

uint32_t stm32_pwm_init_param::clock_divider

Get timer source clock divider

◆ complementary_channel

bool stm32_pwm_init_param::complementary_channel

Complementary channel

◆ dma_enable

bool stm32_pwm_init_param::dma_enable

◆ get_timer_clock

uint32_t(* stm32_pwm_init_param::get_timer_clock) (void)

Get timer source clock function

◆ htimer

void* stm32_pwm_init_param::htimer

PWM Timer Handle

◆ mode

enum TimOCMode stm32_pwm_init_param::mode

Timer output compare Mode

◆ onepulse_enable

bool stm32_pwm_init_param::onepulse_enable

◆ prescaler

uint32_t stm32_pwm_init_param::prescaler

Timer prescaler (0 to 0xFFFF)

◆ pwm_timer

enum stm32_pwm_timer stm32_pwm_init_param::pwm_timer

Type of timer used for PWM

◆ repetitions

uint32_t stm32_pwm_init_param::repetitions

◆ slave_mode

enum stm32_pwm_slave_mode stm32_pwm_init_param::slave_mode

Slave mode

◆ timer_autoreload

bool stm32_pwm_init_param::timer_autoreload

Timer autoreload enable

◆ timer_callback

struct no_os_callback_desc stm32_pwm_init_param::timer_callback

Timer callback

◆ timer_chn

uint32_t stm32_pwm_init_param::timer_chn

PWM timer channel

◆ trigger_output

enum stm32_pwm_trigger_out stm32_pwm_init_param::trigger_output

Trigger out selection

◆ trigger_source

enum stm32_pwm_trigger stm32_pwm_init_param::trigger_source

Trigger source selection


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