sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogUsbl.h
Go to the documentation of this file.
1 
35 #ifndef SBG_ECOM_LOG_USBL_H
36 #define SBG_ECOM_LOG_USBL_H
37 
38 // sbgCommonLib headers
39 #include <sbgCommon.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 //----------------------------------------------------------------------//
47 //- Log USBL status definitions -//
48 //----------------------------------------------------------------------//
49 
53 #define SBG_ECOM_USBL_TIME_SYNC (0x0001u << 0)
54 #define SBG_ECOM_USBL_POSITION_VALID (0x0001u << 1)
55 #define SBG_ECOM_USBL_DEPTH_VALID (0x0001u << 2)
57 //----------------------------------------------------------------------//
58 //- Log structure definitions -//
59 //----------------------------------------------------------------------//
60 
64 typedef struct _SbgEComLogUsbl
65 {
66  uint32_t timeStamp;
67  uint16_t status;
69  double latitude;
70  double longitude;
72  float depth;
76  float depthAccuracy;
78 
79 //----------------------------------------------------------------------//
80 //- Public methods -//
81 //----------------------------------------------------------------------//
82 
91 
100 
101 //----------------------------------------------------------------------//
102 //- DEPRECATED - Used for backward compatibility -//
103 //----------------------------------------------------------------------//
104 
105 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogUsbl SbgLogUsblData);
106 
107 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseUsblData(SbgStreamBuffer *pStreamBuffer, SbgEComLogUsbl *pLogData));
108 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteUsblData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogUsbl *pLogData));
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif // SBG_ECOM_LOG_USBL_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
SbgErrorCode sbgEComLogUsblWriteToStream(const SbgEComLogUsbl *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogUsbl SbgEComLogUsbl
SbgErrorCode sbgEComLogUsblReadFromStream(SbgEComLogUsbl *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: sbgEComLogUsbl.h:65
double longitude
Definition: sbgEComLogUsbl.h:70
uint32_t timeStamp
Definition: sbgEComLogUsbl.h:66
uint16_t status
Definition: sbgEComLogUsbl.h:67
double latitude
Definition: sbgEComLogUsbl.h:69
float depthAccuracy
Definition: sbgEComLogUsbl.h:76
float depth
Definition: sbgEComLogUsbl.h:72
float latitudeAccuracy
Definition: sbgEComLogUsbl.h:74
float longitudeAccuracy
Definition: sbgEComLogUsbl.h:75
Definition: sbgStreamBufferCommon.h:201