class Fusb302Identity

Defined at line 17 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.h

Owns the device's Identity* register.

This class reports the FUSB302 chip variant via logging and Inspect.

Public Methods

void Fusb302Identity (fidl::ClientEnd<fuchsia_hardware_i2c::Device> & i2c_channel, inspect::Node root_node)

`i2c_channel` must remain alive throughout the new instance's lifetime.

Defined at line 20 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.cc

void Fusb302Identity (const Fusb302Identity & )

Defined at line 23 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.h

Fusb302Identity & operator= (const Fusb302Identity & )

Defined at line 24 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.h

zx::result<> ReadIdentity ()

Populates Inspect data with the FUSB302 chip version info.

Defined at line 24 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.cc

void ~Fusb302Identity ()

Trivially destructible.

Defined at line 27 of file ../../src/devices/power/drivers/fusb302/fusb302-identity.h