Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -rc946dc2b288b45541d1ee583560aa2af5f49c1c7 -r549fea9aba0bc5bc03d195d1a5659261e3ace9d0 --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision c946dc2b288b45541d1ee583560aa2af5f49c1c7) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 549fea9aba0bc5bc03d195d1a5659261e3ace9d0) @@ -63,28 +63,6 @@ #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. -/// TODO - should this be in HDDefs? MsgDefs or other common?. -#define CONFIRMATION_REQUEST_TIMEOUT_MS ( SEC_PER_MIN * MS_PER_SECOND ) -/// List of confirmation status. -typedef enum Confirmation_Status -{ - CONFIRMATION_REQUEST_STATUS_REJECTED = 0, ///< Confirmation status rejected - CONFIRMATION_REQUEST_STATUS_ACCEPTED, ///< Confirmation status accepted - CONFIRMATION_REQUEST_STATUS_TIMEOUT, ///< Confirmation status timeout - CONFIRMATION_REQUEST_STATUS_PENDING, ///< Confirmation status pending response - CONFIRMATION_REQUEST_STATUS_UNUSED, ///< Confirmation status Unused - NUM_OF_CONFIRMATION_REQUEST_STATUS ///< Number of confirmation status -} CONFIRMATION_REQUEST_STATUS_T; - -/// Structure for confirmation request. -typedef struct -{ - U32 requestID; ///< Request ID - GENERIC_CONFIRM_COMMAND_T requestType; ///< Request Type - U32 timeStamp; ///< Timestamp for request - CONFIRMATION_REQUEST_STATUS_T status; ///< Request status (pending, accepted, rejected) -} CONFIRMATION_REQUEST_T; - // ********** public function prototypes ********** // Serialize message @@ -450,7 +428,14 @@ // MSG_ID_HD_SET_SW_CONFIG_RECORD void handleSetHDSoftwareConfigRecord( MESSAGE_T *message ); +// MSG_ID_HD_SEND_ALARMS_COMMAND +void handleResendAllAlarmsCommand( MESSAGE_T* message ); +// MSG_ID_UI_CONFIRMATION_RESULT +void handleUIConfirmationResponse( MESSAGE_T *message ); +void sendConfirmationRequest( GENERIC_CONFIRM_ID_T request_id, GENERIC_CONFIRM_COMMAND_T request_type, U32 reject_reason ); + + // MSG_ID_HD_REQUEST_DG_ALARMS BOOL sendRequestForDGResendAlarms( void ); @@ -829,14 +814,6 @@ // MSG_ID_HD_SEND_BLOOD_LEAK_EMB_MODE_RESPONSE BOOL sendBloodLeakEmbeddedModeCommandResponse( U32 responseLen, U08* response ); -// MSG_ID_HD_SEND_ALARMS_COMMAND -void handleResendAllAlarmsCommand( MESSAGE_T* message ); - -// MSG_ID_UI_CONFIRMATION_RESULT -void handleUIConfirmationResponse( MESSAGE_T *message ); -CONFIRMATION_REQUEST_STATUS_T checkConfirmationRequestStatus( GENERIC_CONFIRM_ID_T request_id ); -GENERIC_CONFIRM_ID_T sendConfirmationRequest( GENERIC_CONFIRM_ID_T request_id, GENERIC_CONFIRM_COMMAND_T request_type, U32 reject_reason ); - /**@}*/ #endif