external
sbgECom
src
binaryLogs
sbgEComBinaryLogDiag.h
Go to the documentation of this file.
1
20
#ifndef SBG_ECOM_BINARY_LOG_DIAG_H
21
#define SBG_ECOM_BINARY_LOG_DIAG_H
22
23
// sbgCommonLib headers
24
#include <
sbgCommon.h
>
25
#include <
streamBuffer/sbgStreamBuffer.h
>
26
27
// Project headers
28
#include "../protocol/sbgEComProtocol.h"
29
30
//----------------------------------------------------------------------//
31
//- Constant definitions -//
32
//----------------------------------------------------------------------//
33
37
#define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE (SBG_ECOM_MAX_PAYLOAD_SIZE - 6)
38
39
//----------------------------------------------------------------------//
40
//- Structure definitions -//
41
//----------------------------------------------------------------------//
42
46
typedef
struct
_SbgLogDiagData
47
{
48
uint32_t
timestamp
;
49
SbgDebugLogType
type
;
50
SbgErrorCode
errorCode
;
51
char
string
[
SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE
];
52
}
SbgLogDiagData
;
53
54
//----------------------------------------------------------------------//
55
//- Public functions -//
56
//----------------------------------------------------------------------//
57
65
SbgErrorCode
sbgEComBinaryLogParseDiagData
(
SbgStreamBuffer
*pInputStream,
SbgLogDiagData
*pOutputData);
66
67
75
SbgErrorCode
sbgEComBinaryLogWriteDiagData
(
SbgStreamBuffer
*pOutputStream,
const
SbgLogDiagData
*pInputData);
76
77
#endif
sbgCommon.h
_SbgLogDiagData::timestamp
uint32_t timestamp
Definition:
sbgEComBinaryLogDiag.h:48
_SbgLogDiagData
Definition:
sbgEComBinaryLogDiag.h:46
SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE
#define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE
Diagnostic log handling.
Definition:
sbgEComBinaryLogDiag.h:37
_SbgStreamBuffer
Definition:
sbgStreamBufferCommon.h:188
SbgDebugLogType
enum _SbgDebugLogType SbgDebugLogType
sbgStreamBuffer.h
sbgEComBinaryLogWriteDiagData
SbgErrorCode sbgEComBinaryLogWriteDiagData(SbgStreamBuffer *pOutputStream, const SbgLogDiagData *pInputData)
Definition:
sbgEComBinaryLogDiag.c:27
SbgErrorCode
enum _SbgErrorCode SbgErrorCode
Header file that defines all error codes for SBG Systems libraries.
sbgEComBinaryLogParseDiagData
SbgErrorCode sbgEComBinaryLogParseDiagData(SbgStreamBuffer *pInputStream, SbgLogDiagData *pOutputData)
Definition:
sbgEComBinaryLogDiag.c:12
_SbgLogDiagData::errorCode
SbgErrorCode errorCode
Definition:
sbgEComBinaryLogDiag.h:50
_SbgLogDiagData::type
SbgDebugLogType type
Definition:
sbgEComBinaryLogDiag.h:49
SbgLogDiagData
struct _SbgLogDiagData SbgLogDiagData
sbg_driver
Author(s): SBG Systems
autogenerated on Fri Oct 11 2024 02:13:40