Sygaldry
Loading...
Searching...
No Matches
sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask_ > Struct Template Reference
Inheritance diagram for sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask_ >:
sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ > sygaldry::sygsp::ICM20948Registers< Serif >::BitSwitch<"ACCEL_FCHOICE", ACCEL_CONFIG, 0b1 > sygaldry::sygsp::ICM20948Registers< Serif >::BitSwitch<"GYRO_FCHOICE", GYRO_CONFIG_1, 0b1 > sygaldry::sygsp::ICM20948Registers< Serif >::BitTrigger<"Soft Reset", CNTL3, 1 > sygaldry::sygsp::ICM20948Registers< Serif >::BitFieldState< name, BitField, value > sygaldry::sygsp::ICM20948Registers< Serif >::ACCEL_CONFIG::ACCEL_FCHOICE sygaldry::sygsp::ICM20948Registers< Serif >::GYRO_CONFIG_1::GYRO_FCHOICE sygaldry::sygsp::ICM20948Registers< Serif >::CNTL3::SRST

Static Public Member Functions

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)
 

Static Public Attributes

static constexpr uint8_t mask = 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_
 

Detailed Description

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
Registerregister for which this bit field applies
mask_The bitmask, saved in the static constexpr uint8_t member mask.

The documentation for this struct was generated from the following file: