Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r421336466eff4ba9fef0ca5416043e5d83c63841 -rc92e2b5ae61f359e5633b32b2d5b691347d0d293 --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 421336466eff4ba9fef0ca5416043e5d83c63841) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision c92e2b5ae61f359e5633b32b2d5b691347d0d293) @@ -7,8 +7,8 @@ * * @file ModeTreatment.h * -* @author (last) Varshini Nagabooshanam -* @date (last) 09-Jan-2026 +* @author (last) Raghu Kallala +* @date (last) 06-Apr-2026 * * @author (original) Sean Nash * @date (original) 21-Apr-2025 @@ -85,13 +85,23 @@ U32 ufState; ///< Ultrafiltration state. } UF_DATA_PAYLOAD_T; +/// Payload record structure for the in-line pressure limits change response. +typedef struct +{ + BOOL accepted; ///< Accepted. + U32 rejReasonCode; ///< Rejection reason code number. + U32 artPresLimitWindowmmHg; ///< Arterial pressure limit window in mmHg. + U32 venPresLimitWindowmmHg; ///< Venous pressure limit window in mmHg. + U32 venPresLimitAsymmetricmmHg; ///< Venous pressure limit asymmetric in mmHg. + U32 tmpPresLimitWindowmmHg; ///< TMP pressure limit window in mmHg. +} PRESSURE_LIMIT_CHANGE_RESPONSE_T; +#pragma pack(pop) + /// Maximum time in this mode before blood sitting alarm given (in general task intervals). #define MAX_TIME_BLOOD_SITTING ( ( 5 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) /// Maximum time in this mode before blood sitting warning given (in general task intervals). #define WARN_TIME_BLOOD_SITTING ( ( 4 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) -#pragma pack(pop) - // ********** public function prototypes ********** void initTreatmentMode( void ); // Initialize this unit @@ -115,6 +125,9 @@ U32 getTreatmentStartTimeStamp( void ); // Get the treatment start time stamp U32 getTreatmentEndTimeStamp( void ); // Get the treatment end time stamp +// MSG_ID_TD_PRESSURE_LIMITS_CHANGE_RESPONSE +BOOL sendPressureLimitsChangeResponse( PRESSURE_LIMIT_CHANGE_RESPONSE_T *data ); + /**@}*/ #endif