Index: MsgDefs.h =================================================================== diff -u -r73ef0c58ea2b67ec0115fbd1504eb72d2a635737 -rddf7cec3d714b32112d6a737d92584c636b42bc2 --- MsgDefs.h (.../MsgDefs.h) (revision 73ef0c58ea2b67ec0115fbd1504eb72d2a635737) +++ MsgDefs.h (.../MsgDefs.h) (revision ddf7cec3d714b32112d6a737d92584c636b42bc2) @@ -45,6 +45,9 @@ MSG_ID_USER_SALINE_BOLUS_RESPONSE = 0x14, ///< HD response to user saline bolus request. MSG_ID_USER_CONFIRM_UF_SETTINGS_CHANGE = 0x15, ///< User confirmation of ultrafiltration settings change. MSG_ID_USER_TREATMENT_TIME_CHANGE_REQUEST = 0x16, ///< User request to change treatment duration. + MSG_ID_USER_BLOOD_DIAL_RATE_CHANGE_REQUEST = 0x17, ///< User request to change blood and dialysate rates. + MSG_ID_USER_BLOOD_DIAL_RATE_CHANGE_RESPONSE = 0x18, ///< HD response to user to change blood and dialysate rates. + MSG_ID_SET_DG_DIALYSATE_TEMP_TARGETS = 0x19, ///< HD provides DG with dialysate temperature set points. // service/test CAN messages @@ -101,4 +104,23 @@ END_OF_MSG_IDS ///< # of system message IDs. } MSG_ID_T; +/// Settings change rejection reason codes. +typedef enum Request_Reject_Reasons +{ + REQUEST_REJECT_REASON_NONE = 0, ///< No reason. + REQUEST_REJECT_REASON_NOT_ALLOWED_IN_CURRENT_MODE, ///< Request is not allowed in the current operating mode. + REQUEST_REJECT_REASON_TIMEOUT_WAITING_FOR_USER_CONFIRM, ///< Validated request was not confirmed by user in reasonable time. + REQUEST_REJECT_REASON_NOT_IN_TREATMENT_MODE, ///< Request is not allowed if not in treatment mode. + REQUEST_REJECT_REASON_INVALID_TREATMENT_STATE, ///< Request is not allowed in current treatment state. + REQUEST_REJECT_REASON_TREATMENT_TOO_CLOSE_TO_FINISHED, ///< Request is not allowed so near end of treatment. + REQUEST_REJECT_REASON_TREATMENT_TIME_OUT_OF_RANGE, ///< Treatment duration is out of range. + REQUEST_REJECT_REASON_TREATMENT_TIME_LESS_THAN_CURRENT, ///< Treatment time change is less than currently elapsed treatment time. + REQUEST_REJECT_REASON_BLOOD_FLOW_OUT_OF_RANGE, ///< Blood flow is out of range. + REQUEST_REJECT_REASON_DIAL_FLOW_OUT_OF_RANGE, ///< Dialysate flow is out of range. + REQUEST_REJECT_REASON_DIAL_VOLUME_OUT_OF_RANGE, ///< Dialysate flow rate or treatment duration causes dialysate volume to exceed limit. + REQUEST_REJECT_REASON_UF_VOLUME_OUT_OF_RANGE, ///< Ultrafiltration volume is out of range. + REQUEST_REJECT_REASON_UF_RATE_OUT_OF_RANGE, ///< Ultrafiltration rate is out of range. + NUM_OF_REQUEST_REJECT_REASONS ///< Number of settings change reject codes. +} REQUEST_REJECT_REASON_CODE_T; + #endif