nRF5 SDK v17.1.0
Macros
QDEC peripheral driver configuration

Macros

#define NRFX_QDEC_ENABLED
 Enable QDEC driver. More...
 
#define NRFX_QDEC_CONFIG_REPORTPER
 Report period. More...
 
#define NRFX_QDEC_CONFIG_SAMPLEPER
 Sample period. More...
 
#define NRFX_QDEC_CONFIG_PIO_A
 A pin. More...
 
#define NRFX_QDEC_CONFIG_PIO_B
 B pin. More...
 
#define NRFX_QDEC_CONFIG_PIO_LED
 LED pin. More...
 
#define NRFX_QDEC_CONFIG_LEDPRE
 LED pre. More...
 
#define NRFX_QDEC_CONFIG_LEDPOL
 LED polarity. More...
 
#define NRFX_QDEC_CONFIG_DBFEN
 Debouncing enable. More...
 
#define NRFX_QDEC_CONFIG_SAMPLE_INTEN
 Sample ready interrupt enable. More...
 
#define NRFX_QDEC_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define NRFX_QDEC_CONFIG_LOG_ENABLED
 Enables logging in the module. More...
 
#define NRFX_QDEC_CONFIG_LOG_LEVEL
 Default Severity level. More...
 
#define NRFX_QDEC_CONFIG_INFO_COLOR
 ANSI escape code prefix. More...
 
#define NRFX_QDEC_CONFIG_DEBUG_COLOR
 ANSI escape code prefix. More...
 

Detailed Description

Macro Definition Documentation

#define NRFX_QDEC_CONFIG_DBFEN

Debouncing enable.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_DEBUG_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_INFO_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_IRQ_PRIORITY

Interrupt priority.

Following options are available:

  • 0 - 0 (highest)
  • 1 - 1
  • 2 - 2
  • 3 - 3
  • 4 - 4 (Applicable devices only)
  • 5 - 5 (Applicable devices only)
  • 6 - 6 (Applicable devices only)
  • 7 - 7 (Applicable devices only)
Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_LEDPOL

LED polarity.

Following options are available:

  • 0 - Active low
  • 1 - Active high
Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_LEDPRE

LED pre.

Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_LOG_ENABLED

Enables logging in the module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_LOG_LEVEL

Default Severity level.

Following options are available:

  • 0 - Off
  • 1 - Error
  • 2 - Warning
  • 3 - Info
  • 4 - Debug
Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_PIO_A

A pin.

Minimum value: 0 Maximum value: 31

Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_PIO_B

B pin.

Minimum value: 0 Maximum value: 31

Note
This is an NRF_CONFIG macro.
#define NRFX_QDEC_CONFIG_PIO_LED

LED pin.

Minimum value: 0 Maximum value: 31

Note
This is an NRF_CONFIG macro.
#define NRFX_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 NRFX_QDEC_CONFIG_SAMPLE_INTEN

Sample ready interrupt enable.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_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 NRFX_QDEC_ENABLED

Enable QDEC driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated