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>
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 
67 
74 SbgErrorCode sbgEComBinaryLogWriteEvent(SbgStreamBuffer *pOutputStream, const SbgLogEvent *pInputData);
75 
76 #endif
SbgErrorCode sbgEComBinaryLogWriteEvent(SbgStreamBuffer *pOutputStream, const SbgLogEvent *pInputData)
Used to read/write data from/to a memory buffer stream.
struct _SbgLogEvent SbgLogEvent
Main header file for SBG Systems common C library.
SbgErrorCode sbgEComBinaryLogParseEvent(SbgStreamBuffer *pInputStream, SbgLogEvent *pOutputData)
enum _SbgErrorCode SbgErrorCode


sbg_driver
Author(s): SBG Systems
autogenerated on Sat Sep 3 2022 02:53:35