Change some variable names, add stubs for sensor interface and an implementation
This commit is contained in:
11
app/include/HwmonTemperatureSensor.h
Normal file
11
app/include/HwmonTemperatureSensor.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef HWMONTEMPERATURESENSOR_H_
|
||||
#define HWMONTEMPERATURESENSOR_H_
|
||||
|
||||
#include <TemperatureSensor.h>
|
||||
|
||||
class HwmonTemperatureSensor : public TemperatureSensor {
|
||||
public:
|
||||
int getTemperature() override;
|
||||
};
|
||||
|
||||
#endif // HWMONTEMPERATURESENSOR_H_
|
||||
@@ -8,9 +8,9 @@
|
||||
enum class PWM_CONTROL_PROPERTY { CONTROL, ENABLE, MODE };
|
||||
|
||||
struct PWM_CONTROL {
|
||||
std::string control;
|
||||
std::string enable;
|
||||
std::string mode;
|
||||
std::string controlPath;
|
||||
std::string enablePath;
|
||||
std::string modePath;
|
||||
|
||||
std::string initialEnable;
|
||||
std::string initialMode;
|
||||
|
||||
9
app/include/TemperatureSensor.h
Normal file
9
app/include/TemperatureSensor.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef TEMPERATURESENSOR_H_
|
||||
#define TEMPERATURESENSOR_H_
|
||||
|
||||
class TemperatureSensor {
|
||||
public:
|
||||
virtual int getTemperature() = 0;
|
||||
};
|
||||
|
||||
#endif // TEMPERATURESENSOR_H_
|
||||
Reference in New Issue
Block a user