Index: firmware/App/Controllers/DGInterface.h =================================================================== diff -u -rde22eef34c821f425e864f8dea32f61cd2141fb4 -r37733a07bec6a752717a9eadcab000685546eb83 --- firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision de22eef34c821f425e864f8dea32f61cd2141fb4) +++ firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 37733a07bec6a752717a9eadcab000685546eb83) @@ -95,6 +95,16 @@ BOOL isDGUsageInfoAvailable; ///< Flag to indicate DG usage info is available. } DG_SERVICE_AND_USAGE_DATA_T; +/// Tdi temperature up/down counters when the temperature varies above/below threshold value. +typedef struct +{ + U32 tdiTempUpCounter; ///< tdi temperature Up counter + U32 tdiTempDownCounter; ///< tdi temperature down counter + U32 prevTdiTempUpCounter; ///< previous tdi temperature Up counter + U32 prevTdiTempDownCounter; ///< previous tdi temperature down counter + BOOL clearAlarmStartTime; ///< to clear temp high alarm, use persistent method +} DG_TDI_TEMP_COUNTER_T; + // ********** public function prototypes ********** void initDGInterface( void ); @@ -120,6 +130,7 @@ DG_DISINFECT_UI_STATES_T getDGDisinfectsStates( void ); DG_MIXING_RATIOS_T getDGMixingRatios( void ); void getHDVersionDGServiceAndUsageData( DG_SERVICE_AND_USAGE_DATA_T* data ); +void resetTdiTempCounters (void); void setDGOpMode( U32 opMode, U32 subMode ); void setDialysateTemperatureReadings( F32 tdi, F32 tro, F32 thd );