pwm_conf_t Struct Reference

PWM configuration. More...

Detailed Description

PWM configuration.

PWM device configuration data structure.

PWM configuration options.

PWM device configuration.

Each device supports up to 4 channels. If you want to use less than 4 channels, just set the unused pins to GPIO_UNDEF.

define unused pins only from right to left, so the defined channels always start with channel 0 to x and the undefined ones are from x+1 to PWM_CHANNELS.

Definition at line 142 of file atmega_common/include/periph_cpu_common.h.

#include </tmp/RIOT/cpu/atmega_common/include/periph_cpu_common.h>

Data Fields

 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
NRF_PWM_Type * dev
 PWM device descriptor.
uint32_t pin [PWM_CHANNELS]
 PWM out pins.
Tcc * dev
 TCC device to use.
pwm_conf_chan_t chan [3]
 channel configuration
TIM_TypeDef * dev
 Timer used.
uint32_t rcc_mask
 bit in clock enable register
pwm_chan_t chan [TIMER_CHAN]
 channel mapping, set to {GPIO_UNDEF, 0} if not used
gpio_af_t af
 alternate function used
uint8_t bus
 APB bus.

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