Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r336f6c49e05f515ca1250e0fd9ea97e5f5b5f11c -r21d8cec02d7e0f8ad98b54ca310243f690948ddc --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 336f6c49e05f515ca1250e0fd9ea97e5f5b5f11c) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 21d8cec02d7e0f8ad98b54ca310243f690948ddc) @@ -479,4 +479,60 @@ *************************************************************************/ +/*********************************************************************//** + * @brief + * The testValidateDDStandbyChangeReq function validate whether request + * operation sub mode is legal or not. + * @details \b Inputs: none + * @details \b Outputs: none + * @param newSubMode the enumerated sub state of the mode + * @return TRUE if request is legal, FALSE if not + *************************************************************************/ +BOOL testValidateDDStandbyChangeReq( U32 newSubMode ) +{ + BOOL result = FALSE; + + if ( newSubMode < NUM_OF_DD_STANDBY_MODE_STATES ) + { + switch ( newSubMode ) + { + case DD_STANDBY_MODE_STATE_IDLE: + result = TRUE; + break; + + case DD_STANDBY_MODE_STATE_PAUSE: + default: + break; + } + } + + return result; +} + +/*********************************************************************//** + * @brief + * The testSignalNewDDStandbySubMode function request transition to a + * new operation sub mode. + * @details \b Inputs: none + * @details \b Outputs: standbyState + * @param newSubMode the enumerated sub state of the mode + * @return none + *************************************************************************/ +void testSignalNewDDStandbySubMode( U32 newSubMode ) +{ + if ( newSubMode < NUM_OF_DD_STANDBY_MODE_STATES ) + { + standbyState = (DD_STANDBY_MODE_STATE_T)newSubMode; + + switch ( newSubMode ) + { + // Any of these state require no special handling + case DD_STANDBY_MODE_STATE_IDLE: + case DD_STANDBY_MODE_STATE_PAUSE: + default: + break; + } + } +} + /**@}*/