Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -rccfd15568f1e3d304320c2babb2fd4bcf0413304 -r3a480399e9fd87f51a12a469cc56242ebeb93539 --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision ccfd15568f1e3d304320c2babb2fd4bcf0413304) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 3a480399e9fd87f51a12a469cc56242ebeb93539) @@ -23,6 +23,7 @@ #include "BloodLeak.h" #include "BloodPrime.h" #include "Bubble.h" +#include "CommBuffers.h" #include "DGInterface.h" #include "DialInFlow.h" #include "DialOutFlow.h" @@ -55,12 +56,18 @@ * @{ */ -// ********** public definitions ********** +// ********** public definitions ********** + +#define ACK_REQUIRED TRUE ///< Macro for functions that want to know if an outgoing message requires acknowledgement from receiver. +#define ACK_NOT_REQUIRED FALSE ///< Macro for functions that want to know if an outgoing message requires acknowledgement from receiver. // ********** public function prototypes ********** // ACK MSG -BOOL sendACKMsg( MESSAGE_T *message ); +BOOL sendACKMsg( MESSAGE_T *message ); + +// Serialize message +U32 serializeMessage( MESSAGE_T msg, COMM_BUFFER_T buffer, BOOL ackReq ); // MSG_ID_DG_CHECK_IN void handleDGCheckIn( MESSAGE_T *message ); @@ -325,7 +332,7 @@ BOOL sendTreatmentLogAlarmEventData( ALARM_ID_T alarmID, ALARM_DATA_T almData1, ALARM_DATA_T almData2 ); // MSG_ID_HD_TREATMENT_LOG_EVENT -BOOL sendTreatmentLogEventData( EVENT_ID_T event, F32 oldValue, F32 newValue ); +BOOL sendTreatmentLogEventData( HD_EVENT_ID_T event, F32 oldValue, F32 newValue ); // *********** public DG command functions **********