sbgECom  1.11.920-stable
sbgEComBinaryLogDiag.h
Go to the documentation of this file.
1 
20 #ifndef SBG_ECOM_BINARY_LOG_DIAG_H
21 #define SBG_ECOM_BINARY_LOG_DIAG_H
22 
23 // sbgCommonLib headers
24 #include <sbgCommon.h>
25 #include <streamBuffer/sbgStreamBuffer.h>
26 
27 // Project headers
28 #include "../protocol/sbgEComProtocol.h"
29 
30 //----------------------------------------------------------------------//
31 //- Constant definitions -//
32 //----------------------------------------------------------------------//
33 
37 #define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE (SBG_ECOM_MAX_PAYLOAD_SIZE - 6)
38 
39 //----------------------------------------------------------------------//
40 //- Structure definitions -//
41 //----------------------------------------------------------------------//
42 
46 typedef struct _SbgLogDiagData
47 {
48  uint32_t timestamp;
49  SbgDebugLogType type;
50  SbgErrorCode errorCode;
53 
54 //----------------------------------------------------------------------//
55 //- Public functions -//
56 //----------------------------------------------------------------------//
57 
65 SbgErrorCode sbgEComBinaryLogParseDiagData(SbgStreamBuffer *pInputStream, SbgLogDiagData *pOutputData);
66 
67 
75 SbgErrorCode sbgEComBinaryLogWriteDiagData(SbgStreamBuffer *pOutputStream, const SbgLogDiagData *pInputData);
76 
77 #endif
Definition: sbgEComBinaryLogDiag.h:46
SbgErrorCode sbgEComBinaryLogWriteDiagData(SbgStreamBuffer *pOutputStream, const SbgLogDiagData *pInputData)
SbgErrorCode sbgEComBinaryLogParseDiagData(SbgStreamBuffer *pInputStream, SbgLogDiagData *pOutputData)
SbgErrorCode errorCode
Definition: sbgEComBinaryLogDiag.h:50
#define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE
Definition: sbgEComBinaryLogDiag.h:37
uint32_t timestamp
Definition: sbgEComBinaryLogDiag.h:48
SbgDebugLogType type
Definition: sbgEComBinaryLogDiag.h:49
struct _SbgLogDiagData SbgLogDiagData