Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r61c6f9386e49c5f03792b82d3e6c9bacc98d384a -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 61c6f9386e49c5f03792b82d3e6c9bacc98d384a) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2022 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) 04-Jan-2022 +* @date (last) 18-Jul-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -66,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. @@ -112,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