adc_arch.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Gunar Schorcht
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef ADC_ARCH_H
21 #define ADC_ARCH_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include "periph/gpio.h"
28 #include "periph/adc.h"
29 
33 typedef enum {
39 
71 int adc_set_attenuation(adc_t line, adc_attenuation_t atten);
72 
79 int adc_vref_to_gpio25 (void);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* ADC_ARCH_H */
int adc_set_attenuation(adc_t line, adc_attenuation_t atten)
Set the attenuation for the ADC line.
Low-level GPIO peripheral driver interface definitions.
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:71
int adc_vref_to_gpio25(void)
Output ADC reference voltage to GPIO25.
full-range is about 3.3 V
Definition: adc_arch.h:37
Low-level ADC peripheral driver interface definitions.
adc_attenuation_t
Attenuations that can be set for ADC lines.
Definition: adc_arch.h:33
full-range is about 2.2 V
Definition: adc_arch.h:36
full-range is about 1.5 V
Definition: adc_arch.h:35
full-range is about 1.1 V (Vref)
Definition: adc_arch.h:34