Loading...
Searching...
No Matches
adc_params.h File Reference

Configuration of SAUL mapped ADC lines. More...

Detailed Description

Configuration of SAUL mapped ADC lines.

Author
Baptiste Le Duc bapti.nosp@m.ste..nosp@m.leduc.nosp@m.@eti.nosp@m.k.com

Definition in file adc_params.h.

#include "periph/adc.h"
#include "saul/periph.h"
+ Include dependency graph for adc_params.h:

Go to the source code of this file.

static const saul_adc_params_t saul_adc_params []
 ADC SAUL configuration.
 

Variable Documentation

◆ saul_adc_params

const saul_adc_params_t saul_adc_params[]
static
Initial value:
=
{
{
.name = "LIGHT",
.line = ADC_LINE(NRF52_AIN5),
.res = ADC_RES_10BIT,
},
{
.name = "NTC_THERMISTOR",
.line = ADC_LINE(NRF52_AIN7),
.res = ADC_RES_10BIT,
},
{
.name = "BAT",
.line = ADC_LINE(NRF52_AIN0),
.res = ADC_RES_10BIT,
},
}
#define ADC_LINE(x)
Default ADC line access macro.
Definition adc.h:82
@ ADC_RES_10BIT
ADC resolution: 10 bit.
Definition adc.h:92
@ NRF52_AIN0
Analog Input 0.
Definition periph_cpu.h:49
@ NRF52_AIN7
Analog Input 7.
Definition periph_cpu.h:56
@ NRF52_AIN5
Analog Input 5.
Definition periph_cpu.h:54

ADC SAUL configuration.

Note
NTC_THERMISTOR exposes a raw ADC reading, not degrees Celsius. NTC curve conversion must be done at the application level.

Definition at line 31 of file adc_params.h.