sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogEvent.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_LOG_EVENT_H
34 #define SBG_ECOM_LOG_EVENT_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 //----------------------------------------------------------------------//
45 //- Log marker events definitions -//
46 //----------------------------------------------------------------------//
47 
51 #define SBG_ECOM_EVENT_OVERFLOW (0x00000001u << 0)
52 #define SBG_ECOM_EVENT_OFFSET_0_VALID (0x00000001u << 1)
53 #define SBG_ECOM_EVENT_OFFSET_1_VALID (0x00000001u << 2)
54 #define SBG_ECOM_EVENT_OFFSET_2_VALID (0x00000001u << 3)
55 #define SBG_ECOM_EVENT_OFFSET_3_VALID (0x00000001u << 4)
57 //----------------------------------------------------------------------//
58 //- Log structure definitions -//
59 //----------------------------------------------------------------------//
60 
64 typedef struct _SbgEComLogEvent
65 {
66  uint32_t timeStamp;
67  uint16_t status;
68  uint16_t timeOffset0;
69  uint16_t timeOffset1;
70  uint16_t timeOffset2;
71  uint16_t timeOffset3;
73 
74 //----------------------------------------------------------------------//
75 //- Public methods -//
76 //----------------------------------------------------------------------//
77 
86 
95 
96 //----------------------------------------------------------------------//
97 //- DEPRECATED - Used for backward compatibility -//
98 //----------------------------------------------------------------------//
99 
100 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogEvent SbgLogEvent);
101 
102 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseEvent(SbgStreamBuffer *pStreamBuffer, SbgEComLogEvent *pLogData));
103 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteEvent(SbgStreamBuffer *pStreamBuffer, const SbgEComLogEvent *pLogData));
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif // SBG_ECOM_LOG_EVENT_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
SbgErrorCode sbgEComLogEventReadFromStream(SbgEComLogEvent *pLogData, SbgStreamBuffer *pStreamBuffer)
SbgErrorCode sbgEComLogEventWriteToStream(const SbgEComLogEvent *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogEvent SbgEComLogEvent
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: sbgEComLogEvent.h:65
uint16_t timeOffset0
Definition: sbgEComLogEvent.h:68
uint32_t timeStamp
Definition: sbgEComLogEvent.h:66
uint16_t timeOffset2
Definition: sbgEComLogEvent.h:70
uint16_t timeOffset3
Definition: sbgEComLogEvent.h:71
uint16_t status
Definition: sbgEComLogEvent.h:67
uint16_t timeOffset1
Definition: sbgEComLogEvent.h:69
Definition: sbgStreamBufferCommon.h:201