Add documentation, cleanup

This commit is contained in:
2022-09-17 15:45:48 +02:00
parent bbdd612209
commit 828964bf8f
17 changed files with 215 additions and 121 deletions

View File

@@ -1,17 +1,23 @@
#ifndef HWMONFAN_H_
#define HWMONFAN_H_
#include <memory>
#include <fan/Fan.h>
#include <fan/PwmControl.h>
#include <sensor/Sensor.h>
class HwmonFan : public Fan {
public:
HwmonFan(std::unique_ptr<PwmControl> pwmControl,
std::unique_ptr<Sensor> rpmSensor);
void PWM(int percent) override;
int RPM() override;
private:
PwmControl mPwmControl;
// PwmSensor mPwmSensor;
std::unique_ptr<PwmControl> mPwmControl;
std::unique_ptr<Sensor> mRpmSensor;
};
#endif // HWMONFAN_H_