#include <stdint.h>
#include "plat_util.h"
#include "plat_threshold.h"
Go to the source code of this file.
|
enum | AALC_MODBUS_SENSOR_STATUS_E {
RPU_FAN_STATUS
, RPU_PUMP1_STATUS
, RPU_PUMP2_STATUS
, RPU_PUMP3_STATUS
,
RPU_RESERVOIR_STATUS
, ALL_PUMP_STATUS
, ALL_RPU_INTERNAL_FAN_STATUS
, PUMP_FAN_STATUS
,
HEX_BLADDER_LEVEL_STATUS
, AALC_SENSOR_ALARM
, HEX_AIR_THERMOMETER_STATUS
, AALC_STATUS_ALARM
,
HEX_FAN_ALARM_1
, HEX_FAN_ALARM_2
, HEX_FAN_COMMS_ALARM
, HSC_POWER_STATUS
,
FB_HSC_POWER_STATUS
, HSC_COMMS_STATUS
, FB_HSC_COMMS_STATUS
} |
|
enum | AALC_STICKY_STATUS_E {
STICKY_ITRACK_CHASSIS0_LEAKAGE
, STICKY_ITRACK_CHASSIS1_LEAKAGE
, STICKY_ITRACK_CHASSIS2_LEAKAGE
, STICKY_ITRACK_CHASSIS3_LEAKAGE
,
STICKY_RPU_INTERNAL_LEAKAGE_ABNORMAL
, STICKY_RPU_EXTERNAL_LEAKAGE_ABNORMAL
, STICKY_RPU_OPT_EXTERNAL_LEAKAGE1_ABNORMAL
, STICKY_RPU_OPT_EXTERNAL_LEAKAGE2_ABNORMAL
,
STICKY_HEX_RACK_PAN_LEAKAGE
, STICKY_HEX_RACK_FLOOR_LEAKAGE
, STICKY_HEX_RACK_PAN_LEAKAGE_RELAY
, STICKY_HEX_RACK_FLOOR_LEAKAGE_RELAY
,
STICKY_STATUS_MAX
} |
|
enum | PUMP_STATUS_E {
PUMP_STATUS_DISABLE = 0
, PUMP_STATUS_REDAUNDANT = 1
, PUMP_STATUS_ENABLE = 2
, PUMP_STATUS_MAINTAIN = 3
,
PUMP_STATUS_ABNORMAL = 4
} |
|
enum | AALC_STATUS_LEAK_E {
AALC_STATUS_IT_LEAK_0 = 0
, AALC_STATUS_IT_LEAK_1 = 1
, AALC_STATUS_IT_LEAK_2 = 2
, AALC_STATUS_IT_LEAK_3 = 3
,
AALC_STATUS_CDU_LEAKAGE = 4
, AALC_STATUS_RACK_LEAKAGE = 5
, AALC_STATUS_LEAK_E_MAX
} |
|
enum | STATUS_FLAG_E {
STATUS_FLAG_LEAK
, STATUS_FLAG_FAILURE
, STATUS_FLAG_AUTO_TUNE
, STATUS_FLAG_PUMP_REDUNDANT
,
STATUS_FLAG_SYSTEM_READY
, STATUS_FLAG_SETPOINT_FLAG
, STATUS_FLAG_DEBUG_MODE
, STATUS_FLAG_MAX
} |
|
enum | PUMP_REDUNDANT_STATUS_E {
PUMP_REDUNDANT_DISABLE
, PUMP_REDUNDANT_12
, PUMP_REDUNDANT_13
, PUMP_REDUNDANT_23
,
PUMP_REDUNDANT_MAX
} |
|
enum | FAILURE_STATUS_E {
PUMP_FAIL_EMERGENCY_BUTTON
, PUMP_FAIL_LEAK
, PUMP_FAIL_ABNORMAL_PRESS
, PUMP_FAIL_ABNORMAL_FLOW_RATE
,
PUMP_FAIL_LOW_LEVEL
, PUMP_FAIL_LOW_RPU_LEVEL
, PUMP_FAIL_PUMP1_UCR
, PUMP_FAIL_PUMP2_UCR
,
PUMP_FAIL_PUMP3_UCR
, PUMP_FAIL_TWO_PUMP_LCR
, PUMP_FAIL_CLOSE_PUMP
, PUMP_FAIL_TWO_HEX_FAN_FAILURE
,
PUMP_FAIL_ABNORMAL_COOLANT_INLET_TEMP
, PUMP_FAIL_ABNORMAL_COOLANT_OUTLET_TEMP
, PUMP_FAIL_ABNORMAL_AIR_INLET_TEMP
, PUMP_FAIL_FLOW_RATE_NOT_ACCESS
,
HEX_FAN_FAIL_COOLANT_OUTLET_TEMP_NOT_ACCESS
, FAILURE_STATUS_MAX
} |
|
enum | SETPOINT_FLAG_STATUS_E { SETPOINT_FLAG_LPM
, SETPOINT_FLAG_OUTLET_TEMP
, SETPOINT_FLAG_MAX
} |
|
enum | DEBUG_MODE_STATUS_E { DEBUG_MODE_PUMP_THRESHOLD
, DEBUG_MODE_MAX
} |
|
◆ AALC_MODBUS_SENSOR_STATUS_E
Enumerator |
---|
RPU_FAN_STATUS | |
RPU_PUMP1_STATUS | |
RPU_PUMP2_STATUS | |
RPU_PUMP3_STATUS | |
RPU_RESERVOIR_STATUS | |
ALL_PUMP_STATUS | |
ALL_RPU_INTERNAL_FAN_STATUS | |
PUMP_FAN_STATUS | |
HEX_BLADDER_LEVEL_STATUS | |
AALC_SENSOR_ALARM | |
HEX_AIR_THERMOMETER_STATUS | |
AALC_STATUS_ALARM | |
HEX_FAN_ALARM_1 | |
HEX_FAN_ALARM_2 | |
HEX_FAN_COMMS_ALARM | |
HSC_POWER_STATUS | |
FB_HSC_POWER_STATUS | |
HSC_COMMS_STATUS | |
FB_HSC_COMMS_STATUS | |
◆ AALC_STATUS_LEAK_E
Enumerator |
---|
AALC_STATUS_IT_LEAK_0 | |
AALC_STATUS_IT_LEAK_1 | |
AALC_STATUS_IT_LEAK_2 | |
AALC_STATUS_IT_LEAK_3 | |
AALC_STATUS_CDU_LEAKAGE | |
AALC_STATUS_RACK_LEAKAGE | |
AALC_STATUS_LEAK_E_MAX | |
◆ AALC_STICKY_STATUS_E
Enumerator |
---|
STICKY_ITRACK_CHASSIS0_LEAKAGE | |
STICKY_ITRACK_CHASSIS1_LEAKAGE | |
STICKY_ITRACK_CHASSIS2_LEAKAGE | |
STICKY_ITRACK_CHASSIS3_LEAKAGE | |
STICKY_RPU_INTERNAL_LEAKAGE_ABNORMAL | |
STICKY_RPU_EXTERNAL_LEAKAGE_ABNORMAL | |
STICKY_RPU_OPT_EXTERNAL_LEAKAGE1_ABNORMAL | |
STICKY_RPU_OPT_EXTERNAL_LEAKAGE2_ABNORMAL | |
STICKY_HEX_RACK_PAN_LEAKAGE | |
STICKY_HEX_RACK_FLOOR_LEAKAGE | |
STICKY_HEX_RACK_PAN_LEAKAGE_RELAY | |
STICKY_HEX_RACK_FLOOR_LEAKAGE_RELAY | |
STICKY_STATUS_MAX | |
◆ DEBUG_MODE_STATUS_E
Enumerator |
---|
DEBUG_MODE_PUMP_THRESHOLD | |
DEBUG_MODE_MAX | |
◆ FAILURE_STATUS_E
Enumerator |
---|
PUMP_FAIL_EMERGENCY_BUTTON | |
PUMP_FAIL_LEAK | |
PUMP_FAIL_ABNORMAL_PRESS | |
PUMP_FAIL_ABNORMAL_FLOW_RATE | |
PUMP_FAIL_LOW_LEVEL | |
PUMP_FAIL_LOW_RPU_LEVEL | |
PUMP_FAIL_PUMP1_UCR | |
PUMP_FAIL_PUMP2_UCR | |
PUMP_FAIL_PUMP3_UCR | |
PUMP_FAIL_TWO_PUMP_LCR | |
PUMP_FAIL_CLOSE_PUMP | |
PUMP_FAIL_TWO_HEX_FAN_FAILURE | |
PUMP_FAIL_ABNORMAL_COOLANT_INLET_TEMP | |
PUMP_FAIL_ABNORMAL_COOLANT_OUTLET_TEMP | |
PUMP_FAIL_ABNORMAL_AIR_INLET_TEMP | |
PUMP_FAIL_FLOW_RATE_NOT_ACCESS | |
HEX_FAN_FAIL_COOLANT_OUTLET_TEMP_NOT_ACCESS | |
FAILURE_STATUS_MAX | |
◆ PUMP_REDUNDANT_STATUS_E
Enumerator |
---|
PUMP_REDUNDANT_DISABLE | |
PUMP_REDUNDANT_12 | |
PUMP_REDUNDANT_13 | |
PUMP_REDUNDANT_23 | |
PUMP_REDUNDANT_MAX | |
◆ PUMP_STATUS_E
Enumerator |
---|
PUMP_STATUS_DISABLE | |
PUMP_STATUS_REDAUNDANT | |
PUMP_STATUS_ENABLE | |
PUMP_STATUS_MAINTAIN | |
PUMP_STATUS_ABNORMAL | |
◆ SETPOINT_FLAG_STATUS_E
Enumerator |
---|
SETPOINT_FLAG_LPM | |
SETPOINT_FLAG_OUTLET_TEMP | |
SETPOINT_FLAG_MAX | |
◆ STATUS_FLAG_E
Enumerator |
---|
STATUS_FLAG_LEAK | |
STATUS_FLAG_FAILURE | |
STATUS_FLAG_AUTO_TUNE | |
STATUS_FLAG_PUMP_REDUNDANT | |
STATUS_FLAG_SYSTEM_READY | |
STATUS_FLAG_SETPOINT_FLAG | |
STATUS_FLAG_DEBUG_MODE | |
STATUS_FLAG_MAX | |
◆ get_sensor_status_for_modbus_cmd()
uint16_t get_sensor_status_for_modbus_cmd |
( |
uint8_t |
status | ) |
|
◆ get_status_flag()
uint32_t get_status_flag |
( |
uint8_t |
idx | ) |
|
◆ get_sticky_sensor_status()
uint16_t get_sticky_sensor_status |
( |
uint8_t |
idx | ) |
|
◆ set_status_flag()
void set_status_flag |
( |
uint8_t |
idx, |
|
|
uint8_t |
bit, |
|
|
uint32_t |
val |
|
) |
| |
◆ set_sticky_sensor_status()
bool set_sticky_sensor_status |
( |
uint8_t |
idx, |
|
|
uint16_t |
val |
|
) |
| |