Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r031627883dbd40abd52312d64a1a3b811478d1c3 -r8f4112033e1c247f629202cdc97389ffd5cb0170 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 031627883dbd40abd52312d64a1a3b811478d1c3) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 8f4112033e1c247f629202cdc97389ffd5cb0170) @@ -94,6 +94,9 @@ static F32 dgROPumpFlowRateMlMin = 0.0; ///< Latest RO water flow rate reported by the DG. static U32 dgROPumpPressureSetPtPSI = 0; ///< Latest RO pump target pressure reported by the DG. static U32 dgDrainPumpSpeedSetPtRPM = 0; ///< Latest Drain pump target speed reported by the DG. + +// DG Dialysate flow rate +static F32 dgDialysateFlowRateMlMin = 0.0; ///< Latest dialysate flow rate reported by the DG. // Reservoir data static DG_RESERVOIR_ID_T dgActiveReservoir = DG_RESERVOIR_2; ///< Latest active reservoir reported by the DG. @@ -472,6 +475,21 @@ F32 result = dgROPumpFlowRateMlMin; return result; +} + +/*********************************************************************//** + * @brief + * The getDGDialysateFlowRateMlMin function gets the latest dialysate flow + * rate reported by the DG. + * @details Inputs: dgDialysateFlowRateMlMin + * @details Outputs: none + * @return Latest dialysate flow rate reported by DG. + *************************************************************************/ +F32 getDGDialysateFlowRateMlMin( void ) +{ + F32 result = dgDialysateFlowRateMlMin; + + return result; } /*********************************************************************//** @@ -694,6 +712,20 @@ dgROPumpPressureSetPtPSI = presSetPt; dgROPumpFlowRateMlMin = flowRate * ML_PER_LITER; } + +/*********************************************************************//** + * @brief + * The setDialysateFlowData function sets the latest dialysate flow data + * reported by the DG. + * @details Inputs: none + * @details Outputs: dgDialysateFlowRateMlMin + * @param flowRate latest dialysate flow rate (LPM) reported by DG + * @return none + *************************************************************************/ +void setDialysateFlowData( F32 flowRate ) +{ + dgDialysateFlowRateMlMin = flowRate; +} /*********************************************************************//** * @brief