Index: firmware/App/Modes/ModeHeatDisinfectActiveCool.h =================================================================== diff -u -r6499ea25921fcf67826fa0c35bb03caf411ba542 -r1475b55c0a91327f63a99ee5e40a7b55e0c43a06 --- firmware/App/Modes/ModeHeatDisinfectActiveCool.h (.../ModeHeatDisinfectActiveCool.h) (revision 6499ea25921fcf67826fa0c35bb03caf411ba542) +++ firmware/App/Modes/ModeHeatDisinfectActiveCool.h (.../ModeHeatDisinfectActiveCool.h) (revision 1475b55c0a91327f63a99ee5e40a7b55e0c43a06) @@ -32,6 +32,8 @@ // ********** public definitions ********** +#define RSRVRS_FULL_STABLE_TIME_COUNT ( ( 4 * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) ///< Reservoirs 1 & 2 full stable time in counts. + /// Heat disinfect active cool data publish struct typedef struct { @@ -41,6 +43,20 @@ U32 cancellationMode; ///< Heat disinfect active cool cancellation mode. } MODE_HEAT_DISINFECT_ACTIVE_COOL_DATA_T; +typedef struct +{ + LOAD_CELL_ID_T loadCell; + BOOL drainInit; + DG_RESERVOIR_STATUS_T rStatus; +} DIS_MODE_RSRVR_T; + +typedef struct +{ + DIS_MODE_RSRVR_T rsrvr[ NUM_OF_DG_RESERVOIRS ]; + U32 rsrvrFillStableTime; + U32 rsrvrFillStableTimeoutMS; +} DIS_RSRVR_STATUS_T; + // ********** public function prototypes ********** void initHeatDisinfectActiveCoolMode( void ); // Initialize this module @@ -51,6 +67,9 @@ BOOL stopDGHeatDisinfectActiveCool( void ); // Stop DG heat disinfect +DG_RESERVOIR_STATUS_T getDisinfectRsrvrFillStatus( DG_RESERVOIR_ID_T rsrvrID, DIS_RSRVR_STATUS_T *rsrvrStatus, F32 targetVolML, U32 fillTimeoutMS, U32 stateTimerMS ); +DG_RESERVOIR_STATUS_T getDisinfectRsrvrDrainStatus( DG_RESERVOIR_ID_T rsrvrID, DIS_RSRVR_STATUS_T *rsrvrStatus, U32 drainSteadyTimeoutMS, U32 drainStateTimeoutMS, U32 stateTimerMS ); + /**@}*/ #endif