| 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
COMP peripheral driver configuration
COMP driver

## Macros
#define | COMP_ENABLED
| Enable COMP driver * Set to 1 to activate. More...
#define | COMP_CONFIG_REF
| Reference voltage * Following options are avaiable: More...
#define | COMP_CONFIG_MAIN_MODE
| Main mode * Following options are avaiable: More...
#define | COMP_CONFIG_SPEED_MODE
| Speed mode * Following options are avaiable: More...
#define | COMP_CONFIG_HYST
| Hystheresis * Following options are avaiable: More...
#define | COMP_CONFIG_ISOURCE
| Current Source * Following options are avaiable: More...
#define | COMP_CONFIG_INPUT
| Analog input * Following options are avaiable: More...
#define | COMP_CONFIG_IRQ_PRIORITY
| Interrupt priority. More...

## Detailed Description

## Macro Definition Documentation

#define COMP_CONFIG_HYST

Hystheresis * Following options are avaiable:

- 0 - No
- 1 - 50mV

Note
  This is an NRF_CONFIG macro.

#define COMP_CONFIG_INPUT

Analog input * Following options are avaiable:

- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7

Note
  This is an NRF_CONFIG macro.

#define COMP_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 COMP_CONFIG_ISOURCE

Current Source * Following options are avaiable:

- 0 - Off
- 1 - 2.5 uA
- 2 - 5 uA
- 3 - 10 uA

Note
  This is an NRF_CONFIG macro.

#define COMP_CONFIG_MAIN_MODE

Main mode * Following options are avaiable:

- 0 - Single ended
- 1 - Differential

Note
  This is an NRF_CONFIG macro.

#define COMP_CONFIG_REF

Reference voltage * Following options are avaiable:

- 0 - Internal 1.2V
- 1 - Internal 1.8V
- 2 - Internal 2.4V
- 4 - VDD
- 7 - ARef

Note
  This is an NRF_CONFIG macro.

#define COMP_CONFIG_SPEED_MODE

Speed mode * Following options are avaiable:

- 0 - Low power
- 1 - Normal
- 2 - High speed

Note
  This is an NRF_CONFIG macro.

#define COMP_ENABLED

Enable COMP driver * Set to 1 to activate.

Note
  This is an NRF_CONFIG macro.