sbgECom  1.11.920-stable
sbgEComBinaryLogUsbl.h
Go to the documentation of this file.
1 
22 #ifndef __SBG_ECOM_BINARY_LOG_USBL_H__
23 #define __SBG_ECOM_BINARY_LOG_USBL_H__
24 
25 #include <sbgCommon.h>
26 #include <streamBuffer/sbgStreamBuffer.h>
27 
28 //----------------------------------------------------------------------//
29 //- Log USBL status definitions -//
30 //----------------------------------------------------------------------//
31 
35 #define SBG_ECOM_USBL_TIME_SYNC (0x0001u << 0)
36 #define SBG_ECOM_USBL_POSITION_VALID (0x0001u << 1)
37 #define SBG_ECOM_USBL_DEPTH_VALID (0x0001u << 2)
39 //----------------------------------------------------------------------//
40 //- Log structure definitions -//
41 //----------------------------------------------------------------------//
42 
46 typedef struct _SbgLogUsblData
47 {
48  uint32_t timeStamp;
49  uint16_t status;
51  double latitude;
52  double longitude;
54  float depth;
58  float depthAccuracy;
60 
61 //----------------------------------------------------------------------//
62 //- Operations -//
63 //----------------------------------------------------------------------//
64 
71 SbgErrorCode sbgEComBinaryLogParseUsblData(SbgStreamBuffer *pInputStream, SbgLogUsblData *pOutputData);
72 
79 SbgErrorCode sbgEComBinaryLogWriteUsblData(SbgStreamBuffer *pOutputStream, const SbgLogUsblData *pInputData);
80 
81 #endif
struct _SbgLogUsblData SbgLogUsblData
double latitude
Definition: sbgEComBinaryLogUsbl.h:51
float longitudeAccuracy
Definition: sbgEComBinaryLogUsbl.h:57
uint16_t status
Definition: sbgEComBinaryLogUsbl.h:49
float latitudeAccuracy
Definition: sbgEComBinaryLogUsbl.h:56
float depth
Definition: sbgEComBinaryLogUsbl.h:54
Definition: sbgEComBinaryLogUsbl.h:46
SbgErrorCode sbgEComBinaryLogWriteUsblData(SbgStreamBuffer *pOutputStream, const SbgLogUsblData *pInputData)
uint32_t timeStamp
Definition: sbgEComBinaryLogUsbl.h:48
float depthAccuracy
Definition: sbgEComBinaryLogUsbl.h:58
SbgErrorCode sbgEComBinaryLogParseUsblData(SbgStreamBuffer *pInputStream, SbgLogUsblData *pOutputData)
double longitude
Definition: sbgEComBinaryLogUsbl.h:52