QDEC configuration structure. More...
#include <nrfx_qdec.h>
Data Fields | |
nrf_qdec_reportper_t | reportper |
Report period in samples. | |
nrf_qdec_sampleper_t | sampleper |
Sampling period in microseconds. | |
uint32_t | psela |
Pin number for A input. | |
uint32_t | pselb |
Pin number for B input. | |
uint32_t | pselled |
Pin number for LED output. | |
uint32_t | ledpre |
Time (in microseconds) how long LED is switched on before sampling. | |
nrf_qdec_ledpol_t | ledpol |
Active LED polarity. | |
bool | dbfen |
State of debouncing filter. | |
bool | sample_inten |
Enabling sample ready interrupt. | |
uint8_t | interrupt_priority |
QDEC interrupt priority. | |
bool | skip_gpio_cfg |
Skip GPIO configuration of pins. More... | |
bool | skip_psel_cfg |
Skip pin selection configuration. More... | |
QDEC configuration structure.
bool nrfx_qdec_config_t::skip_gpio_cfg |
Skip GPIO configuration of pins.
When set to true, the driver does not modify any GPIO parameters of the used pins. Those parameters are supposed to be configured externally before the driver is initialized.
bool nrfx_qdec_config_t::skip_psel_cfg |
Skip pin selection configuration.
When set to true, the driver does not modify pin select registers in the peripheral. Those registers are supposed to be set up externally before the driver is initialized.