nrfx 4.5.0
Loading...
Searching...
No Matches
Generic SAADC input layer.

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

Macros

#define NRFX_SAADC_INPUT_NOT_PRESENT   NRF_SAADC_INPUT_DISABLED
 Symbol specifying not existing analog input.
 

Functions

NRFX_STATIC_INLINE nrf_saadc_input_t nrfx_saadc_ain_get (nrfx_analog_input_t input)
 Function for getting the SAADC input configuration for given generic analog input.
 

Variables

static const nrf_saadc_input_t nrfx_saadc_external_ain_psels []
 SAADC external analog input pins mapping table.
 
static const nrf_saadc_input_t nrfx_saadc_internal_ain_psels []
 SAADC internal inputs mapping table.
 

Detailed Description

Helper layer that provides the common functionality of SAADC driver.

Function Documentation

◆ nrfx_saadc_ain_get()

NRFX_STATIC_INLINE nrf_saadc_input_t nrfx_saadc_ain_get ( nrfx_analog_input_t input)

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

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

Variable Documentation

◆ nrfx_saadc_external_ain_psels

const nrf_saadc_input_t nrfx_saadc_external_ain_psels[]
static
Initial value:
=
{
SAADC_EXTERNAL_AIN_PSELS
}

SAADC external analog input pins mapping table.

◆ nrfx_saadc_internal_ain_psels

const nrf_saadc_input_t nrfx_saadc_internal_ain_psels[]
static
Initial value:
=
{
SAADC_INTERNAL_AIN_PSELS
}

SAADC internal inputs mapping table.