Index: DGDefs.h =================================================================== diff -u -r36dc77899c26e13259d2a1eb383a933c76513d12 -r9c95c0177ac10e33426834837cc463ff041dffc5 --- DGDefs.h (.../DGDefs.h) (revision 36dc77899c26e13259d2a1eb383a933c76513d12) +++ DGDefs.h (.../DGDefs.h) (revision 9c95c0177ac10e33426834837cc463ff041dffc5) @@ -39,6 +39,7 @@ DG_MODE_FLUS, ///< Flush mode DG_MODE_HEAT, ///< Heat Disinfect mode DG_MODE_CHEM, ///< Chemical Disinfect mode + DG_MODE_CHFL, ///< Chemical Disinfect Flush mode DG_MODE_NLEG, ///< Not legal - an illegal mode transition occurred NUM_OF_DG_MODES ///< Number of DG operation modes }; @@ -356,6 +357,14 @@ DG_CHEM_DISINFECT_STATE_DRAIN_R2, ///< Chemical disinfect, drain R2 state DG_CHEM_DISINFECT_STATE_FLUSH_DRAIN, ///< Chemical disinfect, flush drain state DG_CHEM_DISINFECT_STATE_FLUSH_CIRCULATION, ///< Chemical disinfect, flush circulation state + DG_CHEM_DISINFECT_STATE_PRIME_DISINFECTANT, ///< Chemical disinfect, prime disinfectant state + DG_CHEM_DISINFECT_STATE_DISINFECTANT_FLUSH, ///< Chemical disinfect, disinfectant flush state + DG_CHEM_DISINFECT_STATE_FILL_WITH_DISINFECTANT, ///< Chemical disinfect, fill with disinfectant state + DG_CHEM_DISINFECT_STATE_R2_DISINFECTANT_FILL_R1_DRAIN, ///< Chemical disinfect, fill R2 with disinfectant, partial drain R1 + DG_CHEM_DISINFECT_STATE_R1_DISINFECTANT_FILL_R2_DRAIN, ///< Chemical disinfect, fill R1 with disinfectant, partial drain R2 + DG_CHEM_DISINFECT_STATE_PARTIAL_DRAIN_R1_FILL_R1_TO_R2, + DG_CHEM_DISINFECT_STATE_PARTIAL_DRAIN_R1_FILL_R2_TO_R1, + DG_CHEM_DISINFECT_STATE_PARTIAL_DRAIN_R2_FILL_R1_TO_R2, DG_CHEM_DISINFECT_STATE_FLUSH_R1_AND_R2, ///< Chemical disinfect, flush R1 and R2 state DG_CHEM_DISINFECT_STATE_FLUSH_R2_AND_DRAIN_R1, ///< Chemical disinfect, flush R2 and drain R1 state DG_CHEM_DISINFECT_STATE_FLUSH_DRAIN_R2, ///< Chemical disinfect, flush drain R2 state @@ -412,8 +421,61 @@ #endif /**@}*/ +/**@}*/ /** + * @addtogroup DGChemicalDisinfectFlushMode + * @{ + */ + +/// Enumeration of chemical disinfect flush mode states. +enum DG_Chem_Flush_States +{ + DG_CHEM_DISINFECT_FLUSH_STATE_START = 0, ///< Chemical disinfect, start state + DG_CHEM_DISINFECT_FLUSH_STATE_DISINFECTANT_DRAIN_R1, ///< Chemical disinfect flush, drain R1 state + DG_CHEM_DISINFECT_FLUSH_STATE_DISINFECTANT_DRAIN_R2, ///< Chemical disinfect flush, drain R2 state + DG_CHEM_DISINFECT_FLUSH_STATE_FLUSH_DRAIN, ///< Chemical disinfect flush, flush drain state + DG_CHEM_DISINFECT_FLUSH_STATE_FLUSH_DISINFECTANT_LINE, ///< Chemical disinfect flush, flush disinfectant line state + DG_CHEM_DISINFECT_FLUSH_STATE_FLUSH_UF, ///< Chemical disinfect flush, flush UF state + DG_CHEM_DISINFECT_FLUSH_STATE_FLUSH_R2_TO_R1_DRAIN_R1, ///< Chemical disinfect flush, flush R2 to R1 drain R1 state + DG_CHEM_DISINFECT_FLUSH_STATE_FLUSH_R1_TO_R2_DRAIN_R2, ///< Chemical disinfect flush, flush R1 to R2 drain R2 state + DG_CHEM_DISINFECT_FLUSH_STATE_CANCEL_BASIC_PATH, ///< Chemical disinfect flush, cancel basic path state + DG_CHEM_DISINFECT_FLUSH_STATE_CANCEL_WATER_PATH, ///< Chemical disinfect flush, cancel water path state + DG_CHEM_DISINFECT_FLUSH_STATE_COMPLETE, ///< Chemical disinfect flush, complete state + NUM_OF_DG_CHEM_DISINFECT_FLUSH_STATES ///< Number of chemical disinfect flush mode states +}; +typedef enum DG_Chem_States DG_CHEM_DISINFECT_FLUSH_STATE_T; ///< Type for DG chemical disinfect flush states enumeration + +/// Enumeration of chemical disinfect mode UI states +enum DG_Chem_Flush_UI_States +{ + CHEM_DISINFECT_FLUSH_UI_STATE_NOT_RUNNING = 0, ///< Chemical disinfect UI, not running state + CHEM_DISINFECT_FLUSH_UI_STATE_FLUSH_AFTER_DISINFECT, ///< Chemical disinfect UI, flush after disinfect state + CHEM_DISINFECT_FLUSH_UI_STATE_CANCEL_FLUSH, ///< Chemical disinfect UI, cancel disinfect state + CHEM_DISINFECT_FLUSH_UI_STATE_COMPLETE, ///< Chemical disinfect UI, complete state + NUM_OF_CHEM_DISINFECT_FLUSH_UI_STATES ///< Number of chemical disinfect UI states +}; +typedef enum DG_Chem_Flush_UI_States DG_CHEM_DISINFECT_FLUSH_UI_STATE_T; ///< Type for DG chemical disinfect UI states enumeration + +#if defined(_HD_) || defined(_DG_) +/// Chemical disinfect flush data +typedef struct +{ + U32 chemDisinfectFlushState; ///< Chemical disinfect flush state. + U32 overallElapsedTime; ///< Overall elapsed time in chemical disinfect flush mode. + U32 stateElapsedTime; ///< Current chemical disinfect flush elapsed time. + U32 cancellationMode; ///< Chemical disinfect flush cancellation mode. + F32 R1FillLevel; ///< Reservoir 1 level upon starting the chemical disinfect flush. + F32 R2FillLevel; ///< Reservoir 2 level upon starting the chemical disinfect flush. + U32 postDisinfectTargetRinseCount; ///< Target post disinfect rinse count. + U32 postDisinfectCurrentRinseCount; ///< Current post disinfect rinse count. + U32 chemDisinfectFlushUIState; ///< Chemical disinfect flush UI state. +} MODE_CHEMICAL_DISINFECT_FLUSH_DATA_T; +#endif + +/**@}*/ + +/** * @addtogroup DGServiceMode * @{ */