Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r336f6c49e05f515ca1250e0fd9ea97e5f5b5f11c -r6d4aa77e6b85aa7621a234660f631e725fb1d441 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 336f6c49e05f515ca1250e0fd9ea97e5f5b5f11c) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 6d4aa77e6b85aa7621a234660f631e725fb1d441) @@ -7,8 +7,8 @@ * * @file ModeStandby.c * -* @author (last) Michael Garthwaite -* @date (last) 17-Apr-2026 +* @author (last) Raghu Kallala +* @date (last) 22-Apr-2026 * * @author (original) Vinayakam Mani * @date (original) 07-Aug-2024 @@ -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; + } + } +} + /**@}*/