Index: AlarmDefs.h =================================================================== diff -u -re18ec8e1d17b3e29993c966c53992b18cda5a799 -r282104180982bcd85b8cecd7f5a7f757831dc250 --- AlarmDefs.h (.../AlarmDefs.h) (revision e18ec8e1d17b3e29993c966c53992b18cda5a799) +++ AlarmDefs.h (.../AlarmDefs.h) (revision 282104180982bcd85b8cecd7f5a7f757831dc250) @@ -58,12 +58,12 @@ ALARM_ID_ARTERIAL_PRESSURE_HIGH = 33, ///< Arterial pressure too high during treatment. ALARM_ID_VENOUS_PRESSURE_LOW = 34, ///< Venous pressure too low during treatment. ALARM_ID_VENOUS_PRESSURE_HIGH = 35, ///< Venous pressure too high during treatment. - ALARM_ID_UF_RATE_ACCURACY_ERROR = 36, ///< Ultrafiltration rate accuracy error during treatment. + ALARM_ID_UF_RATE_TOO_HIGH_ERROR = 36, ///< Ultrafiltration rate accuracy error during treatment. ALARM_ID_UF_VOLUME_ACCURACY_ERROR = 37, ///< Ultrafiltration volume accuracy error during treatment. ALARM_ID_RTC_BATTERY_LOW = 38, ///< RTC battery low. ALARM_ID_RTC_OR_TIMER_ACCURACY_FAILURE = 39, ///< RTC or MCU timer inaccurate. - ALARM_ID_NVDATA_EEPROM_OPS_FAILURE = 40, ///< EEPRON operations (read, write, erase) failure. - ALARM_ID_RTC_RAM_OPS_ERROR = 41, ///< RTC (i.e read time) or RAM operations failure (read or write). + ALARM_ID_RTC_RAM_OPS_ERROR = 40, ///< RTC (i.e read time) or RAM operations failure (read or write). + ALARM_ID_NVDATA_EEPROM_OPS_FAILURE = 41, ///< EEPRON operations (read, write, erase) failure. ALARM_ID_NVDATA_MFG_RECORD_CRC_ERROR = 42, ///< Manufacturing record CRC failure. ALARM_ID_NVDATA_SRVC_RECORD_CRC_ERROR = 43, ///< Service record CRC failure. ALARM_ID_NVDATA_CAL_RECORD_CRC_ERROR = 44, ///< Calibration record CRC failure. Index: MsgDefs.h =================================================================== diff -u -r73ef0c58ea2b67ec0115fbd1504eb72d2a635737 -r282104180982bcd85b8cecd7f5a7f757831dc250 --- MsgDefs.h (.../MsgDefs.h) (revision 73ef0c58ea2b67ec0115fbd1504eb72d2a635737) +++ MsgDefs.h (.../MsgDefs.h) (revision 282104180982bcd85b8cecd7f5a7f757831dc250) @@ -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