Über LL_TIM_OC_SetCompareCH1 kann der Duty-Cycle bestimmt werden von 0 bis 2559 (0 - 100%)
27 lines
408 B
C++
27 lines
408 B
C++
/*
|
|
* FanControl.hpp
|
|
*
|
|
* Created on: 27.07.2023
|
|
* Author: Carst
|
|
*/
|
|
|
|
#ifndef FANCONTROL_HPP_
|
|
#define FANCONTROL_HPP_
|
|
|
|
#include <cstdint>
|
|
|
|
namespace ElektronischeLast
|
|
{
|
|
class FanControl
|
|
{
|
|
public:
|
|
FanControl(void);
|
|
~FanControl(void);
|
|
void run(std::uint32_t temp);
|
|
private:
|
|
std::uint32_t compare_value;
|
|
};
|
|
}
|
|
|
|
#endif /* FANCONTROL_HPP_ */
|