sbgECom  1.11.920-stable
sbgEComBinaryLogEvent.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_EVENT_H__
21 #define __SBG_ECOM_BINARY_LOG_EVENT_H__
22 
23 #include <sbgCommon.h>
24 #include <streamBuffer/sbgStreamBuffer.h>
25 
26 //----------------------------------------------------------------------//
27 //- Log marker events definitions -//
28 //----------------------------------------------------------------------//
29 
33 #define SBG_ECOM_EVENT_OVERFLOW (0x00000001u << 0)
34 #define SBG_ECOM_EVENT_OFFSET_0_VALID (0x00000001u << 1)
35 #define SBG_ECOM_EVENT_OFFSET_1_VALID (0x00000001u << 2)
36 #define SBG_ECOM_EVENT_OFFSET_2_VALID (0x00000001u << 3)
37 #define SBG_ECOM_EVENT_OFFSET_3_VALID (0x00000001u << 4)
39 //----------------------------------------------------------------------//
40 //- Log structure definitions -//
41 //----------------------------------------------------------------------//
42 
46 typedef struct _SbgLogEvent
47 {
48  uint32_t timeStamp;
49  uint16_t status;
50  uint16_t timeOffset0;
51  uint16_t timeOffset1;
52  uint16_t timeOffset2;
53  uint16_t timeOffset3;
54 } SbgLogEvent;
55 
56 //----------------------------------------------------------------------//
57 //- Operations -//
58 //----------------------------------------------------------------------//
59 
66 SbgErrorCode sbgEComBinaryLogParseEvent(SbgStreamBuffer *pInputStream, SbgLogEvent *pOutputData);
67 
74 SbgErrorCode sbgEComBinaryLogWriteEvent(SbgStreamBuffer *pOutputStream, const SbgLogEvent *pInputData);
75 
76 #endif
Definition: sbgEComBinaryLogEvent.h:46
struct _SbgLogEvent SbgLogEvent
uint16_t status
Definition: sbgEComBinaryLogEvent.h:49
uint16_t timeOffset2
Definition: sbgEComBinaryLogEvent.h:52
uint16_t timeOffset0
Definition: sbgEComBinaryLogEvent.h:50
uint16_t timeOffset3
Definition: sbgEComBinaryLogEvent.h:53
SbgErrorCode sbgEComBinaryLogParseEvent(SbgStreamBuffer *pInputStream, SbgLogEvent *pOutputData)
uint16_t timeOffset1
Definition: sbgEComBinaryLogEvent.h:51
SbgErrorCode sbgEComBinaryLogWriteEvent(SbgStreamBuffer *pOutputStream, const SbgLogEvent *pInputData)
uint32_t timeStamp
Definition: sbgEComBinaryLogEvent.h:48