33#include "driver/adc.h"
34#include "driver/adc_types_legacy.h"
Low-level ADC peripheral driver interface definitions.
int adc_raw_to_voltage(adc_t line, int sample, int *voltage)
Get the voltage for a given sample value.
int adc_set_attenuation(adc_t line, adc_atten_t atten)
Set the attenuation for the ADC line.
adc_attenuation_t
Attenuations that can be set for ADC lines.
@ ADC_ATTENUATION_12_DB
full-range is about 3.3 V
@ ADC_ATTENUATION_0_DB
full-range is about 1.1 V (Vref)
@ ADC_ATTENUATION_3_DB
full-range is about 1.5 V
@ ADC_ATTENUATION_6_DB
full-range is about 2.2 V
Low-level GPIO peripheral driver interface definitions.
uint_fast8_t adc_t
Define default ADC type identifier.