Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -rac2842e1727bf631b7249927f429bbf1368b75ba -rb3de9e36a8154bac930f008db3ae7aa0cae6b9e0 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision ac2842e1727bf631b7249927f429bbf1368b75ba) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision b3de9e36a8154bac930f008db3ae7aa0cae6b9e0) @@ -59,30 +59,31 @@ /// Defined states for the Load Cell cycles. typedef enum Reservoir_Steady_Cycle { - RESERVOIR_STEADY_CYCLE_START = 0, ///< Reservoir steady cycle load cell reading at Start - RESERVOIR_STEADY_CYCLE_FINAL, ///< Reservoir steady cycle load cell reading at Final - NUM_OF_RESERVOIR_STEADY_CYCLES ///< Number of Reservoir steady cycle load cell readings + RESERVOIR_STEADY_CYCLE_START = 0, ///< Reservoir steady cycle load cell reading at Start. + RESERVOIR_STEADY_CYCLE_FINAL, ///< Reservoir steady cycle load cell reading at Final. + NUM_OF_RESERVOIR_STEADY_CYCLES ///< Number of Reservoir steady cycle load cell readings. } RESERVOIR_STEADY_CYCLE_T; +/// Blood leak zeroing request status typedef enum BLD_Zeroing_Request_Status { - BLOOD_LEAK_ZEROING_RQST_READY = 0, ///< Blood leak zeroing request ready. - BLOOD_LEAK_ZEROING_RQST_REQUESTED, ///< Blood leak zeroing request requested. - BLOOD_LEAK_ZEROING_RQST_IN_PROGRESS, ///< Blood leak zeroing request in progress. - NUM_OF_BLOOD_LEAK_ZEROING_RQST ///< Number of blood leak zeroing request. + BLOOD_LEAK_ZEROING_RQST_READY = 0, ///< Blood leak zeroing request ready. + BLOOD_LEAK_ZEROING_RQST_REQUESTED, ///< Blood leak zeroing request requested. + BLOOD_LEAK_ZEROING_RQST_IN_PROGRESS, ///< Blood leak zeroing request in progress. + NUM_OF_BLOOD_LEAK_ZEROING_RQST ///< Number of blood leak zeroing request. } BLOOD_LEAK_ZEROING_RQST_T; // ********** private data ********** /// Blood leak treatment zeroing data structure typedef struct { - F32 DPi2BLDFlushedVolML; ///< Dialysate inlet pump to blood leak flushed volume in milliliters. - F32 rsrvr2DPiFlushedVolML; ///< Active reservoir to dialysate inlet pump flushed volume in milliliters. - BOOL hasBloodLeakZeroingBeenRequested; ///< Flag to indicate blood leak zeroing has been requested. - BOOL isZeroingRequestedFromTreatmentStop; ///< Flag to indicate blood leak zeroing has been requested from treatment stop. - BLOOD_LEAK_ZEROING_RQST_T zeroingRequestState; ///< Blood leak zeroing request state. - BLOOD_LEAK_ZEROING_STATE_T bloodLeakZeroingState; ///< Blood leak zeroing state. + F32 DPi2BLDFlushedVolML; ///< Dialysate inlet pump to blood leak flushed volume in milliliters. + F32 rsrvr2DPiFlushedVolML; ///< Active reservoir to dialysate inlet pump flushed volume in milliliters. + BOOL hasBloodLeakZeroingBeenRequested; ///< Flag to indicate blood leak zeroing has been requested. + BOOL isZeroingRequestedFromTreatmentStop; ///< Flag to indicate blood leak zeroing has been requested from treatment stop. + BLOOD_LEAK_ZEROING_RQST_T zeroingRequestState; ///< Blood leak zeroing request state. + BLOOD_LEAK_ZEROING_STATE_T bloodLeakZeroingState; ///< Blood leak zeroing state. } BLOOD_LEAK_ZEROING_T ; static DIALYSIS_STATE_T currentDialysisState; ///< Current state of the dialysis sub-mode state machine.