template <class RegType>

class I2cRegisterAddr

Defined at line 177 of file ../../zircon/system/ulib/hwreg-i2c/include/hwreg/i2c.h

An instance of I2cRegisterAddr represents a typed register address: It

holds the address of the register in the i2c device and

the type of its contents, RegType. RegType represents the register's

bitfields. RegType should be a subclass of I2cRegisterBase.

All usage rules of RegisterAddr applies here with the following exceptions

- FromValue() is the only valid method for creating RegType.

- reg_addr is stored in uint32_t and will be casted to the exact length in I2cRegisterBase.

Public Methods

template <typename T>
RegType ReadFrom (T * reg_io)

Delete base class ReadFrom() as read from i2c can fail and

cannot be used for constructing RegType.

Defined at line 191 of file ../../zircon/system/ulib/hwreg-i2c/include/hwreg/i2c.h

void I2cRegisterAddr<RegType> (uint32_t reg_addr)

Defined at line 193 of file ../../zircon/system/ulib/hwreg-i2c/include/hwreg/i2c.h