OpenBIC
OpenSource Bridge-IC
plat_fsc.c File Reference
#include "plat_fsc.h"
#include <stdlib.h>
#include <libutil.h>
#include "sensor.h"
#include "plat_sensor_table.h"
#include "plat_status.h"
#include <logging/log.h>
Include dependency graph for plat_fsc.c:

Macros

#define FSC_PRINTF(fmt, ...)
 

Functions

 LOG_MODULE_REGISTER (plat_fsc)
 
 K_KERNEL_STACK_MEMBER (fsc_thread_stack, 2048)
 
uint8_t fsc_debug_set (uint8_t enable)
 
uint8_t fsc_debug_get (void)
 
uint8_t get_fsc_enable_flag (void)
 
void set_fsc_enable_flag (uint8_t flag)
 
uint8_t get_fsc_tbl_enable (void)
 
void set_fsc_tbl_enable (uint8_t flag)
 
uint8_t get_fsc_setpoint (uint8_t idx)
 
void set_fsc_setpoint (uint8_t idx, uint8_t val)
 
uint8_t get_fsc_duty_cache (uint8_t zone, uint8_t *cache)
 
bool get_fsc_poll_count (uint8_t zone, uint8_t *count)
 
void change_lpm_setpoint (uint8_t onoff)
 
void change_temp_setpoint (uint8_t onoff)
 
void controlFSC (uint8_t action)
 Function to control the FSC thread. More...
 
void fsc_init (void)
 

Variables

struct k_thread fsc_thread
 
zone_cfg zone_table []
 
uint32_t zone_table_size
 
pid_cfg pump_pid_table []
 
stepwise_cfg pump_stepwise_auto_mode_table []
 
stepwise_cfg pump_stepwise_auto_tune_table []
 

Macro Definition Documentation

◆ FSC_PRINTF

#define FSC_PRINTF (   fmt,
  ... 
)
Value:
do { \
if (enable_debug_print) { \
printf(fmt, ##__VA_ARGS__); \
} \
} while (0)

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_duty_cache()

uint8_t get_fsc_duty_cache ( uint8_t  zone,
uint8_t *  cache 
)

◆ get_fsc_enable_flag()

uint8_t get_fsc_enable_flag ( void  )

◆ get_fsc_poll_count()

bool get_fsc_poll_count ( uint8_t  zone,
uint8_t *  count 
)

◆ get_fsc_setpoint()

uint8_t get_fsc_setpoint ( uint8_t  idx)

◆ get_fsc_tbl_enable()

uint8_t get_fsc_tbl_enable ( void  )

◆ K_KERNEL_STACK_MEMBER()

K_KERNEL_STACK_MEMBER ( fsc_thread_stack  ,
2048   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fsc  )

◆ 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)

Variable Documentation

◆ fsc_thread

struct k_thread fsc_thread

◆ pump_pid_table

pid_cfg pump_pid_table[]
extern

◆ pump_stepwise_auto_mode_table

stepwise_cfg pump_stepwise_auto_mode_table[]
extern

◆ pump_stepwise_auto_tune_table

stepwise_cfg pump_stepwise_auto_tune_table[]
extern

◆ zone_table

zone_cfg zone_table[]
extern

◆ zone_table_size

uint32_t zone_table_size
extern