Contains fan initialization and execution functions.
More...
#include "dev_fan.h"
#include "dev_temp.h"
#include "config/macros.h"
Go to the source code of this file.
|
static uint16_t | Convert_From_Percentage (uint8_t percentage_value) |
| Converts the percentage value to number of ticks.
|
|
static uint8_t | Convert_From_Raw (uint16_t raw) |
|
|
|
static void | Override_Speed (void) |
| Override the fan speed with maximum speed.
|
|
static void | Calculate_Speed (void) |
| Calculates the fan speed.
|
|
static void | Update_Speed (void) |
| Update the fan speed.
|
|
void | Dev_Fan_Initialize (void) |
| This function initializes the fan object.
|
|
void | Dev_Fan_Task_100ms (void) |
| this function needs to be called every 100ms it contains the code to update the status of the fan
|
|
void | Dev_Fan_Task_1s (void) |
| This function needs to be called every 1s to keep the temperature of the board at a certain temperature.
|
|
void | Dev_Fan_Set_Override (void) |
| Sets the fan override bit and the fan speed.
|
|
void | Dev_Fan_Set_Speed (uint8_t target_speed_percent) |
| Sets the fan speed.
|
|
<>
Definition in file dev_fan.c.
◆ FAN_SETTINGS_t
◆ FAN_SETTINGS_e
Enumerator |
---|
NO_CHANGE | |
CHANGE_SPEED | |
Definition at line 24 of file dev_fan.c.
◆ Convert_From_Raw()
static uint8_t Convert_From_Raw |
( |
uint16_t |
raw | ) |
|
|
static |
◆ changeSpeed
◆ devFanDataPtr