Midnight Sun Firmware
Loading...
Searching...
No Matches
fans.h
1#pragma once
2
3/************************************************************************************************
4 * @file fans.h
5 *
6 * @brief Fans header file
7 *
8 * @date 2025-09-20
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13
14/* Inter-component Headers */
15
16/* Intra-component Headers */
17#include "rear_controller.h"
18
25/* PWM fans idle at this duty and ramp linearly to full over the temp band below */
26#define REAR_CONTROLLER_FAN_IDLE_DUTY_PCT 10U
27#define REAR_CONTROLLER_FAN_MAX_DUTY_PCT 100U
28#define REAR_CONTROLLER_FAN_RAMP_MIN_C 45
29#define REAR_CONTROLLER_FAN_RAMP_MAX_C 55
30
38
44
StatusCode fans_run(void)
Ramps both PWM fans from idle to full over the temp band, and drives fan_pwr_1 on BPS fault.
Definition: fans.c:30
StatusCode fans_init(RearControllerStorage *storage)
Initializes the fan sub-system.
Definition: fans.c:60
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Definition: rear_controller.h:45