AVR library
adc.h
1 #ifndef MAT_ADC_H
2 #define MAT_ADC_H
3 
4 #include <inttypes.h>
5 
6 void adc_init(uint8_t nch);
7 void adc_startnext(void);
8 void adc_startfree(void);
9 uint16_t adc_get(const uint8_t ch);
10 
11 #endif
void adc_startnext(void)
Start next conversion.
Definition: adc.c:43
void adc_init(uint8_t nch)
Init ADC. Channels 0 to nch-1 will be sampled.
Definition: adc.c:29
uint16_t adc_get(const uint8_t ch)
Get a channel's averaged ADC value.
Definition: adc.c:64
void adc_startfree(void)
Start free running ADC conversions.
Definition: adc.c:53