summaryrefslogtreecommitdiff
path: root/include/driver/s5851a.h
blob: fd371586fc6f8c1ec8ac3eeb3ec06ae01e854808 (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
/*
 * Copyright 2020 Daniel Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#ifndef S5851A_H
#define S5851A_H

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

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

		float getTemp();
};

extern S5851A s5851a;

#endif