Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -r4e1b1e718c7df521980c6cbfbe94f53720292913 -rea731c287a4e43901956aaa9a0009a5ee8f4671f --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 4e1b1e718c7df521980c6cbfbe94f53720292913) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision ea731c287a4e43901956aaa9a0009a5ee8f4671f) @@ -64,6 +64,8 @@ #define ACK_REQUIRED TRUE ///< Macro for functions that want to know if an outgoing message requires acknowledgement from receiver. #define ACK_NOT_REQUIRED FALSE ///< Macro for functions that want to know if an outgoing message requires acknowledgement from receiver. + + typedef struct { U08 acknowledgement; ///< Acknowledgement Byte @@ -72,7 +74,7 @@ typedef struct { BOOL accepted; ///< Accepted/Rejected - U32 rejection_reason; ///< Rejection reason if not accepted. + U32 rejectionReason; ///< Rejection reason if not accepted. } UI_RESPONSE_PAYLOAD_T; typedef struct @@ -88,6 +90,53 @@ U32 dataType2; ///< Data type for data field 2 EVENT_DATAS_T data2; ///< Data field 2 } EVENT_PAYLOAD_T; + +typedef struct +{ + BOOL accepted; ///< Accepted/Rejected + U32 rejectionReason; ///< Rejection reason if not accepted. + F32 ufVolume; ///< UF Volume in mL. + U32 durationInMinutes; ///< new Treatment duration in minutes. + S32 timeDiff; ///< Treatment duration difference. + F32 ufRate; ///< new UF rate in mL/min. + F32 rateDiff; ///< difference between new and old UF rates. + F32 oldUFRate; ///< Previous UF Rate in mL/min. +} UF_SETTINGS_CHANGE_RESPONSE_PAYLOAD_T; + +typedef struct +{ + BOOL accepted; ///< Accepted/Rejected + U32 rejectionReason; ///< Rejection reason if not accepted. + F32 volume; ///< UF Volume in mL. + U32 duration; ///< Treatment duration in minutes + F32 ufRate; ///< UF rate in mL. +} UF_SETTINGS_CONFIRMATION_RESPONSE_PAYLOAD_T; + +typedef struct +{ + BOOL accepted; ///< Accepted/Rejected + U32 rejectionReason; ///< Rejection reason if not accepted. + U32 duration; ///< Treatment duration in minutes + F32 volume; ///< UF Volume in mL. +} TREATMENT_TIME_CHANGE_RESPONSE_PAYLOAD_T; + +typedef struct +{ + BOOL accepted; ///< Accepted/Rejected + U32 rejectionReason; ///< Rejection reason if not accepted. + U32 bloodRate; ///< new blood flow rate + U32 dialRate; ///< new dialysate flow rate +} BLOOD_DIAL_RATE_CHANGE_RESPONSE_PAYLOAD_T; + +typedef struct +{ + U32 minTreatmentTime; ///< Minimum treatment duration (in minutes) + U32 maxTreatmentTime; ///< Maximum treatment duration (in minutes) + F32 minUFVolume; ///< Minimum ultrafiltration volume (in mL) + F32 maxUFVolume; ///< Maximum ultrafiltration volume (in mL) + U32 minDialRate; ///< Minimum dialysate flow rate (in mL/min) + U32 maxDialRate; ///< Maximum dialysate flow rate (in mL/min) +} TREATMENT_PARAM_BROADCAST_PAYLOAD_T; // ********** public function prototypes **********