Quadrature decoder configuration struct. More...
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 | |
gpio_t qdec_conf_t::a_pin |
GPIO Pin for phase A.
Definition at line 369 of file periph_cpu_common.h.
gpio_af_t qdec_conf_t::af |
alternate function used
Definition at line 59 of file cpu_qdec.h.
gpio_t qdec_conf_t::b_pin |
GPIO Pin for phase B.
Definition at line 370 of file periph_cpu_common.h.
uint8_t qdec_conf_t::bus |
APB bus.
Definition at line 61 of file cpu_qdec.h.
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.
bool qdec_conf_t::debounce_filter |
Enable/disable debounce filter.
Definition at line 373 of file periph_cpu_common.h.
TIM_TypeDef* qdec_conf_t::dev |
Timer used.
Definition at line 50 of file cpu_qdec.h.
uint8_t qdec_conf_t::irqn |
global IRQ channel
Definition at line 62 of file cpu_qdec.h.
gpio_t qdec_conf_t::led_pin |
LED GPIO, GPIO_UNDEF to disable.
Definition at line 371 of file periph_cpu_common.h.
uint32_t qdec_conf_t::max |
Maximum counter value.
Definition at line 51 of file cpu_qdec.h.
uint32_t qdec_conf_t::rcc_mask |
bit in clock enable register
Definition at line 52 of file cpu_qdec.h.
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.