Index: firmware/App/Modes/ModePostGenDialysate.c =================================================================== diff -u -r6d0bd19fb192dcd272fa773e8833862cc8a8f750 -r6d4aa77e6b85aa7621a234660f631e725fb1d441 --- firmware/App/Modes/ModePostGenDialysate.c (.../ModePostGenDialysate.c) (revision 6d0bd19fb192dcd272fa773e8833862cc8a8f750) +++ firmware/App/Modes/ModePostGenDialysate.c (.../ModePostGenDialysate.c) (revision 6d4aa77e6b85aa7621a234660f631e725fb1d441) @@ -7,8 +7,8 @@ * * @file ModePostGenDialysate.c * -* @author (last) Arpita Srivastava -* @date (last) 10-Mar-2026 +* @author (last) Raghu Kallala +* @date (last) 22-Apr-2026 * * @author (original) Vinayakam Mani * @date (original) 18-Apr-2025 @@ -189,4 +189,62 @@ return result; } +/*********************************************************************//** + * @brief + * The testValidateDDPostGenDialysateChangeReq 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 testValidateDDPostGenDialysateChangeReq( U32 newSubMode ) +{ + BOOL result = FALSE; + + if ( newSubMode < NUM_OF_DD_POST_GEN_DIALYSATE_STATES ) + { + switch ( newSubMode ) + { + // TODO add validate condition after checking with Vinay + case DD_POST_GEN_DIALYSATE_STATE_START: + case DD_POST_GEN_DIALYSATE_STATE_COMPLETE: +// result = TRUE; // TODO enable when states are implemented + break; + + default: + break; + } + } + + return result; +} + +/*********************************************************************//** + * @brief + * The testSignalNewDDPostGenDialysateSubMode function request transition + * to a new operation sub mode. + * @details \b Inputs: none + * @details \b Outputs: postGenDialysateState + * @param newSubMode the enumerated sub state of the mode + * @return none + *************************************************************************/ +void testSignalNewDDPostGenDialysateSubMode( U32 newSubMode ) +{ + if ( newSubMode < NUM_OF_DD_POST_GEN_DIALYSATE_STATES ) + { + postGenDialysateState = (DD_POST_GEN_DAILYSATE_STATE_T)newSubMode; + + switch ( newSubMode ) + { + // TODO add logic after checking with Vinay + // Any of these state require no special handling + case DD_POST_GEN_DIALYSATE_STATE_START: + case DD_POST_GEN_DIALYSATE_STATE_COMPLETE: + default: + break; + } + } +} + /**@}*/