| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
nrf_drv_qdec_config_t Struct Reference
QDEC driver

QDEC configuration structure. More...

`#include <nrf_drv_qdec.h>`

## Data Fields
nrf_qdec_reportper_t | reportper
nrf_qdec_sampleper_t | sampleper
uint32_t | psela
uint32_t | pselb
uint32_t | pselled
uint32_t | ledpre
nrf_qdec_ledpol_t | ledpol
bool | dbfen
bool | sample_inten
uint8_t | interrupt_priority

## Detailed Description

QDEC configuration structure.

## Field Documentation

bool nrf_drv_qdec_config_t::dbfen

State of debouncing filter.

uint8_t nrf_drv_qdec_config_t::interrupt_priority

QDEC interrupt priority.

nrf_qdec_ledpol_t nrf_drv_qdec_config_t::ledpol

Active LED polarity.

uint32_t nrf_drv_qdec_config_t::ledpre

Time (in microseconds) how long LED is switched on before sampling.

uint32_t nrf_drv_qdec_config_t::psela

Pin number for A input.

uint32_t nrf_drv_qdec_config_t::pselb

Pin number for B input.

uint32_t nrf_drv_qdec_config_t::pselled

Pin number for LED output.

nrf_qdec_reportper_t nrf_drv_qdec_config_t::reportper

Report period in samples.

bool nrf_drv_qdec_config_t::sample_inten

Enabling sample ready interrupt.

nrf_qdec_sampleper_t nrf_drv_qdec_config_t::sampleper

Sampling period in microseconds.