Index: HDDefs.h =================================================================== diff -u -rcc61014d5c5f5d994a5adad62fe3a598864aa5ee -r2a0fa4fb67512b605c336722326ecf1c4c8cdd22 --- HDDefs.h (.../HDDefs.h) (revision cc61014d5c5f5d994a5adad62fe3a598864aa5ee) +++ HDDefs.h (.../HDDefs.h) (revision 2a0fa4fb67512b605c336722326ecf1c4c8cdd22) @@ -255,6 +255,15 @@ }; typedef enum Saline_Bolus_States SALINE_BOLUS_STATE_T; ///< Type for saline bolus state enumeration +/// Enumeration of saline bolus command parameters. +enum Saline_Commands +{ + SALINE_CMD_STOP = 0, ///< Start saline bolus command + SALINE_CMD_START, ///< Stop saline bolus command + NUM_OF_SALINE_CMDS ///< Number of saline bolus command parameters +}; +typedef enum Saline_Commands SALINE_CMD_T; ///< Type for saline command enum. + /// Enumeration of ultrafiltration command IDs. enum UF_Commands { @@ -276,22 +285,69 @@ /**@}*/ /** + * @addtogroup Heparin + * @{ + */ + +/// Enumeration of heparin states. +enum Heparin_States +{ + HEPARIN_STATE_OFF = 0, ///< No heparin delivery is in progress + HEPARIN_STATE_PAUSED, ///< Heparin delivery paused + HEPARIN_STATE_INITIAL_BOLUS, ///< Initial heparin bolus delivery in progress + HEPARIN_STATE_DISPENSING, ///< Gradual heparin dispensing in progress + HEPARIN_STATE_COMPLETED, ///< Heparin delivery stopped due to the set stop time before treatment end + HEPARIN_STATE_EMPTY, ///< Heparin Syringe empty + NUM_OF_HEPARIN_STATES ///< Number of saline bolus states +}; +typedef enum Heparin_States HEPARIN_STATE_T; ///< Type for heparin state enumeration + +/// Enumeration of heparin command IDs. +enum Heparin_Commands +{ + HEPARIN_CMD_PAUSE = 0, ///< Pause Heparin command + HEPARIN_CMD_RESUME, ///< Resume Heparin command + NUM_OF_HEPARIN_CMDS ///< Number of Heparin commands +}; +typedef enum Heparin_Commands HEPARIN_CMD_T; ///< Type for HEPARIN command IDs enumeration + +/**@}*/ + +/** * @addtogroup Rinseback * @{ */ /// Enumeration of rinseback sub-mode states. enum Rinseback_States { - RINSEBACK_STOP_INIT_STATE = 0, ///< Start state (stopped) of the rinseback sub-mode state machine - RINSEBACK_RUN_STATE, ///< Rinseback running state of the rinseback sub-mode state machine - RINSEBACK_PAUSED_STATE, ///< Rinseback paused state of the rinseback sub-mode state machine - RINSEBACK_STOP_STATE, ///< Rinseback stopped (done) state of the rinseback sub-mode state machine - RINSEBACK_RUN_ADDITIONAL_STATE, ///< Additional rinseback volume (10 mL) state of the rinseback sub-mode state machine - NUM_OF_RINSEBACK_STATES ///< Number of rinseback sub-mode states + RINSEBACK_STOP_INIT_STATE = 0, ///< Start state (stopped) of the rinseback sub-mode state machine + RINSEBACK_RUN_STATE, ///< Rinseback running state of the rinseback sub-mode state machine + RINSEBACK_PAUSED_STATE, ///< Rinseback paused state of the rinseback sub-mode state machine + RINSEBACK_STOP_STATE, ///< Rinseback stopped (done) state of the rinseback sub-mode state machine + RINSEBACK_RUN_ADDITIONAL_STATE, ///< Additional rinseback volume (10 mL) state of the rinseback sub-mode state machine + NUM_OF_RINSEBACK_STATES ///< Number of rinseback sub-mode states }; -typedef enum Rinseback_States RINSEBACK_STATE_T; ///< Type for rinseback states enumeration. +typedef enum Rinseback_States RINSEBACK_STATE_T; ///< Type for rinseback states enumeration. +/// Enumeration of user actions that may be requested from rinseback sub-mode. +enum Requested_Rinseback_User_Actions +{ + REQUESTED_USER_ACTION_RINSEBACK_CONFIRM_START = 0, ///< User confirms saline bag clamped, connected to end of arterial line, un-clamped, and ready to start rinseback operation + REQUESTED_USER_ACTION_RINSEBACK_INCREASE_RATE = 1, ///< User requests increase in rinseback flow rate + REQUESTED_USER_ACTION_RINSEBACK_DECREASE_RATE = 2, ///< User requests decrease in rinseback flow rate + REQUESTED_USER_ACTION_RINSEBACK_PAUSE = 3, ///< User requests to pause rinseback operation + REQUESTED_USER_ACTION_RINSEBACK_RESUME = 4, ///< User requests to resume rinseback operation + REQUESTED_USER_ACTION_RINSEBACK_END = 5, ///< User requests to end the rinseback operation + REQUESTED_USER_ACTION_RINSEBACK_ADDITIONAL = 6, ///< User requests an additional 10 mL of rinseback volume + REQUESTED_USER_ACTION_RINSEBACK_CONFIRM_DISCONNECT = 7, ///< User confirms patient disconnected, saline bag clamped, re-connected to VBA, un-clamped, and lines shunted to start re-circulation + REQUESTED_USER_ACTION_RINSEBACK_END_TREATMENT = 8, ///< User requests to end treatment + REQUESTED_USER_ACTION_RINSEBACK_BACK_TO_TREATMENT = 9, ///< User requests to return to treatment + NUM_OF_REQUESTED_RINSEBACK_USER_ACTIONS ///< Number of requested rinseback user actions +}; +/// Type for requested user actions enumeration. +typedef enum Requested_Rinseback_User_Actions REQUESTED_RINSEBACK_USER_ACTIONS_T; + /**@}*/ /** @@ -302,13 +358,25 @@ /// 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_UF_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 + TREATMENT_RECIRC_RECIRC_STATE = 0, ///< Re-circulate 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 }; /// Type for treatment re-circulation states enumeration. typedef enum Treatment_Recirc_States TREATMENT_RECIRC_STATE_T; +/// Enumeration of user actions that may be requested from treatment re-circulate sub-mode. +enum Requested_Treatment_Recirc_User_Actions +{ + REQUESTED_USER_ACTION_TX_RECIRC_RECONNECT = 0, ///< User requests to re-connect to system (stop re-circulating, clamp arterial and venous lines) + REQUESTED_USER_ACTION_TX_RECIRC_CONFIRM_RECONNECT = 1, ///< User confirms patient connected, lines un-shunted to return to treatment + REQUESTED_USER_ACTION_TX_RECIRC_RESUME_RC = 2, ///< User requests to resume re-circulation + REQUESTED_USER_ACTION_TX_RECIRC_END_TREATMENT = 3, ///< User requests to end treatment + NUM_OF_REQUESTED_TX_RECIRC_USER_ACTIONS ///< Number of requested treatment re-circ user actions +}; +/// Type for requested user actions enumeration. +typedef enum Requested_Treatment_Recirc_User_Actions REQUESTED_TREATMENT_RECIRC_USER_ACTIONS_T; + /**@}*/ /** @@ -375,37 +443,6 @@ }; typedef enum Bicarb_Concentrates BICARB_CONCENTRATE_TYPE_T; ///< Type for bicarbonate concentrates enumeration -/// Enumeration of heparin states. -enum Heparin_States -{ - HEPARIN_STATE_OFF = 0, ///< No heparin delivery is in progress - HEPARIN_STATE_PAUSED, ///< Heparin delivery paused - HEPARIN_STATE_INITIAL_BOLUS, ///< Initial heparin bolus delivery in progress - HEPARIN_STATE_DISPENSING, ///< Gradual heparin dispensing in progress - HEPARIN_STATE_COMPLETED, ///< Heparin delivery stopped due to the set stop time before treatment end - HEPARIN_STATE_EMPTY, ///< Heparin Syringe empty - NUM_OF_HEPARIN_STATES ///< Number of saline bolus states -}; -typedef enum Heparin_States HEPARIN_STATE_T; ///< Type for heparin state enumeration - -/// Enumeration of heparin command IDs. -enum Heparin_Commands -{ - HEPARIN_CMD_PAUSE = 0, ///< Pause Heparin command - HEPARIN_CMD_RESUME, ///< Resume Heparin command - NUM_OF_HEPARIN_CMDS ///< Number of Heparin commands -}; -typedef enum Heparin_Commands HEPARIN_CMD_T; ///< Type for HEPARIN command IDs enumeration - -/// Enumeration of start/stop command parameters. -enum Saline_Commands -{ - SALINE_CMD_STOP = 0, ///< Start command - SALINE_CMD_START, ///< Stop command - NUM_OF_SALINE_CMDS ///< Number of start/stop command parameters -}; -typedef enum Saline_Commands SALINE_CMD_T; ///< Type for saline command enum. - /**@}*/ #endif