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 
72 
79 int adc_vref_to_gpio25 (void);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* ADC_ARCH_H */
adc_vref_to_gpio25
int adc_vref_to_gpio25(void)
Output ADC reference voltage to GPIO25.
ADC_ATTENUATION_0_DB
@ ADC_ATTENUATION_0_DB
full-range is about 1.1 V (Vref)
Definition: adc_arch.h:34
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:72
adc.h
Low-level ADC peripheral driver interface definitions.
adc_attenuation_t
adc_attenuation_t
Attenuations that can be set for ADC lines.
Definition: adc_arch.h:33
adc_set_attenuation
int adc_set_attenuation(adc_t line, adc_attenuation_t atten)
Set the attenuation for the ADC line.
ADC_ATTENUATION_6_DB
@ ADC_ATTENUATION_6_DB
full-range is about 2.2 V
Definition: adc_arch.h:36
ADC_ATTENUATION_11_DB
@ ADC_ATTENUATION_11_DB
full-range is about 3.3 V
Definition: adc_arch.h:37
gpio.h
Low-level GPIO peripheral driver interface definitions.
ADC_ATTENUATION_3_DB
@ ADC_ATTENUATION_3_DB
full-range is about 1.5 V
Definition: adc_arch.h:35