sbgECom  1.10.3692-stable
sbgEComBinaryLogPressure.h
Go to the documentation of this file.
1 
23 #ifndef __SBG_ECOM_BINARY_LOG_PRESSURE_H__
24 #define __SBG_ECOM_BINARY_LOG_PRESSURE_H__
25 
26 #include <sbgCommon.h>
27 #include <streamBuffer/sbgStreamBuffer.h>
28 
29 //----------------------------------------------------------------------//
30 //- Log Pressure status definitions -//
31 //----------------------------------------------------------------------//
32 
36 #define SBG_ECOM_PRESSURE_TIME_SYNC (0x0001u << 0)
37 #define SBG_ECOM_PRESSURE_PRESSURE_VALID (0x0001u << 1)
38 #define SBG_ECOM_PRESSURE_HEIGHT_VALID (0x0001u << 2)
40 //----------------------------------------------------------------------//
41 //- Log structure definitions -//
42 //----------------------------------------------------------------------//
43 
47 typedef struct _SbgLogPressureData
48 {
49  uint32 timeStamp;
50  uint16 status;
51  float pressure;
52  float height;
54 
55 //----------------------------------------------------------------------//
56 //- Operations -//
57 //----------------------------------------------------------------------//
58 
65 SbgErrorCode sbgEComBinaryLogParsePressureData(SbgStreamBuffer *pInputStream, SbgLogPressureData *pOutputData);
66 
73 SbgErrorCode sbgEComBinaryLogWritePressureData(SbgStreamBuffer *pOutputStream, const SbgLogPressureData *pInputData);
74 
75 #endif
float height
Definition: sbgEComBinaryLogPressure.h:52
float pressure
Definition: sbgEComBinaryLogPressure.h:51
uint16 status
Definition: sbgEComBinaryLogPressure.h:50
struct _SbgLogPressureData SbgLogPressureData
SbgErrorCode sbgEComBinaryLogWritePressureData(SbgStreamBuffer *pOutputStream, const SbgLogPressureData *pInputData)
Definition: sbgEComBinaryLogPressure.h:47
SbgErrorCode sbgEComBinaryLogParsePressureData(SbgStreamBuffer *pInputStream, SbgLogPressureData *pOutputData)
uint32 timeStamp
Definition: sbgEComBinaryLogPressure.h:49