Loading...
Searching...
No Matches
pwm_conf_t Struct Reference

PWM device configuration. More...

Detailed Description

PWM device configuration.

PWM device configuration data structure.

PWM configuration.

Definition at line 323 of file periph_cpu_common.h.

#include <periph_cpu.h>

Data Fields

mini_timer_tdev
 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_tchannel
 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_tchan
 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.
 

Field Documentation

◆ af [1/2]

uint8_t pwm_conf_t::af

alternate function mapping

Definition at line 234 of file periph_conf.h.

◆ af [2/2]

gpio_af_t pwm_conf_t::af

alternate function used

Definition at line 485 of file periph_cpu.h.

◆ bus

uint8_t pwm_conf_t::bus

APB bus.

Definition at line 486 of file periph_cpu.h.

◆ chan [1/2]

pwm_chan_t pwm_conf_t::chan

channel mapping set to {GPIO_UNDEF, 0} if not used

Definition at line 483 of file periph_cpu.h.

◆ chan [2/2]

const pwm_conf_chan_t* pwm_conf_t::chan

channel configuration

Definition at line 431 of file periph_cpu_common.h.

◆ chan_numof

uint8_t pwm_conf_t::chan_numof

number of channels

number of actually configured channels

Definition at line 432 of file periph_cpu_common.h.

◆ channel

const pwm_chan_conf_t* pwm_conf_t::channel

pointer to first channel config

Definition at line 483 of file periph_cpu.h.

◆ channels

uint8_t pwm_conf_t::channels

the number of available channels

Definition at line 482 of file periph_cpu.h.

◆ cmu

CMU_Clock_TypeDef pwm_conf_t::cmu

the device CMU channel

Definition at line 480 of file periph_cpu.h.

◆ dev [1/4]

mini_timer_t* pwm_conf_t::dev

Timer used.

Definition at line 324 of file periph_cpu_common.h.

◆ dev [2/4]

TIMER_TypeDef* pwm_conf_t::dev

TIMER device used.

Definition at line 479 of file periph_cpu.h.

◆ dev [3/4]

TIMER_Type* pwm_conf_t::dev

Timer used.

Definition at line 478 of file periph_cpu.h.

◆ dev [4/4]

TIM_TypeDef* pwm_conf_t::dev

Timer used.

Definition at line 57 of file cpu_pwm.h.

◆ div

timer_div_t pwm_conf_t::div

Timer divider mask.

Definition at line 326 of file periph_cpu_common.h.

◆ ftm_chan

uint8_t pwm_conf_t::ftm_chan

the actual FTM channel used

Definition at line 235 of file periph_conf.h.

◆ gclk_src

uint8_t pwm_conf_t::gclk_src

GCLK source which clocks TIMER.

Definition at line 433 of file periph_cpu_common.h.

◆ irq

IRQn_Type pwm_conf_t::irq

the devices base IRQ channel

Definition at line 481 of file periph_cpu.h.

◆ pin

gpio_t pwm_conf_t::pin

GPIO pin used, set to GPIO_UNDEF.

Definition at line 233 of file periph_conf.h.

◆ pin_ch

gpio_t pwm_conf_t::pin_ch[2]

Output Pins.

Definition at line 325 of file periph_cpu_common.h.

◆ pwm_slice

uint8_t pwm_conf_t::pwm_slice

PWM slice instance, must be < to PWM_SLICE_NUMOF.

Definition at line 424 of file periph_cpu.h.

◆ rcc_mask

uint32_t pwm_conf_t::rcc_mask

bit in clock enable register

Definition at line 58 of file cpu_pwm.h.

◆ rcu_mask

uint32_t pwm_conf_t::rcu_mask

bit in clock enable register

Definition at line 479 of file periph_cpu.h.

◆ remap

uint32_t pwm_conf_t::remap

AFIO remap mask to route periph to other pins (or zero, if not needed)

Definition at line 480 of file periph_cpu.h.

◆ tim

tc_tcc_cfg_t pwm_conf_t::tim

timer configuration

Definition at line 430 of file periph_cpu_common.h.

◆ tpm

TPM_Type* pwm_conf_t::tpm

used TPM

Definition at line 231 of file periph_conf.h.

◆ tpm_num

uint8_t pwm_conf_t::tpm_num

FTM number used.

Definition at line 238 of file periph_conf.h.


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