OpenBIC
OpenSource Bridge-IC
plat_fsc.h File Reference
#include "stdio.h"
#include "stdint.h"
#include "stdbool.h"
Include dependency graph for plat_fsc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stepwise_dict
 
struct  stepwise_cfg
 
struct  pid_cfg
 
struct  fsc_type_mapping
 
struct  zone_cfg
 

Macros

#define FSC_TEMP_INVALID   0x8000
 
#define FSC_RPM_INVALID   0xFFFF
 
#define FSC_ENABLE   1
 
#define FSC_DISABLE   0
 
#define SENSOR_STEPWISE_STEPS_MAX   16
 

Enumerations

enum  FSC_ERROR {
  FSC_ERROR_NONE = 0 , FSC_ERROR_UNKNOW , FSC_ERROR_OUT_OF_RANGE , FSC_ERROR_NOT_FOUND_ZONE_TABLE ,
  FSC_ERROR_NOT_FOUND_STEPWISE_TABLE , FSC_ERROR_NOT_FOUND_PID_TABLE , FSC_ERROR_NULL_ARG
}
 
enum  FSC_TYPE {
  FSC_TYPE_DISABLE = 0 , FSC_TYPE_STEPWISE , FSC_TYPE_PID , FSC_TYPE_BOTH ,
  FSC_TYPE_DEFAULT
}
 
enum  FSC_MODE_E { FSC_MODE_UNKNOW = 0 , FSC_MODE_AUTO_MODE , FSC_MODE_MANUAL_MODE , FSC_MODE_SEMI_MODE }
 

Functions

uint8_t get_fsc_enable_flag (void)
 
void set_fsc_enable_flag (uint8_t flag)
 
void set_fsc_tbl_enable (uint8_t flag)
 
void fsc_init (void)
 
void controlFSC (uint8_t action)
 Function to control the FSC thread. More...
 
uint8_t fsc_debug_set (uint8_t enable)
 
uint8_t fsc_debug_get (void)
 
uint8_t get_fsc_setpoint (uint8_t idx)
 
void set_fsc_setpoint (uint8_t idx, uint8_t val)
 
void change_lpm_setpoint (uint8_t onoff)
 
void change_temp_setpoint (uint8_t onoff)
 

Macro Definition Documentation

◆ FSC_DISABLE

#define FSC_DISABLE   0

◆ FSC_ENABLE

#define FSC_ENABLE   1

◆ FSC_RPM_INVALID

#define FSC_RPM_INVALID   0xFFFF

◆ FSC_TEMP_INVALID

#define FSC_TEMP_INVALID   0x8000

◆ SENSOR_STEPWISE_STEPS_MAX

#define SENSOR_STEPWISE_STEPS_MAX   16

Enumeration Type Documentation

◆ FSC_ERROR

enum FSC_ERROR
Enumerator
FSC_ERROR_NONE 
FSC_ERROR_UNKNOW 
FSC_ERROR_OUT_OF_RANGE 
FSC_ERROR_NOT_FOUND_ZONE_TABLE 
FSC_ERROR_NOT_FOUND_STEPWISE_TABLE 
FSC_ERROR_NOT_FOUND_PID_TABLE 
FSC_ERROR_NULL_ARG 

◆ FSC_MODE_E

enum FSC_MODE_E
Enumerator
FSC_MODE_UNKNOW 
FSC_MODE_AUTO_MODE 
FSC_MODE_MANUAL_MODE 
FSC_MODE_SEMI_MODE 

◆ FSC_TYPE

enum FSC_TYPE
Enumerator
FSC_TYPE_DISABLE 
FSC_TYPE_STEPWISE 
FSC_TYPE_PID 
FSC_TYPE_BOTH 
FSC_TYPE_DEFAULT 

Function Documentation

◆ change_lpm_setpoint()

void change_lpm_setpoint ( uint8_t  onoff)
Here is the call graph for this function:

◆ change_temp_setpoint()

void change_temp_setpoint ( uint8_t  onoff)
Here is the call graph for this function:

◆ controlFSC()

void controlFSC ( uint8_t  action)

Function to control the FSC thread.

Parameters
actionThe specified action, can be FSC_DISABLE (turn off) or FSC_ENABLE (turn on).

◆ fsc_debug_get()

uint8_t fsc_debug_get ( void  )

◆ fsc_debug_set()

uint8_t fsc_debug_set ( uint8_t  enable)

◆ fsc_init()

void fsc_init ( void  )

◆ get_fsc_enable_flag()

uint8_t get_fsc_enable_flag ( void  )

◆ get_fsc_setpoint()

uint8_t get_fsc_setpoint ( uint8_t  idx)

◆ set_fsc_enable_flag()

void set_fsc_enable_flag ( uint8_t  flag)

◆ set_fsc_setpoint()

void set_fsc_setpoint ( uint8_t  idx,
uint8_t  val 
)

◆ set_fsc_tbl_enable()

void set_fsc_tbl_enable ( uint8_t  flag)