nrfx 4.5.0
Loading...
Searching...
No Matches
Generic COMP inputs layer.

Helper layer that provides the common functionality of COMP driver. More...

Macros

#define NRFX_COMP_INPUT_NOT_PRESENT   UINT32_MAX
 Symbol specifying not existing analog input.
 

Functions

NRFX_STATIC_INLINE nrf_comp_input_t nrfx_comp_ain_get (nrfx_analog_input_t input)
 Function for getting the COMP input configuration for given generic analog input.
 
NRFX_STATIC_INLINE nrf_comp_ext_ref_t nrfx_comp_ext_ref_get (nrfx_analog_input_t input)
 Function for getting the COMP external reference input configuration for given generic analog input.
 

Variables

static const nrf_comp_input_t nrfx_comp_external_ain_psels []
 COMP external analog input pins mapping table.
 
static const nrf_comp_input_t nrfx_comp_internal_ain_psels []
 COMP internal inputs mapping table.
 
static const nrf_comp_ext_ref_t nrfx_comp_external_ref_psels []
 COMP external analog reference pins mapping table.
 

Detailed Description

Helper layer that provides the common functionality of COMP driver.

Function Documentation

◆ nrfx_comp_ain_get()

NRFX_STATIC_INLINE nrf_comp_input_t nrfx_comp_ain_get ( nrfx_analog_input_t input)

Function for getting the COMP input configuration for given generic analog input.

Parameters
[in]inputThe generic analog input to get the configuration for.
Returns
The COMP input configuration for the given analog input.
Note
The function takes into account the internal and external analog inputs. The function returns NRFX_COMP_INPUT_NOT_PRESENT for analog inputs that are not supported by the given device.

◆ nrfx_comp_ext_ref_get()

NRFX_STATIC_INLINE nrf_comp_ext_ref_t nrfx_comp_ext_ref_get ( nrfx_analog_input_t input)

Function for getting the COMP external reference input configuration for given generic analog input.

Parameters
[in]inputThe generic analog input to get the configuration for.
Returns
The COMP external reference input configuration for the given analog input.
Note
The function returns NRFX_COMP_INPUT_NOT_PRESENT for reference inputs that are not supported by the given device.

Variable Documentation

◆ nrfx_comp_external_ain_psels

const nrf_comp_input_t nrfx_comp_external_ain_psels[]
static
Initial value:
=
{
COMP_EXTERNAL_AIN_PSELS
}

COMP external analog input pins mapping table.

◆ nrfx_comp_external_ref_psels

const nrf_comp_ext_ref_t nrfx_comp_external_ref_psels[]
static
Initial value:
=
{
COMP_EXTERNAL_REF_PSELS
}

COMP external analog reference pins mapping table.

◆ nrfx_comp_internal_ain_psels

const nrf_comp_input_t nrfx_comp_internal_ain_psels[]
static
Initial value:
=
{
(nrf_comp_input_t) UINT32_MAX ,
(nrf_comp_input_t) UINT32_MAX ,
(nrf_comp_input_t) UINT32_MAX ,
(nrf_comp_input_t) UINT32_MAX ,
}
uint32_t nrf_comp_input_t
COMP analog pin selection.
Definition nrf_comp.h:143

COMP internal inputs mapping table.