fan device driver More...
Include dependency graph for dev_fan.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | FAN_DATA_s |
| A custom data type for fan. More... | |
Macros | |
| #define | MULTIPLIER (CCP3PRL/100) |
| These have to be renamed to make the fan device driver abstract. | |
| #define | MAX_SPEED_PERCENT 96 |
| macros defining the speed limits | |
| #define | INIT_SPEED_PERCENT 1 |
| intial start fan value | |
| #define | MIN_TICK 1 |
| fastest possible tick. needed for override flag. | |
| #define | STEP_SIZE 1 |
| in percent. needed for overide flag. | |
Typedefs | |
| typedef struct FAN_DATA_s | FAN_DATA_t |
Functions | |
| 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 TargetSpeedPercent) |
| Sets the fan speed. | |
Variables | |
| FAN_DATA_t * | devFanDataPtr |
| #define MULTIPLIER (CCP3PRL/100) |
| typedef struct FAN_DATA_s FAN_DATA_t |
|
extern |