summaryrefslogtreecommitdiff
path: root/include/driver/hdc1080.h
blob: 83a99cb63d2be5af50bd8eb6c4a4d7fd9258cebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright 2020 Daniel Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#ifndef HDC1080_H
#define HDC1080_H

class HDC1080 {
	private:
		HDC1080(const HDC1080 &copy);
		unsigned char const address = 0x40;
		unsigned char txbuf[3];
		unsigned char rxbuf[2];

	public:
		HDC1080() {}

		float getTemp();
		float getRH();
		unsigned int getManufacturerID();
		void init();
		void heater(bool on);
};

extern HDC1080 hdc1080;

#endif