20#define MAX_FAN_DUTY_VALUE 100
21#define DEFAULT_FAN_DUTY_VALUE 70
22#define MAX_FAN_PWM_INDEX_COUNT 4
24#define INDEX_ALL_PWM 0xFF
26#define PWM_DEVICE_NAME "PWM"
int pal_get_fan_ctrl_mode(uint8_t *ctrl_mode)
Definition: plat_fan.c:68
fan_mode_ctrl_cmd
Definition: plat_fan.h:28
@ FAN_SET_AUTO_MODE
Definition: plat_fan.h:30
@ FAN_GET_MODE
Definition: plat_fan.h:31
@ FAN_SET_MANUAL_MODE
Definition: plat_fan.h:29
int pal_get_fan_rpm(uint8_t fan_id, uint16_t *rpm)
Definition: plat_fan.c:85
void pal_set_fan_ctrl_mode(uint8_t ctrl_mode)
Definition: plat_fan.c:79
int pal_get_fan_duty(uint8_t pwm_id, uint8_t *duty, uint8_t slot_index)
Definition: plat_fan.c:119
void init_fan_mode()
Definition: plat_fan.c:43
int pal_set_fan_duty(uint8_t pwm_id, uint8_t duty, uint8_t slot_index)
Definition: plat_fan.c:135
fan_mode
Definition: plat_fan.h:34
@ FAN_AUTO_MODE
Definition: plat_fan.h:36
@ FAN_MANUAL_MODE
Definition: plat_fan.h:35
void init_fan_duty()
Definition: plat_fan.c:49