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) 72 #define SBG_ECOM_GPS_HDT_BASELINE_VALID (0x0001 << 6) 74 //----------------------------------------------------------------------// 78 #define SBG_ECOM_GPS_RAW_MAX_BUFFER_SIZE (4086u) 80 //----------------------------------------------------------------------//
struct _SbgLogGpsPos SbgLogGpsPos
SbgErrorCode sbgEComBinaryLogWriteGpsHdtData(SbgStreamBuffer *pOutputStream, const SbgLogGpsHdt *pInputData)
SBG_INLINE SbgEComGpsVelType sbgEComLogGpsVelGetType(uint32_t status)
#define SBG_ECOM_GPS_VEL_STATUS_SHIFT
SBG_INLINE uint32_t sbgEComLogGpsHdtBuildStatus(SbgEComGpsHdtStatus status, uint32_t masks)
#define SBG_ECOM_GPS_POS_STATUS_MASK
SbgErrorCode sbgEComBinaryLogWriteGpsRawData(SbgStreamBuffer *pOutputStream, const SbgLogGpsRaw *pInputData)
SBG_INLINE SbgEComGpsPosStatus sbgEComLogGpsPosGetStatus(uint32_t status)
Used to read/write data from/to a memory buffer stream.
struct _SbgLogGpsHdt SbgLogGpsHdt
enum _SbgEComGpsPosStatus SbgEComGpsPosStatus
#define SBG_ECOM_GPS_POS_STATUS_SHIFT
SBG_INLINE SbgEComGpsPosType sbgEComLogGpsPosGetType(uint32_t status)
SBG_INLINE uint32_t sbgEComLogGpsVelBuildStatus(SbgEComGpsVelStatus status, SbgEComGpsVelType type)
SBG_INLINE uint32_t sbgEComLogGpsPosBuildStatus(SbgEComGpsPosStatus status, SbgEComGpsPosType type, uint32_t masks)
#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 SbgEComGpsVelStatus sbgEComLogGpsVelGetStatus(uint32_t 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
SbgErrorCode sbgEComBinaryLogWriteGpsVelData(SbgStreamBuffer *pOutputStream, const SbgLogGpsVel *pInputData)
enum _SbgEComGpsVelType SbgEComGpsVelType
SBG_INLINE SbgEComGpsHdtStatus sbgEComLogGpsHdtGetStatus(uint32_t status)
enum _SbgErrorCode SbgErrorCode
SbgErrorCode sbgEComBinaryLogWriteGpsPosData(SbgStreamBuffer *pOutputStream, const SbgLogGpsPos *pInputData)