Index: firmware/App/Modes/ModePostTreat.c =================================================================== diff -u -r3f53d4aaf8840366306a6143eda9abf1a763bb73 -r253979e460b82c6d038e0a566f3be8c6df0a28c9 --- firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision 3f53d4aaf8840366306a6143eda9abf1a763bb73) +++ firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision 253979e460b82c6d038e0a566f3be8c6df0a28c9) @@ -31,7 +31,7 @@ // ********** private function prototypes ********** -static void setPostTreatStateTransition( TD_POST_TREATMENT_STATE_T state ); +static void setPostTreatStateTransition( void ); static TD_POST_TREATMENT_STATE_T handlePatientDisconnectionState( void ); static TD_POST_TREATMENT_STATE_T handleAutoEjectState( void ); static TD_POST_TREATMENT_STATE_T handleDisposableRemovalState(void ); @@ -40,8 +40,8 @@ /*********************************************************************//** * @brief * The initPostTreatmentMode function initializes the Post-Treatment mode. -* @details Inputs: none -* @details Outputs: Resets all Post-Treatment sub-state variables. +* @details \b Inputs: none +* @details \b Outputs: Resets all Post-Treatment sub-state variables. * @return none **************************************************************************/ void initPostTreatmentMode( void ) @@ -53,16 +53,16 @@ * @brief * The transitionToPostTreatmentMode function prepares the system for * entry into Post-Treatment mode. -* @details Inputs: none -* @details Outputs: Initializes mode specific state and returns the starting +* @details \b Inputs: none +* @details \b Outputs: Initializes mode specific state and returns the starting * Post-Treatment sub-state. * @return Initial Post-Treatment sub-state **************************************************************************/ U32 transitionToPostTreatmentMode( void ) { initPostTreatmentMode(); initTubeSetAutoEject(); - setPostTreatStateTransition( currentPostTreatmentState ); + setPostTreatStateTransition(); return (U32)currentPostTreatmentState; } @@ -71,14 +71,14 @@ * @brief * The setPostTreatStateTransition function sets the actuators and variables * for the state transition in Post-Treatment mode. -* @details Inputs: Valve states, Pump speed -* @details Outputs: Actuate valves, pumps as desired +* @details \b Inputs: Valve states, Pump speed +* @details \b Outputs: Actuate valves, pumps as desired * @Param state Post-Treatment state enum * @return none **************************************************************************/ -static void setPostTreatStateTransition( TD_POST_TREATMENT_STATE_T state ) +static void setPostTreatStateTransition( void ) { - switch( state ) + switch( currentPostTreatmentState ) { case TD_POST_TREATMENT_PATIENT_DISCONNECTION_STATE: //TODO: actuator configuration; @@ -106,8 +106,8 @@ * @brief * The execPostTreatmentMode function executes the Post-Treatment * mode state machine. - * @details Inputs: stop button status and system conditions via helpers. - * @details Outputs: Advances the Post-Treatment sub-state + * @details \b Inputs: stop button status and system conditions via helpers. + * @details \b Outputs: Advances the Post-Treatment sub-state * @return current Post-Treatment sub-state. *************************************************************************/ U32 execPostTreatmentMode( void ) @@ -141,7 +141,7 @@ if ( prevPostTreatmentState != currentPostTreatmentState) { - setPostTreatStateTransition( currentPostTreatmentState ); + setPostTreatStateTransition(); } return (U32)currentPostTreatmentState; @@ -151,8 +151,8 @@ * @brief * The handlePatientDisconnectionState function executes the Post-Treatment * mode Patient Disconnection state machine. - * @details Inputs: TODO fill up if any - * @details Outputs: TODO fill up if any + * @details \b Inputs: TODO fill up if any + * @details \b Outputs: TODO fill up if any * @return next post-treatment mode state *************************************************************************/ static TD_POST_TREATMENT_STATE_T handlePatientDisconnectionState( void ) @@ -170,8 +170,8 @@ * The handleAutoEjectState function calls Tube Set Auto-Eject Service and * advances to Disposable removal state once the service signals * completion. - * @details Inputs: none - * @details Outputs: Advances Post-Treatment state when eject is complete. + * @details \b Inputs: none + * @details \b Outputs: Advances Post-Treatment state when eject is complete. * @return next Post-Treatment mode state *************************************************************************/ static TD_POST_TREATMENT_STATE_T handleAutoEjectState( void ) @@ -193,8 +193,8 @@ * @brief * The handleDisposableRemovalState function executes the Post-Treatment * mode Disposable Removal state machine. - * @details Inputs: TODO fill up if any - * @details Outputs: TODO fill up if any + * @details \b Inputs: TODO fill up if any + * @details \b Outputs: TODO fill up if any * @return next post-treatment mode state *************************************************************************/ static TD_POST_TREATMENT_STATE_T handleDisposableRemovalState( void ) @@ -211,8 +211,8 @@ * @brief * The handleVerifyState function executes the Post-Treatment * mode Verify state machine. - * @details Inputs: TODO fill up if any - * @details Outputs: TODO fill up if any + * @details \b Inputs: TODO fill up if any + * @details \b Outputs: TODO fill up if any * @return next post-treatment mode state *************************************************************************/ static TD_POST_TREATMENT_STATE_T handleVerifyState( void )