Index: HDDefs.h =================================================================== diff -u -r4735c252d5748ce4bc77d70144de630a68e35813 -r04bc7e8932551ccbfbe1b41d525146c8941d7c1c --- HDDefs.h (.../HDDefs.h) (revision 4735c252d5748ce4bc77d70144de630a68e35813) +++ HDDefs.h (.../HDDefs.h) (revision 04bc7e8932551ccbfbe1b41d525146c8941d7c1c) @@ -481,8 +481,10 @@ /// Enumeration of treatment stop sub-mode states. enum Treatment_Stop_States { - TREATMENT_STOP_RECIRC_STATE = 0, ///< Dialysate re-circulation state of the treatment stop sub-mode state machine - TREATMENT_STOP_NO_RECIRC_STATE, ///< No dialysate re-circulation state of the treatment stop sub-mode state machine + TREATMENT_STOP_RECIRC_STATE = 0, ///< Dialysate and Blood re-circulation state of the treatment stop sub-mode state machine + TREATMENT_STOP_RECIRC_DIALYSATE_ONLY_STATE, ///< Re-circulate Dialysate only state of the treatment re-circulate sub-mode state machine + TREATMENT_STOP_RECIRC_BLOOD_ONLY_STATE, ///< Re-circulate Blood only state of the treatment re-circulate sub-mode state machine + TREATMENT_STOP_NO_RECIRC_STATE, ///< No re-circulation state of the treatment stop sub-mode state machine NUM_OF_TREATMENT_STOP_STATES ///< Number of treatment stop sub-mode states }; /// Type for treatment stop states enumeration. @@ -551,7 +553,7 @@ /// 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 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 }; @@ -718,6 +720,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