These values can be used to specify a bitmask for controlling enabled GNSS frequency bands. The bit locations are equal to the values set by FrequencyBand.
For example, the mask 0x22 enables L1 and L5. You can create that mask with the FREQUENCY_BAND_MASK_*
constants:
or by calling the ToBitMask(FrequencyBand) helper function:
◆ ToBitMask() [1/2]
template<typename... Args>
constexpr uint32_t point_one::fusion_engine::messages::ToBitMask |
( |
FrequencyBand |
first, |
|
|
Args... |
others |
|
) |
| |
|
constexpr |
Convert two or more FrequencyBand values to a bitmask.
For example:
generates the following bitmask:
- Template Parameters
-
- Parameters
-
first | The first value. |
others | One or more additional values. |
- Returns
- The corresponding bitmask.
Definition at line 358 of file signal_defs.h.
◆ ToBitMask() [2/2]
constexpr uint32_t point_one::fusion_engine::messages::ToBitMask |
( |
FrequencyBand |
type | ) |
|
|
constexpr |
Convert a FrequencyBand to a corresponding frequency control bitmask value.
For example:
generates the following bitmask:
- Parameters
-
type | The desired frequency band. |
- Returns
- The corresponding bitmask.
Definition at line 331 of file signal_defs.h.
◆ FREQUENCY_BAND_MASK_ALL
constexpr uint32_t point_one::fusion_engine::messages::FREQUENCY_BAND_MASK_ALL = 0xFFFFFFFF |
|
staticconstexpr |
◆ FREQUENCY_BAND_MASK_L1
constexpr uint32_t point_one::fusion_engine::messages::FREQUENCY_BAND_MASK_L1 |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(FrequencyBand::L1))
Definition at line 300 of file signal_defs.h.
◆ FREQUENCY_BAND_MASK_L2
constexpr uint32_t point_one::fusion_engine::messages::FREQUENCY_BAND_MASK_L2 |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(FrequencyBand::L2))
Definition at line 302 of file signal_defs.h.
◆ FREQUENCY_BAND_MASK_L5
constexpr uint32_t point_one::fusion_engine::messages::FREQUENCY_BAND_MASK_L5 |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(FrequencyBand::L5))
Definition at line 304 of file signal_defs.h.
◆ FREQUENCY_BAND_MASK_L6
constexpr uint32_t point_one::fusion_engine::messages::FREQUENCY_BAND_MASK_L6 |
|
staticconstexpr |
Initial value:=
(1UL << static_cast<uint8_t>(FrequencyBand::L6))
Definition at line 306 of file signal_defs.h.