Loading...
Searching...
No Matches
adc_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Baptiste Le Duc <baptiste.leduc@etik.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "periph/adc.h"
19#include "saul/periph.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
32{
33 {
34 .name = "LIGHT",
35 .line = ADC_LINE(NRF52_AIN5), /* P0.29 */
36 .res = ADC_RES_10BIT,
37 },
38 {
39 .name = "NTC_THERMISTOR",
40 .line = ADC_LINE(NRF52_AIN7), /* P0.31 */
41 .res = ADC_RES_10BIT,
42 },
43 {
44 .name = "BAT",
45 .line = ADC_LINE(NRF52_AIN0), /* P0.02 */
46 .res = ADC_RES_10BIT,
47 },
48};
49
50#ifdef __cplusplus
51}
52#endif
53
Low-level ADC peripheral driver interface definitions.
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition adc_params.h:29
#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
Parameter definitions for mapping peripherals directly to SAUL.
Direct mapped ADC configuration values.
Definition periph.h:59