Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -rd106a0eefd1e2ffe5873cd862ebbd53c1002de27 -rddcaa054bec161fc48d07b86c3e2550c5bb15fbe --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision d106a0eefd1e2ffe5873cd862ebbd53c1002de27) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision ddcaa054bec161fc48d07b86c3e2550c5bb15fbe) @@ -7,8 +7,8 @@ * * @file SystemCommMessages.h * -* @author (last) Vinayakam Mani -* @date (last) 30-Aug-2023 +* @author (last) Sean Nash +* @date (last) 30-Sep-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -65,23 +65,27 @@ #define ACK_NOT_REQUIRED FALSE ///< Macro for functions that want to know if an outgoing message requires acknowledgement from receiver. #pragma pack(push, 1) +/// Payload record structure for ACK response. typedef struct { U08 acknowledgement; ///< Acknowledgement Byte } ACK_RESPONSE_PAYLOAD_T; +/// Payload record structure for off button response. typedef struct { U08 userRequest; ///< request to confirm, cancel, or reject off button request } UI_OFF_BUTTON_RESPONSE_PAYLOAD_T; #pragma pack(pop) +/// Payload record structure for UI response. typedef struct { BOOL accepted; ///< Accepted/Rejected U32 rejectionReason; ///< Rejection reason if not accepted. } UI_RESPONSE_PAYLOAD_T; +/// Payload record structure for UF change response. typedef struct { BOOL accepted; ///< Accepted/Rejected @@ -94,6 +98,7 @@ F32 oldUFRate; ///< Previous UF Rate in mL/min. } UF_SETTINGS_CHANGE_RESPONSE_PAYLOAD_T; +/// Payload record structure for UF change confirmation response. typedef struct { BOOL accepted; ///< Accepted/Rejected @@ -103,6 +108,7 @@ F32 ufRate; ///< UF rate in mL. } UF_SETTINGS_CONFIRMATION_RESPONSE_PAYLOAD_T; +/// Payload record structure for treatment duration change response. typedef struct { BOOL accepted; ///< Accepted/Rejected @@ -111,6 +117,7 @@ F32 volume; ///< UF Volume in mL. } TREATMENT_TIME_CHANGE_RESPONSE_PAYLOAD_T; +/// Payload record structure for blood / dialysate rate change response. typedef struct { BOOL accepted; ///< Accepted/Rejected @@ -119,6 +126,7 @@ U32 dialRate; ///< new dialysate flow rate } BLOOD_DIAL_RATE_CHANGE_RESPONSE_PAYLOAD_T; +/// Payload record structure for event messages. typedef struct { U32 event; ///< Event ID @@ -128,6 +136,7 @@ EVENT_DATAS_T data2; ///< Data field 2 } EVENT_PAYLOAD_T; +/// Payload record structure for treatment parameter broadcast messages. typedef struct { U32 minTreatmentTime; ///< Minimum treatment duration (in minutes) @@ -222,18 +231,9 @@ // MSG_ID_DG_TEMPERATURE_DATA: void handleDGTemperatureData( MESSAGE_T *message ); -// MSG_ID_RO_PUMP_DATA: -void handleROPumpData( MESSAGE_T *message ); - // MSG_ID_DG_FLOW_SENSORS_DATA void handleDialysateFlowData( MESSAGE_T *message ); -// MSG_ID_DRAIN_PUMP_DATA: -void handleDrainPumpData( MESSAGE_T *message ); - -// MSG_ID_DG_PRESSURES_DATA: -void handleDGPressuresData( MESSAGE_T *message ); - // MSG_ID_DG_RESERVOIR_DATA: void handleDGReservoirData( MESSAGE_T *message ); @@ -773,9 +773,6 @@ // MSG_ID_SUPER_CLEAR_ALARMS_CMD void handleTestSuperClearAlarmsRequest( MESSAGE_T *message ); -// MSG_ID_HD_REQUEST_CALIBRATION_DATA -void handleTestHDCalibrationDataRequest( MESSAGE_T *message ); - // MSG_ID_HD_SET_CALIBRATION_RECORD void handleSetHDCalibrationRecord( MESSAGE_T *message );