/************************************************************************* * * Copyright Diality, Inc. 2019-2020. All Rights Reserved. * 181 Technology, Ste. 150 * Irvine, CA 92618 * * Project Denali * * @file ModeStandby.c * * @brief Top-level state machine for the standby mode. * * @date 19-Sep-2019 * *************************************************************************/ #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 RequestLampPattern( 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 ); } }