mirror of
https://gitlvb.teallvbs.xyz/IQ.Lvbs/IQ.Pilot.git
synced 2026-07-25 05:22:11 +08:00
17 lines
321 B
C
17 lines
321 B
C
#pragma once
|
|
|
|
struct fan_state_t {
|
|
uint16_t tach_counter;
|
|
uint16_t rpm;
|
|
uint8_t power;
|
|
float error_integral;
|
|
uint8_t cooldown_counter;
|
|
};
|
|
extern struct fan_state_t fan_state;
|
|
|
|
void fan_set_power(uint8_t percentage);
|
|
void llfan_init(void);
|
|
void fan_init(void);
|
|
// Call this at FAN_TICK_FREQ
|
|
void fan_tick(void);
|