restructured project

This commit is contained in:
Clemens-Dautermann 2022-02-06 19:38:01 +01:00 committed by Clemens-Dautermann
parent 87fd0f35f6
commit 7515726a8f
14 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,25 @@
#ifndef NEW_CLIMTE_GO_SENSOR_H
#define NEW_CLIMTE_GO_SENSOR_H
#include <sensors/sensor_data_t.h>
enum class SensorState : unsigned short {
AWAKE, ASLEEP
};
class Sensor {
public:
virtual sensor_data_t sample() = 0;
virtual void wakeUp() = 0;
virtual void enableStandbyMode() = 0;
protected:
SensorState state = SensorState::ASLEEP;
virtual void sensor_setup() = 0;
};
#endif //NEW_CLIMTE_GO_SENSOR_H