22#ifndef __FPSDK_COMMON_PARSER_SBF_HPP__
23#define __FPSDK_COMMON_PARSER_SBF_HPP__
56 return (((uint16_t)((uint8_t*)msg)[5] << 8) | (uint16_t)((uint8_t*)msg)[4]) & 0x1fff;
70 return ((uint8_t*)msg)[5] >> 5;
84 return (((uint16_t)((uint8_t*)msg)[7] << 8) | (uint16_t)((uint8_t*)msg)[6]);
103bool SbfGetMessageName(
char* name,
const std::size_t size,
const uint8_t* msg,
const std::size_t msg_size);
119bool SbfGetMessageInfo(
char* info,
const std::size_t size,
const uint8_t* msg,
const std::size_t msg_size);
Parser SBF routines and types.
static constexpr const char * SBF_RXMESSAGE_STRID
SBF-RXMESSAGE message name.
static constexpr const char * SBF_BDSRAWB2B_STRID
SBF-BDSRAWB2B message name.
static constexpr uint16_t SBF_RECEIVERTIME_MSGID
SBF-RECEIVERTIME message ID.
static constexpr uint16_t SBF_GALGSTGPS_MSGID
SBF-GALGSTGPS message ID.
static constexpr uint16_t SBF_DOP_MSGID
SBF-DOP message ID.
static constexpr const char * SBF_BDSRAWB1C_STRID
SBF-BDSRAWB1C message name.
static constexpr uint8_t SBF_SYNC_1
Sync char 1 (like NMEA...)
static constexpr uint16_t SBF_RECEIVERSETUP_MSGID
SBF-RECEIVERSETUP message ID.
static constexpr uint16_t SBF_BBSAMPLES_MSGID
SBF-BBSAMPLES message ID.
static constexpr const char * SBF_COMMANDS_STRID
SBF-COMMANDS message name.
static constexpr uint16_t SBF_GALRAWCNAV_MSGID
SBF-GALRAWCNAV message ID.
static constexpr uint16_t SBF_GPSRAWCA_MSGID
SBF-GPSRAWCA message ID.
static constexpr uint16_t SBF_CHANNELSTATUS_MSGID
SBF-CHANNELSTATUS message ID.
static constexpr const char * SBF_QUALITYIND_STRID
SBF-QUALITYIND message name.
static constexpr const char * SBF_QZSRAWL6E_STRID
SBF-QZSRAWL6E message name.
static constexpr const char * SBF_GPSUTC_STRID
SBF-GPSUTC message name.
static constexpr uint16_t SBF_GPSRAWL1C_MSGID
SBF-GPSRAWL1C message ID.
static constexpr uint16_t SBF_GPSUTC_MSGID
SBF-GPSUTC message ID.
static constexpr const char * SBF_RECEIVERTIME_STRID
SBF-RECEIVERTIME message name.
static constexpr uint16_t SBF_GALAUTHSTATUS_MSGID
SBF-GALAUTHSTATUS message ID.
static constexpr uint16_t SBF_GPSION_MSGID
SBF-GPSION message ID.
static constexpr uint16_t SBF_EXTEVENTBASEVECTGEOD_MSGID
SBF-EXTEVENTBASEVECTGEOD message ID.
static constexpr uint16_t SBF_BASEVECTORCART_MSGID
SBF-BASEVECTORCART message ID.
static constexpr uint16_t SBF_QZSRAWL1CA_MSGID
SBF-QZSRAWL1CA message ID.
static constexpr const char * SBF_GALRAWFNAV_STRID
SBF-GALRAWFNAV message name.
static constexpr const char * SBF_GPSION_STRID
SBF-GPSION message name.
static constexpr uint16_t SBF_VELCOVCARTESIAN_MSGID
SBF-VELCOVCARTESIAN message ID.
static constexpr const char * SBF_PVTSUPPORTA_STRID
SBF-PVTSUPPORTA message name.
static constexpr uint16_t SBF_ASCIIIN_MSGID
SBF-ASCIIIN message ID.
static constexpr uint16_t SBF_GLONAV_MSGID
SBF-GLONAV message ID.
static constexpr const char * SBF_RFSTATUS_STRID
SBF-RFSTATUS message name.
static constexpr const char * SBF_SATVISIBILITY_STRID
SBF-SATVISIBILITY message name.
static constexpr uint16_t SBF_BDSUTC_MSGID
SBF-BDSUTC message ID.
static constexpr const char * SBF_BASEVECTORCART_STRID
SBF-BASEVECTORCART message name.
static constexpr const char * SBF_POSCOVCARTESIAN_STRID
SBF-POSCOVCARTESIAN message name.
static constexpr const char * SBF_GALSARRLM_STRID
SBF-GALSARRLM message name.
static constexpr const char * SBF_BDSALM_STRID
SBF-BDSALM message name.
static constexpr const char * SBF_EXTEVENTATTEULER_STRID
SBF-EXTEVENTATTEULER message name.
static constexpr uint16_t SBF_BDSNAV_MSGID
SBF-BDSNAV message ID.
static constexpr const char * SBF_LBANDTRACKERSTATUS_STRID
SBF-LBANDTRACKERSTATUS message name.
static constexpr uint16_t SBF_QZSRAWL1S_MSGID
SBF-QZSRAWL1S message ID.
static constexpr uint16_t SBF_GLOTIME_MSGID
SBF-GLOTIME message ID.
static constexpr const char * SBF_GALAUTHSTATUS_STRID
SBF-GALAUTHSTATUS message name.
static constexpr uint16_t SBF_PVTSUPPORTA_MSGID
SBF-PVTSUPPORTA message ID.
static constexpr const char * SBF_QZSRAWL1CA_STRID
SBF-QZSRAWL1CA message name.
static constexpr const char * SBF_QZSALM_STRID
SBF-QZSALM message name.
static constexpr uint16_t SBF_QZSRAWL5_MSGID
SBF-QZSRAWL5 message ID.
static constexpr uint16_t SBF_PVTSUPPORT_MSGID
SBF-PVTSUPPORT message ID.
static constexpr const char * SBF_GPSNAV_STRID
SBF-GPSNAV message name.
static constexpr const char * SBF_GALRAWCNAV_STRID
SBF-GALRAWCNAV message name.
bool SbfGetMessageInfo(char *info, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get SBF message info.
static constexpr const char * SBF_QZSRAWL2C_STRID
SBF-QZSRAWL2C message name.
static constexpr uint16_t SBF_GALRAWFNAV_MSGID
SBF-GALRAWFNAV message ID.
static constexpr uint16_t SBF_GPSRAWL2C_MSGID
SBF-GPSRAWL2C message ID.
static constexpr uint16_t SBF_VELCOVGEODETIC_MSGID
SBF-VELCOVGEODETIC message ID.
static constexpr uint16_t SBF_LBANDRAW_MSGID
SBF-LBANDRAW message ID.
static constexpr uint16_t SBF_NAVCART_MSGID
SBF-NAVCART message ID.
static constexpr uint16_t SBF_XPPSOFFSET_MSGID
SBF-XPPSOFFSET message ID.
static constexpr const char * SBF_QZSRAWL6D_STRID
SBF-QZSRAWL6D message name.
static constexpr const char * SBF_BDSCNAV3_STRID
SBF-BDSCNAV3 message name.
static constexpr uint16_t SBF_RFSTATUS_MSGID
SBF-RFSTATUS message ID.
static constexpr uint16_t SBF_GALION_MSGID
SBF-GALION message ID.
static constexpr uint16_t SBF_GPSRAWL5_MSGID
SBF-GPSRAWL5 message ID.
static constexpr const char * SBF_INPUTLINK_STRID
SBF-INPUTLINK message name.
static constexpr uint16_t SBF_POSCOVGEODETIC_MSGID
SBF-POSCOVGEODETIC message ID.
static constexpr const char * SBF_GLONAV_STRID
SBF-GLONAV message name.
static constexpr uint16_t SBF_QZSALM_MSGID
SBF-QZSALM message ID.
static constexpr uint16_t SBF_EXTEVENTPVTGEODETIC_MSGID
SBF-EXTEVENTPVTGEODETIC message ID.
static constexpr const char * SBF_NAVICRAW_STRID
SBF-NAVICRAW message name.
static constexpr uint16_t SBF_ATTCOVEULER_MSGID
SBF-ATTCOVEULER message ID.
static constexpr uint16_t SBF_MEASEPOCH_MSGID
SBF-MEASEPOCH message ID.
static constexpr uint8_t SBF_SYNC_2
Sync char 2.
static constexpr uint16_t SBF_BDSION_MSGID
SBF-BDSION message ID.
static constexpr const char * SBF_EXTEVENTPVTCARTESIAN_STRID
SBF-EXTEVENTPVTCARTESIAN message name.
static constexpr const char * SBF_GPSRAWCA_STRID
SBF-GPSRAWCA message name.
static constexpr const char * SBF_GALGSTGPS_STRID
SBF-GALGSTGPS message name.
static constexpr uint16_t SBF_DISKSTATUS_MSGID
SBF-DISKSTATUS message ID.
static constexpr const char * SBF_BDSION_STRID
SBF-BDSION message name.
static constexpr uint16_t SBF_QZSRAWL6D_MSGID
SBF-QZSRAWL6D message ID.
static constexpr const char * SBF_BASESTATION_STRID
SBF-BASESTATION message name.
static constexpr uint16_t SBF_OUTPUTLINK_MSGID
SBF-OUTPUTLINK message ID.
static constexpr uint16_t SBF_GALNAV_MSGID
SBF-GALNAV message ID.
static constexpr uint16_t SBF_QZSRAWL6E_MSGID
SBF-QZSRAWL6E message ID.
static constexpr uint16_t SBF_GLOALM_MSGID
SBF-GLOALM message ID.
static constexpr uint16_t SBF_NAVICLNAV_MSGID
SBF-NAVICLNAV message ID.
static constexpr uint16_t SBF_GPSCNAV_MSGID
SBF-GPSCNAV message ID.
static constexpr const char * SBF_GALALM_STRID
SBF-GALALM message name.
static constexpr const char * SBF_COMMENT_STRID
SBF-COMMENT message name.
bool SbfGetMessageName(char *name, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get SBF message name.
static constexpr const char * SBF_QZSNAV_STRID
SBF-QZSNAV message name.
static constexpr const char * SBF_BDSRAW_STRID
SBF-BDSRAW message name.
static constexpr uint16_t SBF_QZSRAWL5S_MSGID
SBF-QZSRAWL5S message ID.
static constexpr uint16_t SBF_COMMANDS_MSGID
SBF-COMMANDS message ID.
static constexpr uint16_t SBF_NAVICRAW_MSGID
SBF-NAVICRAW message ID.
static constexpr uint16_t SBF_BDSRAWB1C_MSGID
SBF-BDSRAWB1C message ID.
static constexpr uint16_t SBF_PVTCARTESIAN_MSGID
SBF-PVTCARTESIAN message ID.
static constexpr uint16_t SBF_POSCOVCARTESIAN_MSGID
SBF-POSCOVCARTESIAN message ID.
constexpr uint16_t SbfBlockType(const uint8_t *msg)
Get block type (message ID w/o revision)
static constexpr const char * SBF_GALION_STRID
SBF-GALION message name.
static constexpr const char * SBF_QZSRAWL1S_STRID
SBF-QZSRAWL1S message name.
static constexpr const char * SBF_RECEIVERSTATUS_STRID
SBF-RECEIVERSTATUS message name.
static constexpr uint16_t SBF_SATVISIBILITY_MSGID
SBF-SATVISIBILITY message ID.
static constexpr const char * SBF_VELCOVGEODETIC_STRID
SBF-VELCOVGEODETIC message name.
static constexpr const char * SBF_PVTGEODETIC_STRID
SBF-PVTGEODETIC message name.
static constexpr uint16_t SBF_GEOALM_MSGID
SBF-GEOALM message ID.
static constexpr const char * SBF_BBSAMPLES_STRID
SBF-BBSAMPLES message name.
static constexpr const char * SBF_GALUTC_STRID
SBF-GALUTC message name.
static constexpr uint16_t SBF_BDSRAWB2B_MSGID
SBF-BDSRAWB2B message ID.
static constexpr const char * SBF_GPSRAWL5_STRID
SBF-GPSRAWL5 message name.
static constexpr const char * SBF_BASEVECTORGEOD_STRID
SBF-BASEVECTORGEOD message name.
static constexpr uint16_t SBF_ENDOFPVT_MSGID
SBF-ENDOFPVT message ID.
static constexpr uint16_t SBF_PVTGEODETIC_MSGID
SBF-PVTGEODETIC message ID.
static constexpr const char * SBF_AUXANTPOSITIONS_STRID
SBF-AUXANTPOSITIONS message name.
static constexpr const char * SBF_GEORAWL5_STRID
SBF-GEORAWL5 message name.
static constexpr const char * SBF_DIFFCORRIN_STRID
SBF-DIFFCORRIN message name.
static constexpr const char * SBF_BDSUTC_STRID
SBF-BDSUTC message name.
static constexpr uint16_t SBF_GEONAV_MSGID
SBF-GEONAV message ID.
static constexpr uint16_t SBF_GALSARRLM_MSGID
SBF-GALSARRLM message ID.
static constexpr uint16_t SBF_QZSRAWL1C_MSGID
SBF-QZSRAWL1C message ID.
static constexpr const char * SBF_NAVCART_STRID
SBF-NAVCART message name.
static constexpr uint16_t SBF_GPSALM_MSGID
SBF-GPSALM message ID.
static constexpr uint16_t SBF_BDSRAW_MSGID
SBF-BDSRAW message ID.
static constexpr const char * SBF_GPSALM_STRID
SBF-GPSALM message name.
constexpr uint16_t SbfMsgSize(const uint8_t *msg)
Get message size.
static constexpr uint16_t SBF_BASEVECTORGEOD_MSGID
SBF-BASEVECTORGEOD message ID.
static constexpr const char * SBF_PVTCARTESIAN_STRID
SBF-PVTCARTESIAN message name.
static constexpr uint16_t SBF_BDSRAWB2A_MSGID
SBF-BDSRAWB2A message ID.
static constexpr const char * SBF_BDSNAV_STRID
SBF-BDSNAV message name.
static constexpr const char * SBF_EXTEVENTPVTGEODETIC_STRID
SBF-EXTEVENTPVTGEODETIC message name.
static constexpr uint16_t SBF_BDSCNAV3_MSGID
SBF-BDSCNAV3 message ID.
static constexpr const char * SBF_QZSRAWL5_STRID
SBF-QZSRAWL5 message name.
static constexpr const char * SBF_GEORAWL1_STRID
SBF-GEORAWL1 message name.
static constexpr const char * SBF_CHANNELSTATUS_STRID
SBF-CHANNELSTATUS message name.
static constexpr uint16_t SBF_ENDOFMEAS_MSGID
SBF-ENDOFMEAS message ID.
static constexpr const char * SBF_ENDOFPVT_STRID
SBF-ENDOFPVT message name.
static constexpr uint16_t SBF_GALRAWINAV_MSGID
SBF-GALRAWINAV message ID.
static constexpr const char * SBF_EXTEVENTBASEVECTGEOD_STRID
SBF-EXTEVENTBASEVECTGEOD message name.
static constexpr uint16_t SBF_BDSCNAV1_MSGID
SBF-BDSCNAV1 message ID.
static constexpr const char * SBF_QZSRAWL5S_STRID
SBF-QZSRAWL5S message name.
static constexpr uint16_t SBF_GALUTC_MSGID
SBF-GALUTC message ID.
static constexpr uint16_t SBF_DIFFCORRIN_MSGID
SBF-DIFFCORRIN message ID.
static constexpr const char * SBF_GLOALM_STRID
SBF-GLOALM message name.
static constexpr uint16_t SBF_ENDOFATT_MSGID
SBF-ENDOFATT message ID.
static constexpr const char * SBF_GEONAV_STRID
SBF-GEONAV message name.
static constexpr uint16_t SBF_BASESTATION_MSGID
SBF-BASESTATION message ID.
static constexpr uint16_t SBF_MEASEXTRA_MSGID
SBF-MEASEXTRA message ID.
static constexpr const char * SBF_GPSRAWL1C_STRID
SBF-GPSRAWL1C message name.
static constexpr const char * SBF_QZSRAWL1C_STRID
SBF-QZSRAWL1C message name.
static constexpr const char * SBF_RECEIVERSETUP_STRID
SBF-RECEIVERSETUP message name.
static constexpr const char * SBF_MEASEXTRA_STRID
SBF-MEASEXTRA message name.
static constexpr uint16_t SBF_EXTEVENTATTEULER_MSGID
SBF-EXTEVENTATTEULER message ID.
static constexpr const char * SBF_NAVICLNAV_STRID
SBF-NAVICLNAV message name.
static constexpr const char * SBF_GALNAV_STRID
SBF-GALNAV message name.
static constexpr const char * SBF_OUTPUTLINK_STRID
SBF-OUTPUTLINK message name.
static constexpr const char * SBF_GALRAWINAV_STRID
SBF-GALRAWINAV message name.
static constexpr const char * SBF_POSCOVGEODETIC_STRID
SBF-POSCOVGEODETIC message name.
static constexpr const char * SBF_GPSRAWL2C_STRID
SBF-GPSRAWL2C message name.
static constexpr uint16_t SBF_GEORAWL5_MSGID
SBF-GEORAWL5 message ID.
static constexpr std::size_t SBF_HEAD_SIZE
Size of the SBF header (SbfHeader)
static constexpr const char * SBF_ENDOFMEAS_STRID
SBF-ENDOFMEAS message name.
static constexpr const char * SBF_ATTCOVEULER_STRID
SBF-ATTCOVEULER message name.
static constexpr uint16_t SBF_GEORAWL1_MSGID
SBF-GEORAWL1 message ID.
static constexpr const char * SBF_ENDOFATT_STRID
SBF-ENDOFATT message name.
static constexpr uint16_t SBF_QZSRAWL2C_MSGID
SBF-QZSRAWL2C message ID.
static constexpr const char * SBF_ATTEULER_STRID
SBF-ATTEULER message name.
static constexpr uint16_t SBF_COMMENT_MSGID
SBF-COMMENT message ID.
static constexpr const char * SBF_GEOALM_STRID
SBF-GEOALM message name.
static constexpr uint16_t SBF_ATTEULER_MSGID
SBF-ATTEULER message ID.
static constexpr const char * SBF_BDSRAWB2A_STRID
SBF-BDSRAWB2A message name.
static constexpr uint16_t SBF_LBANDTRACKERSTATUS_MSGID
SBF-LBANDTRACKERSTATUS message ID.
static constexpr uint16_t SBF_BDSALM_MSGID
SBF-BDSALM message ID.
static constexpr uint16_t SBF_RECEIVERSTATUS_MSGID
SBF-RECEIVERSTATUS message ID.
static constexpr uint16_t SBF_QZSNAV_MSGID
SBF-QZSNAV message ID.
static constexpr uint16_t SBF_EXTEVENTPVTCARTESIAN_MSGID
SBF-EXTEVENTPVTCARTESIAN message ID.
static constexpr const char * SBF_GPSCNAV_STRID
SBF-GPSCNAV message name.
static constexpr const char * SBF_DOP_STRID
SBF-DOP message name.
static constexpr uint16_t SBF_EXTEVENT_MSGID
SBF-EXTEVENT message ID.
static constexpr const char * SBF_PVTSUPPORT_STRID
SBF-PVTSUPPORT message name.
static constexpr const char * SBF_EXTEVENT_STRID
SBF-EXTEVENT message name.
static constexpr uint16_t SBF_QUALITYIND_MSGID
SBF-QUALITYIND message ID.
static constexpr const char * SBF_DISKSTATUS_STRID
SBF-DISKSTATUS message name.
static constexpr const char * SBF_MEASEPOCH_STRID
SBF-MEASEPOCH message name.
static constexpr const char * SBF_XPPSOFFSET_STRID
SBF-XPPSOFFSET message name.
static constexpr const char * SBF_GLOTIME_STRID
SBF-GLOTIME message name.
static constexpr uint16_t SBF_GLORAWCA_MSGID
SBF-GLORAWCA message ID.
static constexpr uint16_t SBF_AUXANTPOSITIONS_MSGID
SBF-AUXANTPOSITIONS message ID.
static constexpr const char * SBF_LBANDRAW_STRID
SBF-LBANDRAW message name.
static constexpr uint16_t SBF_BDSCNAV2_MSGID
SBF-BDSCNAV2 message ID.
static constexpr const char * SBF_GLORAWCA_STRID
SBF-GLORAWCA message name.
static constexpr uint16_t SBF_RXMESSAGE_MSGID
SBF-RXMESSAGE message ID.
constexpr uint8_t SbfBlockRev(const uint8_t *msg)
Get block revision.
static constexpr const char * SBF_BDSCNAV2_STRID
SBF-BDSCNAV2 message name.
static constexpr const char * SBF_VELCOVCARTESIAN_STRID
SBF-VELCOVCARTESIAN message name.
static constexpr uint16_t SBF_INPUTLINK_MSGID
SBF-INPUTLINK message ID.
static constexpr const char * SBF_BDSCNAV1_STRID
SBF-BDSCNAV1 message name.
static constexpr const char * SBF_ASCIIIN_STRID
SBF-ASCIIIN message name.
static constexpr uint16_t SBF_GPSNAV_MSGID
SBF-GPSNAV message ID.
static constexpr uint16_t SBF_GALALM_MSGID
SBF-GALALM message ID.
Fixposition SDK: Common library.