Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -rf73db01f3c0cb623b6e56da43ccfba2d922717c5 -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision f73db01f3c0cb623b6e56da43ccfba2d922717c5) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2023 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file ModeTreatment.h * * @author (last) Dara Navaei -* @date (last) 11-Nov-2022 +* @date (last) 18-Jul-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -54,7 +54,6 @@ U32 txEndState; U32 txStopState; U32 dialysisState; - U32 dlzReprimeState; } TREATMENT_STATE_DATA_T; /// Payload record structure for an ultrafiltration volume change confirmation message. @@ -67,21 +66,19 @@ /// Payload record structure for the in-line pressure limits change request. typedef struct { - S32 artLowLimit; - S32 artHighLimit; - S32 venLowLimit; - S32 venHighLimit; + S32 artPresLimitWindowmmHg; + S32 venPresLimitWindowmmHg; + S32 venPresLimitAsymmetricmmHg; } PRESSURE_LIMIT_CHANGE_REQUEST_T; /// Payload record structure for the in-line pressure limits change response. typedef struct { BOOL accepted; U32 rejReasonCode; - S32 artLowLimit; - S32 artHighLimit; - S32 venLowLimit; - S32 venHighLimit; + S32 artPresLimitWindowmmHg; + S32 venPresLimitWindowmmHg; + S32 venPresLimitAsymmetricmmHg; } PRESSURE_LIMIT_CHANGE_RESPONSE_T; /// Payload record structure for the treatment log 30 minutes periodic data. @@ -113,6 +110,7 @@ TREATMENT_STATE_T getTreatmentState( void ); // Determine the current treatment sub-mode (state) BOOL isTreatmentCompleted( void ); // Determine whether the treatment has completed +BOOL isTreatmentResumeBlocked( void ); // Determine whether the treatment is not allowed to be resumed. U32 getTreatmentTimeRemainingSecs( void ); // Determine number of seconds remaining in the treatment U32 getActualTreatmentTimeSecs( void ); // Determine the actual treatment duration in seconds BOOL getRinsebackCompleted( void ); // Determine whether a rinseback has been completed