template<typename Serif>
template<
string_literal name, typename
Register, uint8_t mask_>
struct sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask_ >
Base class for bit fields
Every register has numerous bit fields comprising one or more bits. This base class stores the bit mask with the bit or bits concerned by the given field set, so that these bits can be cleared from an existing state of the register by (reg & ~mask)
or the state of only these bits can be extracted by (reg & mask)
.
- Template Parameters
-
Register | register for which this bit field applies |
mask_ | The bitmask, saved in the static constexpr uint8_t member mask . |