sbgECom  1.11.920-stable
sbgEComBinaryLogDebug.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_DEBUG_H__
21 #define __SBG_ECOM_BINARY_LOG_DEBUG_H__
22 
23 #include <sbgCommon.h>
24 #include <streamBuffer/sbgStreamBuffer.h>
25 
26 #include "../protocol/sbgEComProtocol.h"
27 
28 //----------------------------------------------------------------------//
29 //- Log structure definitions -//
30 //----------------------------------------------------------------------//
31 
38 typedef struct _SbgLogDebugData
39 {
40  uint32_t id;
41  uint32_t offset;
42  uint32_t size;
43  uint32_t totalSize;
46 
47 //----------------------------------------------------------------------//
48 //- Operations -//
49 //----------------------------------------------------------------------//
50 
57 SbgErrorCode sbgEComBinaryLogParseDebugData(SbgStreamBuffer *pInputStream, SbgLogDebugData *pOutputData);
58 
65 SbgErrorCode sbgEComBinaryLogWriteDebugData(SbgStreamBuffer *pOutputStream, const SbgLogDebugData *pInputData);
66 
67 #endif
SbgErrorCode sbgEComBinaryLogWriteDebugData(SbgStreamBuffer *pOutputStream, const SbgLogDebugData *pInputData)
struct _SbgLogDebugData SbgLogDebugData
SbgErrorCode sbgEComBinaryLogParseDebugData(SbgStreamBuffer *pInputStream, SbgLogDebugData *pOutputData)
#define SBG_ECOM_MAX_PAYLOAD_SIZE
Definition: sbgEComProtocol.h:36
uint32_t offset
Definition: sbgEComBinaryLogDebug.h:41
uint8_t data[SBG_ECOM_MAX_PAYLOAD_SIZE - 16]
Definition: sbgEComBinaryLogDebug.h:44
uint32_t id
Definition: sbgEComBinaryLogDebug.h:40
uint32_t size
Definition: sbgEComBinaryLogDebug.h:42
uint32_t totalSize
Definition: sbgEComBinaryLogDebug.h:43
Definition: sbgEComBinaryLogDebug.h:38