summaryrefslogtreecommitdiff
path: root/include/driver/max44006.h
blob: e357574159addff2db011c150ea164ca5bce186b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef LM75_H
#define LM75_H

class LM75 {
	private:
		LM75(const LM75 &copy);
		unsigned char const address;
		unsigned char txbuf[3];
		unsigned char rxbuf[2];

	public:
		LM75(unsigned char const addr) : address(addr) {}

		float getTemp();
		void setOS(unsigned char os);
		void setHyst(unsigned char hyst);
};

extern LM75 lm75;

#endif