/**********************************************************************//** * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file ModeHeatDisinfect.c * * @date 20-Dec-2019 * @author S. Nash * * @brief Top-level state machine for the heat disinfect mode. * **************************************************************************/ #include "ModeHeatDisinfect.h" #include "OperationModes.h" /** * @addtogroup HeatDisinfectMode * @{ */ // ********** private definitions ********** /// Enumeration of heat disinfection mode states. typedef enum Heat_States { HEAT_DISINFECT_STATE_START = 0, ///< Start heat disinfect mode state. NUM_OF_HEAT_DISINFECT_STATES ///< Number of heat disinfect mode states. } HEAT_DISINFECT_STATE_T; // ********** private data ********** static HEAT_DISINFECT_STATE_T heatState = HEAT_DISINFECT_STATE_START; ///< Currently active heat disinfect state. // ********** private function prototypes ********** /*********************************************************************//** * @brief * The initHeatDisinfectMode function initializes the heat disinfect Mode module. * @details * Inputs : none * Outputs : none * @return none *************************************************************************/ void initHeatDisinfectMode( void ) { heatState = HEAT_DISINFECT_STATE_START; } /*********************************************************************//** * @brief * The transitionToHeatDisinfectMode function prepares for transition to heat disinfect mode. * @details * Inputs : none * Outputs : none * @return none *************************************************************************/ void transitionToHeatDisinfectMode( void ) { initHeatDisinfectMode(); } /*********************************************************************//** * @brief * The execHeatDisinfectMode function executes the heat disinfect Mode state machine. * @details * Inputs : none * Outputs : none * @return none *************************************************************************/ void execHeatDisinfectMode( void ) { // execute current heat disinfect state switch ( heatState ) { case HEAT_DISINFECT_STATE_START: break; default: heatState = HEAT_DISINFECT_STATE_START; // TODO - s/w fault break; } } /**@}*/