/************************************************************************* * * Copyright Diality, Inc. 2019-2020. All Rights Reserved. * 181 Technology, Ste. 150 * Irvine, CA 92618 * * Project Denali * * @file ModePrescription.c * * @brief Top-level state machine for the prescription mode. * * @date 19-Sep-2019 * *************************************************************************/ #include "Common.h" #include "AlarmLamp.h" #include "Buttons.h" #include "OperationModes.h" #include "ModePrescription.h" // ********** private data ********** // ********** private function prototypes ********** /************************************************************************* * @brief initPrescriptionMode * The initPrescriptionMode function initializes the Prescription Mode module. * @details * Inputs : none * Outputs : Prescription Mode module initialized. * @param none * @return none *************************************************************************/ void initPrescriptionMode( void ) { } /************************************************************************* * @brief transitionToPrescriptionMode * The transitionToPrescriptionMode function prepares for transition to \n * prescription mode. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void transitionToPrescriptionMode( void ) { // temporary test code - alarm lamp Off requestAlarmLampPattern( LAMP_PATTERN_OFF ); } /************************************************************************* * @brief execPrescriptionMode * The execFaultMode function executes the Prescription Mode state machine. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void execPrescriptionMode( void ) { BOOL stop = isStopButtonPressed(); if ( TRUE == stop ) { requestNewOperationMode( MODE_OPAR ); } }