Index: MessagePayloads.h =================================================================== diff -u -rdb4dbd99bd5cbabe4e46fa590f9580ce3d4cb254 -ra69beadb0e72278a6e47f2e42a84c2cfdd96b422 --- MessagePayloads.h (.../MessagePayloads.h) (revision db4dbd99bd5cbabe4e46fa590f9580ce3d4cb254) +++ MessagePayloads.h (.../MessagePayloads.h) (revision a69beadb0e72278a6e47f2e42a84c2cfdd96b422) @@ -99,6 +99,31 @@ F32 currentQd; ///< Current dialysate flow rate (ml/min) } GEN_DIALYSATE_MODE_DATA_T; +/// balancing chamber data structure +typedef struct +{ + U32 balChamberExecState; ///< Balancing chamber execution state + U32 balChamberSWState; ///< Balancing chamber switching state (state 1 or state 2) + F32 balChamberSWFreq; ///< Balancing chamber switching frequency + BOOL isSpentFillComplete; ///< Whether balancing chamber spent fill completed or not + U32 currentBalChamberSwitchingCounter; ///< Current balancing chamber switching counter + BOOL isPressureStabilizedDuringFill; ///< Whether pressure stabilized during fill or not + BOOL balChamberSWOnlyState; ///< Balancing chamber switching only status ( On/Off) + BOOL isBalChamberSwitchingActive; ///< Balancing chamber switching status +#ifdef __BAL_CHAMBER_DEBUG__ + U32 detectTolCount; + U32 maxDetectCount; + U32 minDetectCount; + BOOL isDetectionInCountWindow; + F32 riseDeltaPsi; + BOOL riseHit; + U32 requiredRiseCount; + U32 spentFillRiseHitCount; + F32 lastPrevSpentDialPressure; + F32 prevSpentDialPressure; +#endif +} BAL_CHAMBER_DATA_T; + /// Chamber H vent open request data typedef struct {