PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pi_pwm_conf Struct Reference

PWM configuration structure. More...

Data Fields

pi_device_e device
 
uint8_t pwm_id
 
pi_pwm_channel_e ch_id
 
uint8_t input_src
 
pi_pwm_timer_conf_e timer_conf
 
uint8_t prescaler
 

Description

This structure holds PWM configuration. It contains the id of PWM used. It should be kept until closing device.

Field Documentation

pi_pwm_channel_e pi_pwm_conf::ch_id

PWM channel ID.

pi_device_e pi_pwm_conf::device

Device type.

uint8_t pi_pwm_conf::input_src

Timer input source.

uint8_t pi_pwm_conf::prescaler

Prescaler value.

uint8_t pi_pwm_conf::pwm_id

PWM ID.

pi_pwm_timer_conf_e pi_pwm_conf::timer_conf

Event trigger, clock source, counting config.