Sygaldry
|
Public Types | |
using | This = BitSwitch< name, Register, mask, invert > |
Static Public Member Functions | |
static void | enable () |
static void | disable () |
Static Public Member Functions inherited from sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask > | |
static constexpr const char * | field_name () |
static uint8_t | read_field () |
Static Public Member Functions inherited from sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ > | |
static constexpr const char * | register_name () |
static void | select_bank () |
static uint8_t | read () |
static void | write (uint8_t value) |
Additional Inherited Members | |
Static Public Attributes inherited from sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask > | |
static constexpr uint8_t | mask |
Static Public Attributes inherited from sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ > | |
static constexpr uint8_t | address = addr_ |
static constexpr uint8_t | bank = bank_ |
static constexpr uint8_t | after_reset = reset_ |
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.
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. |