sbgECom Library  6.1.3749-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComLogDepth.h
Go to the documentation of this file.
1
34
35#ifndef SBG_ECOM_LOG_DEPTH_H
36#define SBG_ECOM_LOG_DEPTH_H
37
38// sbgCommonLib headers
39#include <sbgCommon.h>
41
42// Project headers
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49//----------------------------------------------------------------------//
50//- Log depth status definitions -//
51//----------------------------------------------------------------------//
52
56#define SBG_ECOM_DEPTH_TIME_IS_DELAY (0x0001u << 0)
57#define SBG_ECOM_DEPTH_PRESSURE_VALID (0x0001u << 1)
58#define SBG_ECOM_DEPTH_ALTITUDE_VALID (0x0001u << 2)
59
60//----------------------------------------------------------------------//
61//- Log structure definitions -//
62//----------------------------------------------------------------------//
63
67typedef struct _SbgEComLogDepth
68{
69 uint32_t timeStamp;
70 uint16_t status;
71 float pressure;
72 float depth;
74
75//----------------------------------------------------------------------//
76//- Public methods -//
77//----------------------------------------------------------------------//
78
87
96
97//----------------------------------------------------------------------//
98//- Public setters/getters -//
99//----------------------------------------------------------------------//
100
108
116
117//----------------------------------------------------------------------//
118//- DEPRECATED - Used for backward compatibility -//
119//----------------------------------------------------------------------//
120
121SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogDepth SbgLogDepth);
122
123SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseDepth(SbgStreamBuffer *pStreamBuffer, SbgEComLogDepth *pLogData));
124SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteDepth(SbgStreamBuffer *pStreamBuffer, const SbgEComLogDepth *pLogData));
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif // SBG_ECOM_LOG_DEPTH_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED(func)
Definition sbgDefines.h:316
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition sbgDefines.h:349
Common enumeration and definitions for aiding data.
enum _SbgEComAidingTimeType SbgEComAidingTimeType
SbgErrorCode sbgEComLogDepthWriteToStream(const SbgEComLogDepth *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogDepth SbgEComLogDepth
void sbgEComLogDepthSetTimeType(SbgEComLogDepth *pLogData, SbgEComAidingTimeType timeType)
SbgEComAidingTimeType sbgEComLogDepthGetTimeType(const SbgEComLogDepth *pLogData)
SbgErrorCode sbgEComLogDepthReadFromStream(SbgEComLogDepth *pLogData, SbgStreamBuffer *pStreamBuffer)
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
struct _SbgStreamBuffer SbgStreamBuffer
Definition sbgEComLogDepth.h:68
float depth
Definition sbgEComLogDepth.h:72
uint16_t status
Definition sbgEComLogDepth.h:70
uint32_t timeStamp
Definition sbgEComLogDepth.h:69
float pressure
Definition sbgEComLogDepth.h:71