ams-slave-22/Core/Inc/FanControl.h

16 lines
368 B
C

#ifndef INC_FAN_CONTROL_H
#define INC_FAN_CONTROL_H
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_def.h"
#include "stm32f4xx_hal_tim.h"
HAL_StatusTypeDef fan_ctrl_init(TIM_HandleTypeDef* handle, uint32_t channel);
/**
* @brief Set the power of the fan (0 -> off, 100 -> full power).
*/
void fan_ctrl_set_power(uint32_t percent);
#endif // INC_FAN_CONTROL_H