20 #ifndef __SBG_ECOM_BINARY_LOG_GPS_H__ 21 #define __SBG_ECOM_BINARY_LOG_GPS_H__ 33 #define SBG_ECOM_GPS_VEL_STATUS_SHIFT (0u) 34 #define SBG_ECOM_GPS_VEL_STATUS_MASK (0x0000003Fu) 35 #define SBG_ECOM_GPS_VEL_TYPE_SHIFT (6u) 36 #define SBG_ECOM_GPS_VEL_TYPE_MASK (0x0000003Fu) 38 //----------------------------------------------------------------------// 45 #define SBG_ECOM_GPS_POS_STATUS_SHIFT (0u) 46 #define SBG_ECOM_GPS_POS_STATUS_MASK (0x0000003Fu) 47 #define SBG_ECOM_GPS_POS_TYPE_SHIFT (6u) 48 #define SBG_ECOM_GPS_POS_TYPE_MASK (0x0000003Fu) 53 #define SBG_ECOM_GPS_POS_GPS_L1_USED (0x00000001u << 12) 54 #define SBG_ECOM_GPS_POS_GPS_L2_USED (0x00000001u << 13) 55 #define SBG_ECOM_GPS_POS_GPS_L5_USED (0x00000001u << 14) 56 #define SBG_ECOM_GPS_POS_GLO_L1_USED (0x00000001u << 15) 57 #define SBG_ECOM_GPS_POS_GLO_L2_USED (0x00000001u << 16) 59 //----------------------------------------------------------------------// 66 #define SBG_ECOM_GPS_HDT_STATUS_SHIFT (0u) 67 #define SBG_ECOM_GPS_HDT_STATUS_MASK (0x0000003Fu) 69 //----------------------------------------------------------------------// 73 #define SBG_ECOM_GPS_RAW_MAX_BUFFER_SIZE (4086u) 75 //----------------------------------------------------------------------// SBG_INLINE SbgEComGpsVelType sbgEComLogGpsVelGetType(uint32 status)
struct _SbgLogGpsPos SbgLogGpsPos
SbgErrorCode sbgEComBinaryLogWriteGpsHdtData(SbgStreamBuffer *pOutputStream, const SbgLogGpsHdt *pInputData)
SBG_INLINE uint32 sbgEComLogGpsHdtBuildStatus(SbgEComGpsHdtStatus status, uint32 masks)
#define SBG_ECOM_GPS_VEL_STATUS_SHIFT
SBG_INLINE uint32 sbgEComLogGpsPosBuildStatus(SbgEComGpsPosStatus status, SbgEComGpsPosType type, uint32 masks)
#define SBG_ECOM_GPS_POS_STATUS_MASK
SbgErrorCode sbgEComBinaryLogWriteGpsRawData(SbgStreamBuffer *pOutputStream, const SbgLogGpsRaw *pInputData)
SBG_INLINE uint32 sbgEComLogGpsVelBuildStatus(SbgEComGpsVelStatus status, SbgEComGpsVelType type)
Used to read/write data from/to a memory buffer stream.
struct _SbgLogGpsHdt SbgLogGpsHdt
SBG_INLINE SbgEComGpsVelStatus sbgEComLogGpsVelGetStatus(uint32 status)
enum _SbgEComGpsPosStatus SbgEComGpsPosStatus
#define SBG_ECOM_GPS_POS_STATUS_SHIFT
SBG_INLINE SbgEComGpsHdtStatus sbgEComLogGpsHdtGetStatus(uint32 status)
#define SBG_ECOM_GPS_HDT_STATUS_SHIFT
SbgErrorCode sbgEComBinaryLogParseGpsRawData(SbgStreamBuffer *pInputStream, SbgLogGpsRaw *pOutputData)
#define SBG_ECOM_GPS_HDT_STATUS_MASK
enum _SbgEComGpsPosType SbgEComGpsPosType
#define SBG_ECOM_GPS_POS_TYPE_MASK
struct _SbgLogGpsRaw SbgLogGpsRaw
SBG_INLINE SbgEComGpsPosStatus sbgEComLogGpsPosGetStatus(uint32 status)
#define SBG_ECOM_GPS_RAW_MAX_BUFFER_SIZE
Main header file for SBG Systems common C library.
enum _SbgEComGpsHdtStatus SbgEComGpsHdtStatus
enum _SbgEComGpsVelStatus SbgEComGpsVelStatus
SbgErrorCode sbgEComBinaryLogParseGpsHdtData(SbgStreamBuffer *pInputStream, SbgLogGpsHdt *pOutputData)
#define SBG_ECOM_GPS_VEL_STATUS_MASK
#define SBG_ECOM_GPS_POS_TYPE_SHIFT
#define SBG_ECOM_GPS_VEL_TYPE_SHIFT
SbgErrorCode sbgEComBinaryLogParseGpsVelData(SbgStreamBuffer *pInputStream, SbgLogGpsVel *pOutputData)
SbgErrorCode sbgEComBinaryLogParseGpsPosData(SbgStreamBuffer *pInputStream, SbgLogGpsPos *pOutputData)
struct _SbgLogGpsVel SbgLogGpsVel
#define SBG_ECOM_GPS_VEL_TYPE_MASK
SBG_INLINE SbgEComGpsPosType sbgEComLogGpsPosGetType(uint32 status)
SbgErrorCode sbgEComBinaryLogWriteGpsVelData(SbgStreamBuffer *pOutputStream, const SbgLogGpsVel *pInputData)
enum _SbgEComGpsVelType SbgEComGpsVelType
enum _SbgErrorCode SbgErrorCode
SbgErrorCode sbgEComBinaryLogWriteGpsPosData(SbgStreamBuffer *pOutputStream, const SbgLogGpsPos *pInputData)