OpenBIC
OpenSource Bridge-IC
plat_hwmon.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _pump_reset_struct
 
struct  _pump_running_time_struct
 

Typedefs

typedef struct _pump_reset_struct pump_reset_struct
 
typedef struct _pump_running_time_struct pump_running_time
 

Enumerations

enum  PUMP_STATE {
  PUMP_REDUNDENT_SWITCHED = 0 , MANUAL_CONTROL_PUMP = 1 , MANUAL_CONTROL_FAN = 2 , AUTOTUNE_FLOW_CONTROL = 3 ,
  AUTOTUNE_PRESSURE_BALANCE_CONTROL = 4 , SYSTEM_STOP = 5 , RPU_REMOTE_POWER_CYCLE = 6 , MANUAL_CONTROL = 9 ,
  CLEAR_PUMP_RUNNING_TIME = 10 , CLEAR_LOG = 11 , PUMP_1_RESET = 12 , PUMP_2_RESET = 13 ,
  PUMP_3_RESET = 14
}
 
enum  PUMP_NUM { PUMP_1_UPTIME , PUMP_2_UPTIME , PUMP_3_UPTIME , PUMP_MAX_NUM }
 

Functions

bool clear_log_for_modbus_pump_setting (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_pump1_reset (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_pump2_reset (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_pump3_reset (pump_reset_struct *data, uint8_t bit_val)
 
bool close_pump (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_set_manual_flag (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_set_auto_tune_flag (pump_reset_struct *data, uint8_t bit_val)
 
bool pump_setting_set_pump_redundant (pump_reset_struct *data, uint8_t bit_val)
 
bool modbus_pump_setting_unsupport_function (pump_reset_struct *data, uint8_t bit_val)
 
bool set_all_pump_power (bool switch_val)
 
bool rpu_remote_power_cycle_function (pump_reset_struct *data, uint8_t bit_val)
 
uint8_t get_pump_redundant_switch_time ()
 
void set_pump_redundant_switch_time (uint8_t time)
 
void set_pump_redundant_switch_time_type (uint8_t type)
 
void pump_redundant_enable (uint8_t onoff)
 
uint8_t pwm_control (uint8_t group, uint8_t duty)
 
bool get_pump_uptime_secs (uint8_t pump_num, uint32_t *return_uptime)
 
bool set_pump_uptime_secs (uint8_t pump_1_set, uint8_t pump_2_set, uint8_t pump_3_set)
 
bool get_pump_last_switch_time (uint8_t pump_num, uint32_t *return_uptime)
 
bool get_pump_current_boot_unrunning_time (uint8_t pump_num, uint32_t *return_uptime)
 
bool modbus_clear_pump_running_time_function (pump_reset_struct *data, uint8_t bit_val)
 

Typedef Documentation

◆ pump_reset_struct

◆ pump_running_time

Enumeration Type Documentation

◆ PUMP_NUM

enum PUMP_NUM
Enumerator
PUMP_1_UPTIME 
PUMP_2_UPTIME 
PUMP_3_UPTIME 
PUMP_MAX_NUM 

◆ PUMP_STATE

enum PUMP_STATE
Enumerator
PUMP_REDUNDENT_SWITCHED 
MANUAL_CONTROL_PUMP 
MANUAL_CONTROL_FAN 
AUTOTUNE_FLOW_CONTROL 
AUTOTUNE_PRESSURE_BALANCE_CONTROL 
SYSTEM_STOP 
RPU_REMOTE_POWER_CYCLE 
MANUAL_CONTROL 
CLEAR_PUMP_RUNNING_TIME 
CLEAR_LOG 
PUMP_1_RESET 
PUMP_2_RESET 
PUMP_3_RESET 

Function Documentation

◆ clear_log_for_modbus_pump_setting()

bool clear_log_for_modbus_pump_setting ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ close_pump()

bool close_pump ( pump_reset_struct data,
uint8_t  bit_val 
)
Here is the call graph for this function:

◆ get_pump_current_boot_unrunning_time()

bool get_pump_current_boot_unrunning_time ( uint8_t  pump_num,
uint32_t *  return_uptime 
)

◆ get_pump_last_switch_time()

bool get_pump_last_switch_time ( uint8_t  pump_num,
uint32_t *  return_uptime 
)

◆ get_pump_redundant_switch_time()

uint8_t get_pump_redundant_switch_time ( )

◆ get_pump_uptime_secs()

bool get_pump_uptime_secs ( uint8_t  pump_num,
uint32_t *  return_uptime 
)
Here is the call graph for this function:

◆ modbus_clear_pump_running_time_function()

bool modbus_clear_pump_running_time_function ( pump_reset_struct data,
uint8_t  bit_val 
)
Here is the call graph for this function:

◆ modbus_pump_setting_unsupport_function()

bool modbus_pump_setting_unsupport_function ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ pump_redundant_enable()

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

◆ pump_setting_pump1_reset()

bool pump_setting_pump1_reset ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ pump_setting_pump2_reset()

bool pump_setting_pump2_reset ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ pump_setting_pump3_reset()

bool pump_setting_pump3_reset ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ pump_setting_set_auto_tune_flag()

bool pump_setting_set_auto_tune_flag ( pump_reset_struct data,
uint8_t  bit_val 
)
Here is the call graph for this function:

◆ pump_setting_set_manual_flag()

bool pump_setting_set_manual_flag ( pump_reset_struct data,
uint8_t  bit_val 
)
Here is the call graph for this function:

◆ pump_setting_set_pump_redundant()

bool pump_setting_set_pump_redundant ( pump_reset_struct data,
uint8_t  bit_val 
)
Here is the call graph for this function:

◆ pwm_control()

uint8_t pwm_control ( uint8_t  group,
uint8_t  duty 
)
Here is the call graph for this function:

◆ rpu_remote_power_cycle_function()

bool rpu_remote_power_cycle_function ( pump_reset_struct data,
uint8_t  bit_val 
)

◆ set_all_pump_power()

bool set_all_pump_power ( bool  switch_val)
Here is the call graph for this function:

◆ set_pump_redundant_switch_time()

void set_pump_redundant_switch_time ( uint8_t  time)

◆ set_pump_redundant_switch_time_type()

void set_pump_redundant_switch_time_type ( uint8_t  type)

◆ set_pump_uptime_secs()

bool set_pump_uptime_secs ( uint8_t  pump_1_set,
uint8_t  pump_2_set,
uint8_t  pump_3_set 
)
Here is the call graph for this function: