template <typename DerivedType, uint8_t address>
struct I2cRegister
Defined at line 15 of file ../../src/media/audio/drivers/codecs/da7219/da7219-regs.h
This class adds defaults and helpers to the hwreg-i2c library.
Since all registers read/write one byte at the time IntType is uint8_t and AddrIntSize 1.
Public Methods
zx::result<DerivedType> Read (fidl::ClientEnd<fuchsia_hardware_i2c::Device> & i2c)
Read from I2C and log errors.
Defined at line 17 of file ../../src/media/audio/drivers/codecs/da7219/da7219-regs.h
zx_status_t Write (fidl::ClientEnd<fuchsia_hardware_i2c::Device> & i2c)
Write to I2C and log errors.
Defined at line 32 of file ../../src/media/audio/drivers/codecs/da7219/da7219-regs.h
DerivedType Get ()
Defined at line 41 of file ../../src/media/audio/drivers/codecs/da7219/da7219-regs.h