nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
nrf_drv_qdec_config_t Struct Reference

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.