Index: AlarmDefs.h =================================================================== diff -u -reed2329e907013eced8e367f39b78a44d34bbe62 -r7a5bff92f8d3e9d069513e24f8cf51ad9f1e5903 --- AlarmDefs.h (.../AlarmDefs.h) (revision eed2329e907013eced8e367f39b78a44d34bbe62) +++ AlarmDefs.h (.../AlarmDefs.h) (revision 7a5bff92f8d3e9d069513e24f8cf51ad9f1e5903) @@ -14,25 +14,25 @@ * @date (original) 11-Feb-2020 * ***************************************************************************/ - -#ifndef __ALARM_DEFINITIONS_H__ -#define __ALARM_DEFINITIONS_H__ - -// ********** public definitions ********** +#ifndef __ALARM_DEFINITIONS_H__ +#define __ALARM_DEFINITIONS_H__ + +// ********** public definitions ********** + /** * @addtogroup AlarmManagement * @{ */ - + #define ALM_ESC_1_MIN (1 * 60000) ///< Number of ms in 1 minute. #define ALM_ESC_4_MIN (4 * 60000) ///< Number of ms in 4 minutes. #define ALM_ESC_5_MIN (5 * 60000) ///< Number of ms in 5 minutes. #define ALM_ESC_10_MIN (10 * 60000) ///< Number of ms in 10 minutes. /// Enumeration of alarm IDs. -enum Alarm_List -{ +enum Alarm_List +{ ALARM_ID_NO_ALARM = 0, ///< Indication for when no alarms is a possible situation ALARM_ID_HD_SOFTWARE_FAULT = 1, ///< HD Software fault. Software found itself in an unexpected state ALARM_ID_STUCK_BUTTON_TEST_FAILED = 2, ///< Stuck button POST failure. Stop or Off button detected to be pressed for at least 1 second during test shortly after power up @@ -79,10 +79,10 @@ ALARM_ID_NVDATA_SRVC_RECORD_CRC_ERROR = 43, ///< Service record CRC failure ALARM_ID_NVDATA_CAL_RECORD_CRC_ERROR = 44, ///< Calibration record CRC failure ALARM_ID_NVDATA_HW_USAGE_DATA_CRC_ERROR = 45, ///< HW usage data (treatment time in HD and total consumed water in DG) failure - AlARM_ID_NVDATA_DISINFECTION_DATE_CRC_ERROR = 46, ///< Last disinfection date CRC error + AlARM_ID_NVDATA_DISINFECTION_DATE_CRC_ERROR = 46, ///< Last disinfection date CRC error ALARM_ID_RO_PUMP_OUT_PRESSURE_OUT_OF_RANGE = 47, ///< Pressure at outlet of RO pump is out of range - ALARM_ID_TEMPERATURE_SENSORS_FAULT = 48, ///< DG temperature sensors fault - ALARM_ID_FPGA_COMM_TIMEOUT = 49, ///< FPGA communication down for too long + ALARM_ID_TEMPERATURE_SENSORS_FAULT = 48, ///< DG temperature sensors fault + ALARM_ID_FPGA_COMM_TIMEOUT = 49, ///< FPGA communication down for too long ALARM_ID_HD_COMM_TIMEOUT = 50, ///< HD communication timeout ALARM_ID_VALVE_CONTROL_FAILURE = 51, ///< FPGA not accepting commanded valve states ALARM_ID_BLOOD_PUMP_FLOW_VS_MOTOR_SPEED_CHECK = 52, ///< Blood pump failed flow vs. motor speed check. Mismatch with flow rate and rate implied by motor speed @@ -143,13 +143,17 @@ ALARM_ID_END_OF_DIALYSIS_TREATMENT_WARNING = 107, ///< HD end of treatment warning ALARM_ID_END_OF_DIALYSIS_TREATMENT_ALARM = 108, ///< HD end of treatment alarm (user not acting to end treatment) ALARM_ID_END_OF_DIALYSIS_TREATMENT_ALARM_HIGH = 109, ///< HD end of treatment alarm (high priority - user still not acting to end treatment) - NUM_OF_ALARM_IDS ///< Total number of alarms + + NUM_OF_ALARM_IDS, ///< Total number of alarms + + // quick_fix_01 + ALARM_ID_TEMPERATURE_SENSORS_INCONSISTENT = 255, }; typedef enum Alarm_List ALARM_ID_T; ///< Type for alarm list enumeration -/// Enumeration of alarm priorities. -enum Alarm_Priorities -{ +/// Enumeration of alarm priorities. +enum Alarm_Priorities +{ ALARM_PRIORITY_NONE = 0, ///< Indicates not an alarm or no alarms active at this time ALARM_PRIORITY_LOW = 1, ///< Low priority alarm ALARM_PRIORITY_MEDIUM = 2, ///< Medium priority alarm @@ -350,5 +354,5 @@ #endif // HD build /**@}*/ - + #endif