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 More... | |
| 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. | |
| uint8_t af | |
| alternate function mapping | |
| uint8_t ftm_chan | |
| the actual FTM channel used | |
| } | chan [PWM_CHAN_MAX] |
| logical channel configuration | |
| uint8_t | tpm_num |
| FTM number used. | |
| 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.