sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogDiag.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_LOG_DIAG_H
34 #define SBG_ECOM_LOG_DIAG_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
39 
40 // Project headers
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 //----------------------------------------------------------------------//
48 //- Constant definitions -//
49 //----------------------------------------------------------------------//
50 
54 #define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE (SBG_ECOM_MAX_PAYLOAD_SIZE - 6)
55 
56 //----------------------------------------------------------------------//
57 //- Structure definitions -//
58 //----------------------------------------------------------------------//
59 
63 typedef struct _SbgEComLogDiagData
64 {
65  uint32_t timestamp;
70 
71 //----------------------------------------------------------------------//
72 //- Public methods -//
73 //----------------------------------------------------------------------//
74 
83 
92 
93 //----------------------------------------------------------------------//
94 //- DEPRECATED - Used for backward compatibility -//
95 //----------------------------------------------------------------------//
96 
97 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogDiagData SbgLogDiagData);
98 
99 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseDiagData(SbgStreamBuffer *pStreamBuffer, SbgEComLogDiagData *pLogData));
100 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteDiagData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogDiagData *pLogData));
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif // SBG_ECOM_LOG_DIAG_H
Main header for the SBG Systems common C library.
enum _SbgDebugLogType SbgDebugLogType
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
SbgErrorCode sbgEComLogDiagWriteToStream(const SbgEComLogDiagData *pLogData, SbgStreamBuffer *pStreamBuffer)
#define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE
Definition: sbgEComLogDiag.h:54
SbgErrorCode sbgEComLogDiagReadFromStream(SbgEComLogDiagData *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogDiagData SbgEComLogDiagData
Implementation of the sbgECom binary communication protocol.
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
SBG_DEPRECATED(SBG_INLINE uint32_t SBG_VERSION(uint8_t major, uint8_t minor, uint8_t rev, uint8_t build))
Definition: sbgEComLogDiag.h:64
uint32_t timestamp
Definition: sbgEComLogDiag.h:65
SbgDebugLogType type
Definition: sbgEComLogDiag.h:66
SbgErrorCode errorCode
Definition: sbgEComLogDiag.h:67
Definition: sbgStreamBufferCommon.h:201