summaryrefslogtreecommitdiff
path: root/include/arch/lora32u4ii/driver/adc.h
blob: 5f9189a7f0eeb421acc8a90ed08b8bdcd0c27071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ADC_H
#define ADC_H

class AVRADC {
	private:
		AVRADC(AVRADC const &copy);

	public:
		AVRADC() {}

		int16_t getTemp_mdegC(int16_t offset = 205);
		uint16_t getVCC_mV();
		uint16_t getVBat_mV(bool controlCharger);
};

extern AVRADC adc;

#endif