/************************************************************************** * * Copyright (c) 2019-2019 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 ModeStandby.c * * @date 19-Sep-2019 * @author S. Nash * * @brief Top-level state machine for the standby mode. * **************************************************************************/ #include "Common.h" #include "AlarmLamp.h" #include "Buttons.h" #include "OperationModes.h" #include "ModeStandby.h" // ********** private data ********** // ********** private function prototypes ********** /************************************************************************* * @brief initStandbyMode * The initStandbyMode function initializes the Standby Mode module. * @details * Inputs : none * Outputs : Standby Mode module initialized. * @param none * @return none *************************************************************************/ void initStandbyMode( void ) { } /************************************************************************* * @brief transitionToStandbyMode * The transitionToStandbyMode function prepares for transition to standby mode. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void transitionToStandbyMode( void ) { // temporary test code - alarm lamp OK requestAlarmLampPattern( LAMP_PATTERN_OK ); } /************************************************************************* * @brief execStandbyMode * The execStandbyMode function executes the Standby Mode state machine. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void execStandbyMode( void ) { BOOL stop = isStopButtonPressed(); if ( TRUE == stop ) { requestNewOperationMode( MODE_PRES ); } }