23#ifndef __FPSDK_COMMON_PARSER_SPARTN_HPP__
24#define __FPSDK_COMMON_PARSER_SPARTN_HPP__
56 return (msg[1] & 0xfe) >> 1;
70 return (msg[4] & 0xf0) >> 4;
88bool SpartnGetMessageName(
char* name,
const std::size_t size,
const uint8_t* msg,
const std::size_t msg_size);
static constexpr const char * SPARTN_PROP_STRID
SPARTN-PROP message name.
static constexpr uint16_t SPARTN_PROP_EST_SUBID
SPARTN-PROP-EST message ID.
static constexpr const char * SPARTN_HPAC_STRID
SPARTN-HPAC message name.
static constexpr const char * SPARTN_HPAC_QZSS_STRID
SPARTN-HPAC-QZSS message name.
static constexpr uint16_t SPARTN_OCB_BDS_SUBID
SPARTN-OCB-BDS message ID.
static constexpr const char * SPARTN_EAS_STRID
SPARTN-EAS message name.
constexpr uint8_t SpartnSubType(const uint8_t *msg)
Get SPARTN message sub-type.
bool SpartnGetMessageName(char *name, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get SPARTN message name.
static constexpr const char * SPARTN_OCB_BDS_STRID
SPARTN-OCB-BDS message name.
static constexpr const char * SPARTN_OCB_QZSS_STRID
SPARTN-OCB-QZSS message name.
static constexpr const char * SPARTN_PROP_EST_STRID
SPARTN-PROP-EST message name.
static constexpr const char * SPARTN_OCB_GAL_STRID
SPARTN-OCB-GAL message name.
static constexpr const char * SPARTN_PROP_SWIFT_STRID
SPARTN-PROP-SWIFT message name.
static constexpr const char * SPARTN_HPAC_GPS_STRID
SPARTN-HPAC-GPS message name.
static constexpr uint16_t SPARTN_EAS_KEY_SUBID
SPARTN-EAS-KEY message ID.
static constexpr uint16_t SPARTN_HPAC_BDS_SUBID
SPARTN-HPAC-BDS message ID.
static constexpr const char * SPARTN_OCB_STRID
SPARTN-OCB message name.
const char * SpartnGetTypeDesc(const uint16_t type, const uint16_t subtype=0xffff)
Get description for a SPARTN message type.
static constexpr const char * SPARTN_HPAC_GLO_STRID
SPARTN-HPAC-GLO message name.
static constexpr uint16_t SPARTN_PROP_SWIFT_SUBID
SPARTN-PROP-SWIFT message ID.
static constexpr uint16_t SPARTN_PROP_MSGID
SPARTN-PROP message ID.
static constexpr const char * SPARTN_BPAC_POLY_STRID
SPARTN-BPAC-POLY message name.
static constexpr uint16_t SPARTN_HPAC_GPS_SUBID
SPARTN-HPAC-GPS message ID.
static constexpr const char * SPARTN_OCB_GPS_STRID
SPARTN-OCB-GPS message name.
static constexpr const char * SPARTN_OCB_GLO_STRID
SPARTN-OCB-GLO message name.
static constexpr const char * SPARTN_GAD_GAD_STRID
SPARTN-GAD-GAD message name.
static constexpr uint16_t SPARTN_HPAC_GLO_SUBID
SPARTN-HPAC-GLO message ID.
static constexpr const char * SPARTN_PROP_UBLOX_STRID
SPARTN-PROP-UBLOX message name.
static constexpr uint16_t SPARTN_GAD_MSGID
SPARTN-GAD message ID.
static constexpr uint16_t SPARTN_BPAC_POLY_SUBID
SPARTN-BPAC-POLY message ID.
constexpr uint8_t SpartnType(const uint8_t *msg)
Get SPARTN message type.
static constexpr const char * SPARTN_HPAC_BDS_STRID
SPARTN-HPAC-BDS message name.
static constexpr const char * SPARTN_EAS_GROUP_STRID
SPARTN-EAS-GROUP message name.
static constexpr const char * SPARTN_BPAC_STRID
SPARTN-BPAC message name.
static constexpr uint16_t SPARTN_EAS_MSGID
SPARTN-EAS message ID.
static constexpr uint16_t SPARTN_PROP_UBLOX_SUBID
SPARTN-PROP-UBLOX message ID.
static constexpr uint16_t SPARTN_BPAC_MSGID
SPARTN-BPAC message ID.
static constexpr uint16_t SPARTN_HPAC_QZSS_SUBID
SPARTN-HPAC-QZSS message ID.
static constexpr uint16_t SPARTN_EAS_GROUP_SUBID
SPARTN-EAS-GROUP message ID.
static constexpr uint16_t SPARTN_OCB_GLO_SUBID
SPARTN-OCB-GLO message ID.
static constexpr uint16_t SPARTN_HPAC_GAL_SUBID
SPARTN-HPAC-GAL message ID.
static constexpr uint16_t SPARTN_OCB_GPS_SUBID
SPARTN-OCB-GPS message ID.
static constexpr std::size_t SPARTN_MIN_HEAD_SIZE
Minimal header size of a SPARTN message.
bool SpartnGetMessageInfo(char *info, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get SPARTN message info.
static constexpr const char * SPARTN_GAD_STRID
SPARTN-GAD message name.
static constexpr uint16_t SPARTN_OCB_GAL_SUBID
SPARTN-OCB-GAL message ID.
static constexpr uint16_t SPARTN_OCB_QZSS_SUBID
SPARTN-OCB-QZSS message ID.
static constexpr uint16_t SPARTN_HPAC_MSGID
SPARTN-HPAC message ID.
static constexpr const char * SPARTN_HPAC_GAL_STRID
SPARTN-HPAC-GAL message name.
static constexpr uint8_t SPARTN_PREAMBLE
SPARTN protocol preamble.
static constexpr uint16_t SPARTN_OCB_MSGID
SPARTN-OCB message ID.
static constexpr uint16_t SPARTN_GAD_GAD_SUBID
SPARTN-GAD-GAD message ID.
static constexpr const char * SPARTN_EAS_KEY_STRID
SPARTN-EAS-KEY message name.