sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogDepth.h
Go to the documentation of this file.
1 
35 #ifndef SBG_ECOM_LOG_DEPTH_H
36 #define SBG_ECOM_LOG_DEPTH_H
37 
38 // sbgCommonLib headers
39 #include <sbgCommon.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 //----------------------------------------------------------------------//
47 //- Log Air Data status definitions -//
48 //----------------------------------------------------------------------//
49 
53 #define SBG_ECOM_DEPTH_TIME_IS_DELAY (0x0001u << 0)
54 #define SBG_ECOM_DEPTH_PRESSURE_ABS_VALID (0x0001u << 1)
55 #define SBG_ECOM_DEPTH_ALTITUDE_VALID (0x0001u << 2)
57 //----------------------------------------------------------------------//
58 //- Log structure definitions -//
59 //----------------------------------------------------------------------//
60 
64 typedef struct _SbgEComLogDepth
65 {
66  uint32_t timeStamp;
67  uint16_t status;
68  float pressureAbs;
69  float altitude;
71 
72 //----------------------------------------------------------------------//
73 //- Public methods -//
74 //----------------------------------------------------------------------//
75 
84 
93 
94 //----------------------------------------------------------------------//
95 //- DEPRECATED - Used for backward compatibility -//
96 //----------------------------------------------------------------------//
97 
98 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogDepth SbgLogDepth);
99 
100 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseDepth(SbgStreamBuffer *pStreamBuffer, SbgEComLogDepth *pLogData));
101 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteDepth(SbgStreamBuffer *pStreamBuffer, const SbgEComLogDepth *pLogData));
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif // SBG_ECOM_LOG_DEPTH_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
SbgErrorCode sbgEComLogDepthWriteToStream(const SbgEComLogDepth *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogDepth SbgEComLogDepth
SbgErrorCode sbgEComLogDepthReadFromStream(SbgEComLogDepth *pLogData, SbgStreamBuffer *pStreamBuffer)
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
SBG_DEPRECATED(SBG_INLINE uint32_t SBG_VERSION(uint8_t major, uint8_t minor, uint8_t rev, uint8_t build))
Definition: sbgEComLogDepth.h:65
float pressureAbs
Definition: sbgEComLogDepth.h:68
uint16_t status
Definition: sbgEComLogDepth.h:67
uint32_t timeStamp
Definition: sbgEComLogDepth.h:66
float altitude
Definition: sbgEComLogDepth.h:69
Definition: sbgStreamBufferCommon.h:201