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

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

Macros

#define NRFX_LPCOMP_INPUT_NOT_PRESENT   UINT32_MAX
 Symbol specifying not existing analog input.
 

Functions

NRFX_STATIC_INLINE nrf_lpcomp_input_t nrfx_lpcomp_ain_get (nrfx_analog_input_t input)
 Function for getting the LPCOMP input configuration for given generic analog input.
 
NRFX_STATIC_INLINE nrf_lpcomp_ext_ref_t nrfx_lpcomp_ext_ref_get (nrfx_analog_input_t input)
 Function for getting the LPCOMP external reference input configuration for given generic analog input.
 

Variables

static const nrf_lpcomp_input_t nrfx_lpcomp_psels []
 LPCOMP external analog input pins mapping table.
 
static const nrf_lpcomp_ext_ref_t nrfx_lpcomp_external_ref_psels []
 LPCOMP external analog reference pins mapping table.
 

Detailed Description

Helper layer that provides the common functionality of LPCOMP driver.

Function Documentation

◆ nrfx_lpcomp_ain_get()

NRFX_STATIC_INLINE nrf_lpcomp_input_t nrfx_lpcomp_ain_get ( nrfx_analog_input_t input)

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

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

◆ nrfx_lpcomp_ext_ref_get()

NRFX_STATIC_INLINE nrf_lpcomp_ext_ref_t nrfx_lpcomp_ext_ref_get ( nrfx_analog_input_t input)

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

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

Variable Documentation

◆ nrfx_lpcomp_external_ref_psels

const nrf_lpcomp_ext_ref_t nrfx_lpcomp_external_ref_psels[]
static
Initial value:
=
{
LPCOMP_EXTERNAL_REF_PSELS
}

LPCOMP external analog reference pins mapping table.

◆ nrfx_lpcomp_psels

const nrf_lpcomp_input_t nrfx_lpcomp_psels[]
static
Initial value:
=
{
LPCOMP_EXTERNAL_AIN_PSELS
}

LPCOMP external analog input pins mapping table.