Index: NVDataMgmtDGRecords.h =================================================================== diff -u -red0b0d9fd80ba2e66bf6566ef47197812aec2b7a -r7ec006c5de3450610fd93dc92f1e1b2256109f8d --- NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision ed0b0d9fd80ba2e66bf6566ef47197812aec2b7a) +++ NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision 7ec006c5de3450610fd93dc92f1e1b2256109f8d) @@ -81,6 +81,7 @@ GET_CAL_BICARB_CONCENTRATES, ///< Get bicarb concentrates calibration data. GET_CAL_ACCEL_SENSORS, ///< Get accelerometers calibration data. GET_CAL_CONDUCTIVITY_SENSORS, ///< Get conductivity sensors calibration data. + GET_CAL_CONDUCTIVITY_SENSORS_TEMP_COMP, ///< Get conductivity sensors temperature compensation calibration data. GET_CAL_TEMP_SENSORS, ///< Get temperature sensors calibration data. GET_CAL_RSRVRS_VOL_RECORD, ///< Get reservoirs volume record. GET_CAL_HEATING_RECORD, ///< Get heating calibration record. @@ -165,6 +166,16 @@ NUM_OF_CAL_DATA_COND_SENSORS, ///< Number of conductivity sensors. } CAL_DATA_DG_COND_SENSORS_T; +/// DG conductivity sensors compensation values enumeration. +typedef enum dg_conductivity_sensors_comp +{ + CAL_DATA_CPI_COND_SENSOR_TEMP_COMP = 0, ///< CPi conductivity sensor temperature compensation value. + CAL_DATA_CPO_COND_SENSOR_TEMP_COMP, ///< CPo conductivity sensor temperature compensation value. + CAL_DATA_CD1_COND_SENSOR_TEMP_COMP, ///< CD1 conductivity sensor temperature compensation value. + CAL_DATA_CD2_COND_SENSOR_TEMP_COMP, ///< CD2 conductivity sensor temperature compensation value. + NUM_OF_CAL_DATA_COND_SENSORS_TEMP_COMP, ///< Number of conductivity sensors temperature compensation value. +} CAL_DATA_DG_COND_SENSORS_COMP_T; + /// DG pumps enumeration. typedef enum dg_pumps { @@ -276,6 +287,16 @@ U16 crc; ///< CRC for the polynomial calibration payload. } POLYNOMIAL_CAL_PAYLOAD_T; +/// DG calibration sensor temperature compensation calibration structure +typedef struct +{ + F32 gain; ///< Gain. + F32 coefficient; ///< Coefficient. + F32 offset; ///< Offset. + U32 calibrationTime; ///< Calibration time. + U16 crc; ///< CRC for the conductivity sensors temperature compensation cal payload. +} DG_COND_SENSOR_TEMP_COMP_CAL_PAYLOAD_T; + /// DG concentrate pumps one-gain payload typedef struct { @@ -342,6 +363,12 @@ POLYNOMIAL_CAL_PAYLOAD_T condSensors[ NUM_OF_CAL_DATA_COND_SENSORS ]; ///< Conductivity sensors to calibrate. } DG_COND_SENSORS_CAL_RECORD_T; +/// Conductivity sensors temperature compensation calibration structure +typedef struct +{ + DG_COND_SENSOR_TEMP_COMP_CAL_PAYLOAD_T condSensorsTempComp[ NUM_OF_CAL_DATA_COND_SENSORS_TEMP_COMP ]; ///< Conductivity sensors temperature compensation calibration. +} DG_COND_SENSORS_TEMP_COMP_CAL_RECORD_T; + /// Drain line volume calibration structure typedef struct {