Index: NVDataMgmtHDRecords.h =================================================================== diff -u -r192c8f1aa79ad0ef4a50be44a6ba37a8939ac823 -r77b29084a85f241dd6c83ef838e076bac666b11c --- NVDataMgmtHDRecords.h (.../NVDataMgmtHDRecords.h) (revision 192c8f1aa79ad0ef4a50be44a6ba37a8939ac823) +++ NVDataMgmtHDRecords.h (.../NVDataMgmtHDRecords.h) (revision 77b29084a85f241dd6c83ef838e076bac666b11c) @@ -33,7 +33,7 @@ // ********** public definitions ********** #define MAX_TOP_LEVEL_PN_CHARS 10U ///< Max number of characters for top level part number. -#define MAX_TOP_LEVEL_SN_CHARS 15U ///< Max number of characters for top level serial number. +#define MAX_TOP_LEVEL_SN_CHARS 20U ///< Max number of characters for top level serial number. #ifndef _RELEASE_ /// Software configuration enums @@ -81,6 +81,8 @@ SW_CONFIG_ENABLE_DIALYSATE_INLET_PUMP_OPEN_LOOP, ///< Software configuration enable dialysate inlet pump open loop. SW_CONFIG_DISABLE_SWITCHES_MONITOR, ///< Software configuration disable switches monitor. SW_CONFIG_ENABLE_VBA_SPECIAL_POSITION_C, ///< Software configuration enable VBA special position C. + SW_CONFIG_ENABLE_V3_SYSTEM, ///< Software configuration enable V3 system. + SW_CONFIG_DISABLE_SERVICE_AND_DISINFECT_CHECK, ///< Software configuration disable service and disinfect checks. NUM_OF_SW_CONFIGS ///< Number of software configurations. } SOFTWARE_CONFIG_T; #endif @@ -146,6 +148,14 @@ NUM_OF_CAL_DATA_HD_TEMP_SENSORS, ///< Number of HD temperature sensors. } CAL_DATA_HD_TEMEPERATURE_SENSORS_T; +/// HD usage info items +typedef enum hd_usage_items +{ + USAGE_INFO_TX_HOURS_SINCE_LAST_SRVC = 0, ///< Usage info Tx hours since last service. + USAGE_INFO_START_TX_TIME, ///< Usage info Tx start time. + NUM_OF_USAGE_INFO_ITEMS ///< Number of usage info items. +} HD_USAGE_INFO_ITEMS_T; + #pragma pack(push, 1) /// Polynomial calibration structure typedef struct @@ -250,6 +260,7 @@ U08 serviceLoc; ///< HD service location. U32 lastServiceEpochDate; ///< HD last service date in epoch. U32 serviceIntervalSeconds; ///< HD service interval in seconds. + U32 lastResetTimeEpoch; ///< Last time the record was reset in epoch. U16 crc; ///< CRC for the HD service record structure. } HD_SERVICE_RECORD_T; @@ -259,6 +270,7 @@ F32 txTimeTotalHrs; ///< Treatment time total in hours (never reset). F32 txTimeSinceLastSrvcHrs; ///< Treatment time since last service in hours. U32 txLastStartTimeEpoch; ///< Last treatment time in epoch. + U32 lastResetTimeEpoch; ///< Last time the record was reset in epoch. U16 crc; ///< CRC for the HD usage info structure. } HD_USAGE_INFO_RECORD_T;