61#include "periph_cpu.h"
62#include "periph_conf.h"
79#define ADC_UNDEF (UINT_FAST8_MAX)
86#define ADC_LINE(x) (x)
int32_t adc_sample(adc_t line, adc_res_t res)
Sample a value from the given ADC line.
int adc_init(adc_t line)
Initialize the given ADC line.
int32_t adc_continuous_sample(adc_t line)
Sample an ADC line without powering off the ADC afterward.
void adc_continuous_stop(void)
Disable the ADC to save power.
uint_fast8_t adc_t
Define default ADC type identifier.
void adc_continuous_begin(adc_res_t res)
Configure the ADC with a given resolution for continuous sampling.
adc_res_t
Possible ADC resolution settings.
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.