SysfsSingleSensor.h 552 Bytes
Newer Older
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
29
/*
 * SysfsSingleSensor.h
 *
 *  Created on: 18.11.2017
 *      Author: Michael Ott (original), Micha Mueller
 */

#ifndef SYSFSSINGLESENSOR_H_
#define SYSFSSINGLESENSOR_H_

#include "SysfsSensorBase.h"
#include "../../headers/SingleSensor.h"

class SysfsSingleSensor : public SysfsSensorBase, public SingleSensor {

public:
	SysfsSingleSensor(const std::string& name);
	virtual ~SysfsSingleSensor();

	void start()	override;
	void stop()		override;

private:
	void read()			override;
	void readAsync()	override;

};

#endif /* SYSFSSINGLESENSOR_H_ */