QDEC peripheral driver configuration

nRF5 SDK v12.1.0

Macros

#define QDEC_ENABLED
Enable QDEC driver. More...
#define QDEC_CONFIG_REPORTPER
Report period. More...
#define QDEC_CONFIG_SAMPLEPER
Sample period. More...
#define QDEC_CONFIG_PIO_A
A pin. More...
#define QDEC_CONFIG_PIO_B
B pin. More...
#define QDEC_CONFIG_PIO_LED
LED pin. More...
#define QDEC_CONFIG_LEDPRE
LED pre. More...
#define QDEC_CONFIG_LEDPOL
LED polarity. More...
#define QDEC_CONFIG_DBFEN
Debouncing enable. More...
#define QDEC_CONFIG_SAMPLE_INTEN
Sample ready interrupt enable. 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 available:

  • 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 available:

  • 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 available:

  • 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 available:

  • 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.