sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogAirData.h
Go to the documentation of this file.
1 
36 #ifndef SBG_ECOM_LOG_AIR_DATA_H
37 #define SBG_ECOM_LOG_AIR_DATA_H
38 
39 // sbgCommonLib headers
40 #include <sbgCommon.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 //----------------------------------------------------------------------//
48 //- Log Air Data status definitions -//
49 //----------------------------------------------------------------------//
50 
54 #define SBG_ECOM_AIR_DATA_TIME_IS_DELAY (0x0001u << 0)
55 #define SBG_ECOM_AIR_DATA_PRESSURE_ABS_VALID (0x0001u << 1)
56 #define SBG_ECOM_AIR_DATA_ALTITUDE_VALID (0x0001u << 2)
57 #define SBG_ECOM_AIR_DATA_PRESSURE_DIFF_VALID (0x0001u << 3)
58 #define SBG_ECOM_AIR_DATA_AIRPSEED_VALID (0x0001u << 4)
59 #define SBG_ECOM_AIR_DATA_TEMPERATURE_VALID (0x0001u << 5)
61 //----------------------------------------------------------------------//
62 //- Log structure definitions -//
63 //----------------------------------------------------------------------//
64 
68 typedef struct _SbgEComLogAirData
69 {
70  uint32_t timeStamp;
71  uint16_t status;
72  float pressureAbs;
73  float altitude;
74  float pressureDiff;
75  float trueAirspeed;
78 
79 //----------------------------------------------------------------------//
80 //- Public methods -//
81 //----------------------------------------------------------------------//
82 
91 
100 
101 //----------------------------------------------------------------------//
102 //- DEPRECATED - Used for backward compatibility -//
103 //----------------------------------------------------------------------//
104 
105 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogAirData SbgLogAirData);
106 
107 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseAirData(SbgStreamBuffer *pStreamBuffer, SbgEComLogAirData *pLogData));
108 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteAirData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogAirData *pLogData));
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif // SBG_ECOM_LOG_AIR_DATA_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
struct _SbgEComLogAirData SbgEComLogAirData
SbgErrorCode sbgEComLogAirDataWriteToStream(const SbgEComLogAirData *pLogData, SbgStreamBuffer *pStreamBuffer)
SbgErrorCode sbgEComLogAirDataReadFromStream(SbgEComLogAirData *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: sbgEComLogAirData.h:69
float altitude
Definition: sbgEComLogAirData.h:73
float trueAirspeed
Definition: sbgEComLogAirData.h:75
uint16_t status
Definition: sbgEComLogAirData.h:71
float pressureDiff
Definition: sbgEComLogAirData.h:74
float airTemperature
Definition: sbgEComLogAirData.h:76
uint32_t timeStamp
Definition: sbgEComLogAirData.h:70
float pressureAbs
Definition: sbgEComLogAirData.h:72
Definition: sbgStreamBufferCommon.h:201