Index: HDDefs.h =================================================================== diff -u -r3f2cacd7aa2c9d5ec5b7c1217de38dae7270a967 -rc8558c28bdb01b1c09e66c0b38dba9007fc42746 --- HDDefs.h (.../HDDefs.h) (revision 3f2cacd7aa2c9d5ec5b7c1217de38dae7270a967) +++ HDDefs.h (.../HDDefs.h) (revision c8558c28bdb01b1c09e66c0b38dba9007fc42746) @@ -554,7 +554,9 @@ /// Enumeration of treatment re-circulation sub-mode states. enum Treatment_Recirc_States { - TREATMENT_RECIRC_RECIRC_STATE = 0, ///< Re-circulate state of the treatment re-circulate sub-mode state machine + TREATMENT_RECIRC_RECIRC_STATE = 0, ///< Re-circulate Dialysate and Blood state of the treatment re-circulate sub-mode state machine + TREATMENT_RECIRC_DIALYSATE_ONLY_STATE, ///< Re-circulate Dialysate only state of the treatment re-circulate sub-mode state machine + TREATMENT_RECIRC_BLOOD_ONLY_STATE, ///< Re-circulate Blood only state of the treatment re-circulate sub-mode state machine TREATMENT_RECIRC_STOPPED_STATE, ///< Stopped state of the treatment re-circulate sub-mode state machine NUM_OF_TREATMENT_RECIRC_STATES ///< Number of treatment re-circulate sub-mode states }; @@ -721,6 +723,17 @@ }; typedef enum HD_Event_List HD_EVENT_ID_T; ///< Type for HD event list enumeration +// **** Common Const **** + +#if !defined TASK_GENERAL_INTERVAL +#include "TaskGeneral.h" +#endif +/// Maximum time in this mode before blood sitting alarm given (in general task intervals). +static const U32 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). +static const U32 WARN_TIME_BLOOD_SITTING = ( ( 4 * SEC_PER_MIN * MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ); + + /**@}*/ #endif