Loading...
Searching...
No Matches
qdec_conf_t Struct Reference

Quadrature decoder configuration struct. More...

Detailed Description

Quadrature decoder configuration struct.

QDEC configuration.

Definition at line 368 of file periph_cpu_common.h.

#include <periph_cpu_common.h>

Data Fields

gpio_t a_pin
 GPIO Pin for phase A.
 
gpio_t b_pin
 GPIO Pin for phase B.
 
gpio_t led_pin
 LED GPIO, GPIO_UNDEF to disable.
 
uint8_t sample_period
 Sample period used, e.g.
 
bool debounce_filter
 Enable/disable debounce filter.
 
TIM_TypeDef * dev
 Timer used.
 
uint32_t max
 Maximum counter value.
 
uint32_t rcc_mask
 bit in clock enable register
 
qdec_chan_t chan [QDEC_CHAN]
 channel mapping, set to {GPIO_UNDEF, 0} if not used
 
gpio_af_t af
 alternate function used
 
uint8_t bus
 APB bus.
 
uint8_t irqn
 global IRQ channel
 

Field Documentation

◆ a_pin

gpio_t qdec_conf_t::a_pin

GPIO Pin for phase A.

Definition at line 369 of file periph_cpu_common.h.

◆ af

gpio_af_t qdec_conf_t::af

alternate function used

Definition at line 59 of file cpu_qdec.h.

◆ b_pin

gpio_t qdec_conf_t::b_pin

GPIO Pin for phase B.

Definition at line 370 of file periph_cpu_common.h.

◆ bus

uint8_t qdec_conf_t::bus

APB bus.

Definition at line 61 of file cpu_qdec.h.

◆ chan

qdec_chan_t qdec_conf_t::chan[QDEC_CHAN]

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

Definition at line 53 of file cpu_qdec.h.

◆ debounce_filter

bool qdec_conf_t::debounce_filter

Enable/disable debounce filter.

Definition at line 373 of file periph_cpu_common.h.

◆ dev

TIM_TypeDef* qdec_conf_t::dev

Timer used.

Definition at line 50 of file cpu_qdec.h.

◆ irqn

uint8_t qdec_conf_t::irqn

global IRQ channel

Definition at line 62 of file cpu_qdec.h.

◆ led_pin

gpio_t qdec_conf_t::led_pin

LED GPIO, GPIO_UNDEF to disable.

Definition at line 371 of file periph_cpu_common.h.

◆ max

uint32_t qdec_conf_t::max

Maximum counter value.

Definition at line 51 of file cpu_qdec.h.

◆ rcc_mask

uint32_t qdec_conf_t::rcc_mask

bit in clock enable register

Definition at line 52 of file cpu_qdec.h.

◆ sample_period

uint8_t qdec_conf_t::sample_period

Sample period used, e.g.

QDEC_SAMPLEPER_SAMPLEPER_128us

Definition at line 372 of file periph_cpu_common.h.


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