sbgECom Library  5.2.590-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComLogEvent.h
Go to the documentation of this file.
1
32
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
41extern "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)
56
57//----------------------------------------------------------------------//
58//- Log structure definitions -//
59//----------------------------------------------------------------------//
60
64typedef 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
100SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogEvent SbgLogEvent);
101
102SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseEvent(SbgStreamBuffer *pStreamBuffer, SbgEComLogEvent *pLogData));
103SBG_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(func)
Definition sbgDefines.h:316
#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.
struct _SbgStreamBuffer SbgStreamBuffer
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