Sygaldry
Loading...
Searching...
No Matches
sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ > Struct Template Reference
Inheritance diagram for sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ >:
sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask > sygaldry::sygsp::ICM20948Registers< Serif >::BitField< name, Register, mask_ > sygaldry::sygsp::ICM20948Registers< Serif >::BitSwitch< name, Register, mask, invert > sygaldry::sygsp::ICM20948Registers< Serif >::BitTrigger< name, Register, mask > 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 * register_name ()
 
static void select_bank ()
 
static uint8_t read ()
 
static void write (uint8_t value)
 

Static Public Attributes

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, uint8_t addr_, uint8_t bank_, uint8_t reset_>
struct sygaldry::sygsp::ICM20948Registers< Serif >::Register< name, addr_, bank_, reset_ >

Base class for registers

The template parameters are stored in similarly-named static constexpr variables that encode the available information about a given control register.

Template Parameters
addr_The address of the register in the ICM20948 memory space
bank_The user bank in which the register is located (0, 1, 2, or 3)
reset_The value of the register after a device reset (e.g. at boot)

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