Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -r395522dffef1348e176564925656012f529c1910 -r316cb40192e5d6be69682d5c9df01d890e2c213f --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 395522dffef1348e176564925656012f529c1910) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision 316cb40192e5d6be69682d5c9df01d890e2c213f) @@ -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