template<typename Serif>
template<
string_literal name, typename
Register, uint8_t mask, bool invert = false>
struct sygaldry::sygsp::ICM20948Registers< Serif >::BitSwitch< name, Register, mask, invert >
Base class for single-bit fields where a set bit indicates an enabled (or disabled) state and an unset bit indicates a disabled (or enabled) state.
The default assumption is that a set bit indicates an enabled state.
- Template Parameters
-
Register | The struct defining the register (address, bank, etc.) for this bit field. |
mask | The mask for the single bit, which is also used to set the bit. |
invert | Flip the default assumption, so that a set bit indicates a disabled state. |