| 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
Macros
QDEC peripheral driver configuration
QDEC driver

## Macros
#define | QDEC_ENABLED
| Enable QDEC driver * Set to 1 to activate. More...
#define | QDEC_CONFIG_REPORTPER
| Report period * Following options are avaiable: More...
#define | QDEC_CONFIG_SAMPLEPER
| Sample period * Following options are avaiable: More...
#define | QDEC_CONFIG_PIO_A
| A pin * Minimum value: 0 Maximum value: 31. More...
#define | QDEC_CONFIG_PIO_B
| B pin * Minimum value: 0 Maximum value: 31. More...
#define | QDEC_CONFIG_PIO_LED
| LED pin * Minimum value: 0 Maximum value: 31. More...
#define | QDEC_CONFIG_LEDPRE
| LED pre *. More...
#define | QDEC_CONFIG_LEDPOL
| LED polarity * Following options are avaiable: More...
#define | QDEC_CONFIG_DBFEN
| Debouncing enable * Set to 1 to activate. More...
#define | QDEC_CONFIG_SAMPLE_INTEN
| Sample ready interrupt enable * Set to 1 to activate. More...
#define | QDEC_CONFIG_IRQ_PRIORITY
| Interrupt priority. More...

## Detailed Description

## Macro Definition Documentation

#define QDEC_CONFIG_DBFEN

Debouncing enable * Set to 1 to activate.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_IRQ_PRIORITY

Interrupt priority.

Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice

Following options are avaiable:

- 0 - 0 (highest)
- 1 - 1
- 2 - 2
- 3 - 3
- 4 - 4 (except nRF51 family)
- 5 - 5 (except nRF51 family)
- 6 - 6 (except nRF51 family)
- 7 - 7 (except nRF51 family)

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_LEDPOL

LED polarity * Following options are avaiable:

- 0 - Active low
- 1 - Active high

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_LEDPRE

LED pre *.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_PIO_A

A pin * Minimum value: 0 Maximum value: 31.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_PIO_B

B pin * Minimum value: 0 Maximum value: 31.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_PIO_LED

LED pin * Minimum value: 0 Maximum value: 31.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_REPORTPER

Report period * Following options are avaiable:

- 0 - 10 Samples
- 1 - 40 Samples
- 2 - 80 Samples
- 3 - 120 Samples
- 4 - 160 Samples
- 5 - 200 Samples
- 6 - 240 Samples
- 7 - 280 Samples

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_SAMPLE_INTEN

Sample ready interrupt enable * Set to 1 to activate.

Note
  This is an NRF_CONFIG macro.

#define QDEC_CONFIG_SAMPLEPER

Sample period * Following options are avaiable:

- 0 - 128 us
- 1 - 256 us
- 2 - 512 us
- 3 - 1024 us
- 4 - 2048 us
- 5 - 4096 us
- 6 - 8192 us
- 7 - 16384 us

Note
  This is an NRF_CONFIG macro.

#define QDEC_ENABLED

Enable QDEC driver * Set to 1 to activate.

Note
  This is an NRF_CONFIG macro.