23#define FSC_TEMP_INVALID 0x8000
24#define FSC_RPM_INVALID 0xFFFF
29#define SENSOR_STEPWISE_STEPS_MAX 16
110 uint8_t (*set_duty)(uint8_t, uint8_t);
void change_temp_setpoint(uint8_t onoff)
Definition: plat_fsc.c:289
void fsc_init(void)
Definition: plat_fsc.c:389
FSC_ERROR
Definition: plat_fsc.h:31
@ FSC_ERROR_NOT_FOUND_PID_TABLE
Definition: plat_fsc.h:37
@ FSC_ERROR_NOT_FOUND_STEPWISE_TABLE
Definition: plat_fsc.h:36
@ FSC_ERROR_UNKNOW
Definition: plat_fsc.h:33
@ FSC_ERROR_NOT_FOUND_ZONE_TABLE
Definition: plat_fsc.h:35
@ FSC_ERROR_NONE
Definition: plat_fsc.h:32
@ FSC_ERROR_OUT_OF_RANGE
Definition: plat_fsc.h:34
@ FSC_ERROR_NULL_ARG
Definition: plat_fsc.h:38
void set_fsc_setpoint(uint8_t idx, uint8_t val)
Definition: plat_fsc.c:69
uint8_t get_fsc_enable_flag(void)
Definition: plat_fsc.c:43
FSC_TYPE
Definition: plat_fsc.h:41
@ FSC_TYPE_STEPWISE
Definition: plat_fsc.h:43
@ FSC_TYPE_DEFAULT
Definition: plat_fsc.h:46
@ FSC_TYPE_BOTH
Definition: plat_fsc.h:45
@ FSC_TYPE_DISABLE
Definition: plat_fsc.h:42
@ FSC_TYPE_PID
Definition: plat_fsc.h:44
uint8_t get_fsc_setpoint(uint8_t idx)
Definition: plat_fsc.c:62
void set_fsc_enable_flag(uint8_t flag)
Definition: plat_fsc.c:48
void change_lpm_setpoint(uint8_t onoff)
Definition: plat_fsc.c:272
void controlFSC(uint8_t action)
Function to control the FSC thread.
Definition: plat_fsc.c:302
uint8_t fsc_debug_get(void)
Definition: plat_fsc.c:38
FSC_MODE_E
Definition: plat_fsc.h:49
@ FSC_MODE_MANUAL_MODE
Definition: plat_fsc.h:52
@ FSC_MODE_AUTO_MODE
Definition: plat_fsc.h:51
@ FSC_MODE_UNKNOW
Definition: plat_fsc.h:50
@ FSC_MODE_SEMI_MODE
Definition: plat_fsc.h:53
void set_fsc_tbl_enable(uint8_t flag)
Definition: plat_fsc.c:57
uint8_t fsc_debug_set(uint8_t enable)
Definition: plat_fsc.c:32
#define SENSOR_STEPWISE_STEPS_MAX
Definition: plat_fsc.h:29
Definition: plat_fsc.h:92
uint8_t sensor_num
Definition: plat_fsc.h:93
uint8_t type
Definition: plat_fsc.h:94
Definition: plat_fsc.h:73
float ki
Definition: plat_fsc.h:78
int16_t i_limit_min
Definition: plat_fsc.h:80
float kp
Definition: plat_fsc.h:77
float integral
Definition: plat_fsc.h:86
uint8_t neg_hyst
Definition: plat_fsc.h:83
int setpoint
Definition: plat_fsc.h:75
float kd
Definition: plat_fsc.h:79
int last_error
Definition: plat_fsc.h:87
uint8_t pos_hyst
Definition: plat_fsc.h:82
int16_t i_limit_max
Definition: plat_fsc.h:81
int16_t last_temp
Definition: plat_fsc.h:88
uint8_t sensor_num
Definition: plat_fsc.h:74
Definition: plat_fsc.h:62
int16_t last_temp
Definition: plat_fsc.h:69
uint8_t pos_hyst
Definition: plat_fsc.h:65
uint8_t neg_hyst
Definition: plat_fsc.h:66
uint8_t sensor_num
Definition: plat_fsc.h:63
Definition: plat_fsc.h:57
uint8_t temp
Definition: plat_fsc.h:58
uint8_t duty
Definition: plat_fsc.h:59
Definition: plat_fsc.h:97
uint8_t last_duty
Definition: plat_fsc.h:115
uint8_t set_duty_arg
Definition: plat_fsc.h:111
uint16_t slew_pos
Definition: plat_fsc.h:107
uint8_t pid_tbl_num
Definition: plat_fsc.h:102
uint8_t out_limit_max
Definition: plat_fsc.h:105
uint8_t out_limit_min
Definition: plat_fsc.h:104
uint16_t fsc_poll_count
Definition: plat_fsc.h:114
uint16_t slew_neg
Definition: plat_fsc.h:106
uint8_t sw_tbl_num
Definition: plat_fsc.h:99
stepwise_cfg * sw_tbl
Definition: plat_fsc.h:98
uint8_t interval
Definition: plat_fsc.h:108
uint8_t is_init
Definition: plat_fsc.h:116
pid_cfg * pid_tbl
Definition: plat_fsc.h:101