30 lines
497 B
C++
30 lines
497 B
C++
/*
|
|
* FanControl.hpp
|
|
*
|
|
* Created on: 27.07.2023
|
|
* Author: Carst
|
|
*/
|
|
|
|
#ifndef FANCONTROL_HPP_
|
|
#define FANCONTROL_HPP_
|
|
|
|
#include <cstdint>
|
|
|
|
extern "C" void FanControl_SetDuty(uint32_t d);
|
|
|
|
namespace ElektronischeLast
|
|
{
|
|
class FanControl
|
|
{
|
|
public:
|
|
FanControl(void);
|
|
~FanControl(void);
|
|
void run(std::uint32_t temp);
|
|
std::uint32_t get_speed(void);
|
|
private:
|
|
std::uint32_t compare_value;
|
|
};
|
|
}
|
|
|
|
#endif /* FANCONTROL_HPP_ */
|