Index: firmware/App/Services/TDInterface.c =================================================================== diff -u -rbd522c8ffdf75130571e5b6a79d1b1d6acd78b1c -r57bbf4b3e97f2c3e966eb1305aa30395ea61897d --- firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision bd522c8ffdf75130571e5b6a79d1b1d6acd78b1c) +++ firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision 57bbf4b3e97f2c3e966eb1305aa30395ea61897d) @@ -104,6 +104,7 @@ static OVERRIDE_U32_T tdSodium; ///< TD Sodium concentrate static OVERRIDE_U32_T tdBicarbonate; ///< TD Bicarbonate concentrate static OVERRIDE_F32_T tdSubstitutionFlowRate; ///< TD Subsitution flow rate +static BOOL tdDrainCancel; ///< TD Drain Cancel request // ********** private function prototypes ********** @@ -123,6 +124,7 @@ tdSubMode = 0U; tdDialyzerBypass = FALSE; tdOpModeDataFreshFlag = FALSE; + tdDrainCancel = FALSE; // Initialize treatment parameters from TD tdDialysateFlowrate.data = 0.0F; @@ -338,6 +340,20 @@ /*********************************************************************//** * @brief + * The setTDDrainCancelRequest function sets the latest TD drain cancel request + * enable. + * @details \b Inputs: none + * @details \b Outputs: tdDrainCancel + * @param Drain Cancel. + * @return none. + *************************************************************************/ +void setTDDrainCancelRequest( BOOL drainCancel ) +{ + tdDrainCancel = drainCancel; +} + +/*********************************************************************//** + * @brief * The getTDDialysateFlowrate function gets the latest TD dialysate flow * rate. * @details \b Inputs: tdDialysateFlowrate @@ -387,6 +403,7 @@ { return getF32OverrideValue( &tdSubstitutionFlowRate ); } + /*********************************************************************//** * @brief * The getTDDialyzerBypass function gets the latest TD dailyzer bypass valve @@ -460,6 +477,18 @@ /*********************************************************************//** * @brief + * The getTDDrainCancelRequest function gets the latest TD Drain cancel request + * @details \b Inputs: tdDrainCancel + * @details \b Outputs: none + * @return Latest Drain cancel request + *************************************************************************/ +BOOL getTDDrainCancelRequest( void ) +{ + return tdDrainCancel; +} + +/*********************************************************************//** + * @brief * The handlePreGenDialysateRequestMsg function handles a pre gen dailysate * delivery request from TD to perform required self test and priming process. * @details Inputs: none