Index: NVDataMgmtDGRecords.h =================================================================== diff -u -r6e5e4e282f7e42bcf561cd508639640ecf733b32 -r59871c9964559b5137781af9c2eeed6bab18ef73 --- NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision 6e5e4e282f7e42bcf561cd508639640ecf733b32) +++ NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision 59871c9964559b5137781af9c2eeed6bab18ef73) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. +* Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file NVDataMgmtDGRecords.h * * @author (last) Dara Navaei -* @date (last) 02-Feb-2023 +* @date (last) 10-Jun-2023 * * @author (original) Dara Navaei * @date (original) 12-Feb-2021 @@ -48,7 +48,7 @@ SW_CONFIG_DISABLE_HEATERS_MONITOR, ///< Software configuration disable heaters monitor. SW_CONFIG_DISABLE_DRAIN_PUMP_MONITOR, ///< Software configuration disable drain pump monitor. SW_CONFIG_DISABLE_RO_PUMP_MONITOR, ///< Software configuration disable RO pump monitor. - SW_CONFIG_DISABLE_RO_RATIO_CHECK, ///< Software configuration disable RO ratio check + SW_CONFIG_DISABLE_RO_RATIO_CHECK, // TODO remove ///< Software configuration disable RO ratio check SW_CONFIG_DISABLE_COND_SENSOR_CHECK, ///< Software configuration disable conductivity sensor check. SW_CONFIG_DISABLE_WATER_QUALITY_CHECK, ///< Software configuration disable water quality check. SW_CONFIG_DISABLE_FLOW_VS_LOAD_CELL_CHECK_IN_FILL, ///< Software configuration disable flow vs. load cell check in fill. @@ -57,13 +57,13 @@ SW_CONFIG_DISABLE_CONC_PUMPS, ///< Software configuration disable concentrate pumps. SW_CONFIG_DISABLE_CAPS_MONITOR, ///< Software configuration disable cap monitor. SW_CONFIG_DISABLE_UV_REACTORS, ///< Software configuration disable UV reactors. - SW_CONFIG_DISABLE_ACID_ALARMS, ///< Software configuration disable acid alarms. + SW_CONFIG_DISABLE_VOLTAGES_MONITOR, ///< Software configuration disable voltages monitor. SW_CONFIG_DISABLE_BICARB_ALARMS, ///< Software configuration disable bicarb alarms. SW_CONFIG_DISABLE_EMPTY_BOTTLES_ALARM, ///< Software configuration disable empty bottle alarms. - SW_CONFIG_DISABLE_BICARB_CONDUCTIVITY_TEST, ///< Software configuration disable bicarb conductivity test. - SW_CONFIG_DISABLE_ACID_CONDUCTIVITY_TEST, ///< Software configuration disable acid conductivity test. + SW_CONFIG_DISABLE_BICARB_CONDUCTIVITY_TEST, // TODO remove ///< Software configuration disable bicarb conductivity test. + SW_CONFIG_DISABLE_ACID_CONDUCTIVITY_TEST, // TODO remove ///< Software configuration disable acid conductivity test. SW_CONFIG_DISABLE_CONC_PUMPS_SPEED_ALARM, ///< Software configuration disable concentrate pumps speed alarm. - SW_CONFIG_DISABLE_MIXING_IN_FILL, ///< Software configuration disable mixing in fill. + SW_CONFIG_DISABLE_MIXING_IN_FILL, // TODO remove ///< Software configuration disable mixing in fill. SW_CONFIG_DISABLE_TEMPERATURE_SENSORS_ALARM, ///< Software configuration disable temperature sensors alarm. SW_CONFIG_DISABLE_CONCENTRATE_PUMPS_PARK, ///< Software configuration disable concentrate pumps park feature. SW_CONFIG_ENABLE_USING_TPO_FOR_PRIMARY_HEATER_CONTROL, ///< Software configuration enable TPo for primary heater control. @@ -91,6 +91,7 @@ GET_CAL_FANS_RECORD, ///< Get fans calibration record. GET_CAL_PRE_RO_PURGE_VOLUME_RECORD, ///< Get pre RO purge volume record. GET_CAL_FILTERS_RECORD, ///< Get filters record. + GET_CAL_FILL_CONDUCTIVITIES_RECORD, ///< Get fill conductivities record. GET_INF_HEATERS_RECORD, ///< Get heaters information form the the last run. GET_SYS_RECORD, ///< Get system record. GET_SRV_RECORD, ///< Get service record. @@ -159,8 +160,8 @@ CAL_DATA_CPO_COND_SENSOR, ///< CPo conductivity sensor. CAL_DATA_CD1_COND_SENSOR, ///< CD1 conductivity sensor. CAL_DATA_CD2_COND_SENSOR, ///< CD2 conductivity sensor. - CAL_DATA_CD1_CHEM_DIS_COND_SENSOR, ///< CD1 chemical disinfect conductivity sensor. - CAL_DATA_CD2_CHEM_DIS_COND_SENSOR, ///< CD2 chemical disinfect conductivity sensor. + CAL_DATA_CD2_COND_SENSOR_CHEM_DISINFECT, ///< CD2 chemical disinfect conductivity sensor. + CAL_DATA_CD2_COND_SENSOR_FILL_BICARB_TEST, ///< CD2 conductivity sensor fill bicarb test. NUM_OF_CAL_DATA_COND_SENSORS, ///< Number of conductivity sensors. } CAL_DATA_DG_COND_SENSORS_T; @@ -237,6 +238,31 @@ NUM_OF_USAGE_INFO_ITEMS ///< Number of usage info items. } DG_USAGE_INFO_ITEMS_T; +/// DG acid types +typedef enum dg_acid_types +{ + ACID_08_1251_1 = 0, ///< Acid type 08-1251-1. + ACID_08_2251_0, ///< Acid type 08-2251-0. + ACID_08_3251_9, ///< ACid type 08-3251-9. + NUM_OF_ACID_TYPE ///< Number of acid types. +} DG_ACID_TYPES_T; + +/// DG bicarb types +typedef enum db_bicarb_types +{ + BICARB_08_677753_0 = 0, ///< Bicarb type 08-677753-0 + NUM_OF_BICARB_TYPE ///< Number of bicarb types. +} DG_BICARB_TYPES_T; + +/// DG fill conductivity tests +typedef enum dg_conductivity_ops +{ + FILL_COND_NORMAL_OP = 0, ///< Fill conductivity normal operation. + FILL_COND_ACID_TEST, ///< Fill conductivity acid test. + FILL_COND_BICARB_TEST, ///< Fill conductivity bicarb test. + NUM_OF_FILL_COND_TEST ///< Number of fill conductivity test. +} DG_FILL_COND_OPS_T; + #pragma pack(push, 1) /// Polynomial calibration structure typedef struct @@ -453,6 +479,21 @@ U16 crc; ///< CRC for the reservoirs and UF record. } DG_HEATING_CAL_RECORD_T; +/// DG acid and bicarb fill conductivity values +typedef struct +{ + F32 acidConduSPerCM; ///< Acid conductivity uS/cm. + F32 bicarbConduSPerCM; ///< Bicarb conductivity uS/cm. + U32 calibrationTime; ///< Calibration time. + U16 crc; ///< CRC for the acid/bicarb fill conductivity values. +} DG_ACID_BICARB_FILL_COND_VALUES_T; + +/// DG acid and bicarb fill conductivity record +typedef struct +{ + DG_ACID_BICARB_FILL_COND_VALUES_T fillCondValues[ NUM_OF_ACID_TYPE ][ NUM_OF_FILL_COND_TEST ]; ///< Acid and bicarb fill conductivity values. +} DG_CHEMICALS_FILL_COND_CAL_RECORD_T; + /// DG systems record structure typedef struct { @@ -489,7 +530,6 @@ U08 swConfigs[ NUM_OF_SW_CONFIGS ]; ///< Software configurations. } DG_SW_CONFIG_RECORD_T; #endif - #pragma pack(pop) /**@}*/