30#define MULTIPLIER (CCP3PRL/100)
39#define MAX_SPEED_PERCENT 96
40#define INIT_SPEED_PERCENT 1
This is the generated driver header file for the SCCP3 driver.
FAN_DATA_t * devFanDataPtr
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_Set_Speed(uint8_t TargetSpeedPercent)
Sets the fan speed.
void Dev_Fan_Set_Override(void)
Sets the fan override bit and the fan speed.
void Dev_Fan_Initialize(void)
This function initializes the fan object.
void Dev_Fan_Task_1s(void)
This function needs to be called every 1s to keep the temperature of the board at a certain temperatu...
A custom data type for fan.
uint16_t MaxSpeedRaw
based on period value (CCXPRL).
uint16_t Tick
set the execution rate in multiples of 100ms
uint8_t OverrideFlag
override flag. sets tick value to 1, step_size to 20 and target to 100%
uint16_t StepSizePercent
set the increment rate per tick in percentage
uint16_t CurrentSpeedRaw
current value raw.
uint16_t TargetSpeedRaw
targetted value raw.
uint8_t TargetSpeedPercent
targetted Speed in percentage
uint16_t MaxSpeedPercent
based on period value (CCXPRL). Use this to limit the fan max speed
uint8_t CurrentSpeedPercent
Current Speed in percentage.