@ref SatelliteType Bitmask Support
These values can be used to specify a bitmask for controlling enabled GNSS constellations. More...
Functions Index
template <typename... Args> | |
| P1_CONSTEXPR_FUNC uint32_t | ToBitMask (SatelliteType first, Args... others) |
|
Convert two or more SatelliteType values to a bitmask. More... | |
| P1_CONSTEXPR_FUNC uint32_t | ToBitMask (SatelliteType type) |
|
Convert a SatelliteType to a corresponding constellation control bitmask value. More... | |
Variables Index
| static constexpr uint32_t | SATELLITE_TYPE_MASK_ALL = 0xFFFFFFFF |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_BEIDOU = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_GALILEO = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_GLONASS = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_GPS = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_IRNSS = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_LEO = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_MIXED = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_QZSS = ... |
| static constexpr uint32_t | SATELLITE_TYPE_MASK_SBAS = ... |
Description
These values can be used to specify a bitmask for controlling enabled GNSS constellations.
The bit locations are equal to the values set by SatelliteType for each constellation.
For example, the mask 0x32 enables GPS, Galileo, and BeiDou. You can create that mask with the SATELLITE_TYPE_MASK_* constants:
or by calling the ToBitMask(SatelliteType) helper function:
Functions
ToBitMask()
|
Convert two or more SatelliteType values to a bitmask.
For example:
generates the following bitmask:
- Template Parameters
-
Args The type of the others values (SatelliteType)
- Parameters
-
first The first value.
others One or more additional values.
- Returns
The corresponding bitmask.
Definition at line 1805 of file signal_defs.h.
ToBitMask()
|
Convert a SatelliteType to a corresponding constellation control bitmask value.
For example:
generates the following bitmask:
- Parameters
-
type The desired constellation.
- Returns
The corresponding bitmask.
Definition at line 1776 of file signal_defs.h.
Variables
SATELLITE_TYPE_MASK_ALL
| constexpr static |
Definition at line 1754 of file signal_defs.h.
SATELLITE_TYPE_MASK_BEIDOU
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::BEIDOU))
Definition at line 1743 of file signal_defs.h.
SATELLITE_TYPE_MASK_GALILEO
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::GALILEO))
Definition at line 1741 of file signal_defs.h.
SATELLITE_TYPE_MASK_GLONASS
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::GLONASS))
Definition at line 1737 of file signal_defs.h.
SATELLITE_TYPE_MASK_GPS
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::GPS))
Definition at line 1735 of file signal_defs.h.
SATELLITE_TYPE_MASK_IRNSS
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::IRNSS))
Definition at line 1751 of file signal_defs.h.
SATELLITE_TYPE_MASK_LEO
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::LEO))
Definition at line 1739 of file signal_defs.h.
SATELLITE_TYPE_MASK_MIXED
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::MIXED))
Definition at line 1747 of file signal_defs.h.
SATELLITE_TYPE_MASK_QZSS
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::QZSS))
Definition at line 1745 of file signal_defs.h.
SATELLITE_TYPE_MASK_SBAS
| constexpr static |
- Initialiser
-
= (1UL << static_cast<uint8_t>(SatelliteType::SBAS))
Definition at line 1749 of file signal_defs.h.
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.