PWM device configuration. More...
PWM device configuration.
PWM device configuration data structure.
PWM configuration.
Definition at line 319 of file periph_cpu_common.h.
#include <periph_cpu.h>
Data Fields | ||
| mini_timer_t * | dev | |
| Timer used. | ||
| gpio_t | pin_ch [2] | |
| Output Pins. | ||
| timer_div_t | div | |
| Timer divider mask. | ||
| TIMER_TypeDef * | dev | |
| TIMER device used. | ||
| CMU_Clock_TypeDef | cmu | |
| the device CMU channel | ||
| IRQn_Type | irq | |
| the devices base IRQ channel | ||
| uint8_t | channels | |
| the number of available channels | ||
| const pwm_chan_conf_t * | channel | |
| pointer to first channel config | ||
| TIMER_Type * | dev | |
| Timer used. | ||
| uint32_t | rcu_mask | |
| bit in clock enable register | ||
| uint32_t | remap | |
| AFIO remap mask to route periph to other pins (or zero, if not needed) | ||
| pwm_chan_t | chan [TIMER_CHANNEL_NUMOF] | |
| channel mapping set to {GPIO_UNDEF, 0} if not used | ||
| gpio_af_t | af | |
| alternate function used | ||
| uint8_t | bus | |
| APB bus. | ||
| uint8_t | pwm_slice | |
| PWM slice instance, must be < to PWM_SLICE_NUMOF. | ||
| tc_tcc_cfg_t | tim | |
| timer configuration | ||
| const pwm_conf_chan_t * | chan | |
| channel configuration | ||
| uint8_t | chan_numof | |
| number of channels | ||
| uint8_t | gclk_src | |
| GCLK source which clocks TIMER. | ||
| TIM_TypeDef * | dev | |
| Timer used. | ||
| uint32_t | rcc_mask | |
| bit in clock enable register | ||
| TPM_Type * | tpm | |
| used TPM | ||
| struct { | ||
| gpio_t pin | ||
| GPIO pin used, set to GPIO_UNDEF. More... | ||
| uint8_t af | ||
| alternate function mapping More... | ||
| uint8_t ftm_chan | ||
| the actual FTM channel used More... | ||
| } | chan [PWM_CHAN_MAX] | |
| logical channel configuration | ||
| uint8_t | tpm_num | |
| FTM number used. | ||
| uint8_t pwm_conf_t::af |
alternate function mapping
Definition at line 230 of file periph_conf.h.
| gpio_af_t pwm_conf_t::af |
alternate function used
Definition at line 481 of file periph_cpu.h.
| uint8_t pwm_conf_t::bus |
APB bus.
Definition at line 482 of file periph_cpu.h.
| pwm_chan_t pwm_conf_t::chan |
channel mapping set to {GPIO_UNDEF, 0} if not used
Definition at line 479 of file periph_cpu.h.
| const pwm_conf_chan_t* pwm_conf_t::chan |
channel configuration
Definition at line 427 of file periph_cpu_common.h.
| uint8_t pwm_conf_t::chan_numof |
number of channels
number of actually configured channels
Definition at line 428 of file periph_cpu_common.h.
| const pwm_chan_conf_t* pwm_conf_t::channel |
pointer to first channel config
Definition at line 478 of file periph_cpu.h.
| uint8_t pwm_conf_t::channels |
the number of available channels
Definition at line 477 of file periph_cpu.h.
| CMU_Clock_TypeDef pwm_conf_t::cmu |
the device CMU channel
Definition at line 475 of file periph_cpu.h.
| mini_timer_t* pwm_conf_t::dev |
Timer used.
Definition at line 320 of file periph_cpu_common.h.
| TIMER_TypeDef* pwm_conf_t::dev |
TIMER device used.
Definition at line 474 of file periph_cpu.h.
| TIMER_Type* pwm_conf_t::dev |
Timer used.
Definition at line 474 of file periph_cpu.h.
| timer_div_t pwm_conf_t::div |
Timer divider mask.
Definition at line 322 of file periph_cpu_common.h.
| uint8_t pwm_conf_t::ftm_chan |
the actual FTM channel used
Definition at line 231 of file periph_conf.h.
| uint8_t pwm_conf_t::gclk_src |
GCLK source which clocks TIMER.
Definition at line 429 of file periph_cpu_common.h.
| IRQn_Type pwm_conf_t::irq |
the devices base IRQ channel
Definition at line 476 of file periph_cpu.h.
| gpio_t pwm_conf_t::pin |
GPIO pin used, set to GPIO_UNDEF.
Definition at line 229 of file periph_conf.h.
| gpio_t pwm_conf_t::pin_ch[2] |
Output Pins.
Definition at line 321 of file periph_cpu_common.h.
| uint8_t pwm_conf_t::pwm_slice |
PWM slice instance, must be < to PWM_SLICE_NUMOF.
Definition at line 420 of file periph_cpu.h.
| uint32_t pwm_conf_t::rcu_mask |
bit in clock enable register
Definition at line 475 of file periph_cpu.h.
| uint32_t pwm_conf_t::remap |
AFIO remap mask to route periph to other pins (or zero, if not needed)
Definition at line 476 of file periph_cpu.h.
| tc_tcc_cfg_t pwm_conf_t::tim |
timer configuration
Definition at line 426 of file periph_cpu_common.h.
| TPM_Type* pwm_conf_t::tpm |
used TPM
Definition at line 227 of file periph_conf.h.
| uint8_t pwm_conf_t::tpm_num |
FTM number used.
Definition at line 234 of file periph_conf.h.