Index: firmware/App/Modes/ModeTreatment.h =================================================================== diff -u -rfdb7ee915da2741dc200fef1b624b7f383f4db85 -rfe9b77e60850fe37da225d4348f0a6a8defc28db --- firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision fdb7ee915da2741dc200fef1b624b7f383f4db85) +++ firmware/App/Modes/ModeTreatment.h (.../ModeTreatment.h) (revision fe9b77e60850fe37da225d4348f0a6a8defc28db) @@ -55,6 +55,8 @@ U32 rinsebackState; ///< Rinse back state. U32 txRecircState; ///< Treatment recirc state. U32 txEndState; ///< Treatment end state. + U32 txSalBolusState; ///< Saline bolus state. + U32 txHepState; ///< Heparin state. } TREATMENT_STATE_DATA_T; /// Payload record structure for a treatment set points message. @@ -83,6 +85,11 @@ U32 ufState; ///< Ultrafiltration state. } UF_DATA_PAYLOAD_T; +/// 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 **********