| 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
Data Fields
nrf_drv_comp_config_t Struct Reference
COMP driver

COMP configuration. More...

`#include <nrf_drv_comp.h>`

## Data Fields
nrf_comp_ref_t | reference
nrf_comp_ext_ref_t | ext_ref
nrf_comp_main_mode_t | main_mode
nrf_comp_th_t | threshold
nrf_comp_sp_mode_t | speed_mode
nrf_comp_hyst_t | hyst
nrf_isource_t | isource
nrf_comp_input_t | input
uint8_t | interrupt_priority

## Detailed Description

COMP configuration.

## Field Documentation

nrf_comp_ext_ref_t nrf_drv_comp_config_t::ext_ref

External analog reference selection.

nrf_comp_hyst_t nrf_drv_comp_config_t::hyst

Comparator hysteresis.

nrf_comp_input_t nrf_drv_comp_config_t::input

Input to be monitored.

uint8_t nrf_drv_comp_config_t::interrupt_priority

Interrupt priority.

nrf_isource_t nrf_drv_comp_config_t::isource

Current source selected on analog input.

nrf_comp_main_mode_t nrf_drv_comp_config_t::main_mode

Main operation mode.

nrf_comp_ref_t nrf_drv_comp_config_t::reference

Reference selection.

nrf_comp_sp_mode_t nrf_drv_comp_config_t::speed_mode

Speed and power mode.

nrf_comp_th_t nrf_drv_comp_config_t::threshold

Structure holding THDOWN and THUP values needed by the COMP_TH register.