class Fusb302Controls

Defined at line 22 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

Owns the device's Control* and Switch* registers.

This class handles the FUSB302's entire configuration, with the exception of

interrupt masks.

Public Methods

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

`i2c_channel` and `sensors` must remain alive throughout the new instance's

lifetime.

Defined at line 22 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc

void Fusb302Controls (const Fusb302Controls & )

Defined at line 29 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

Fusb302Controls & operator= (const Fusb302Controls & )

Defined at line 30 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

void ~Fusb302Controls ()

Defined at line 32 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc

zx::result<> ResetIntoPowerRoleDiscovery ()

Configures the chip for automated power role discovery.

Defined at line 34 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc

usb_pd::ConfigChannelPinSwitch wired_cc_pin ()

Committed configuration.

Defined at line 43 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

usb_pd::PowerRole power_role ()

Defined at line 44 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

usb_pd::DataRole data_role ()

Defined at line 45 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

usb_pd::SpecRevision spec_revision ()

Defined at line 46 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.h

zx::result<> ConfigureAllRoles (usb_pd::ConfigChannelPinSwitch wired_cc_pin, usb_pd::PowerRole power_role, usb_pd::DataRole data_role, usb_pd::SpecRevision spec_revision)

Configures the chip for a specific role and cable configuration.

Defined at line 64 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc

zx::result<> WaitForTransmitQueueFlush ()

Returns when the PHY layer's transmit FIFO is flushed.

Defined at line 370 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc

zx::result<> WaitForReceiveQueueFlush ()

Returns when the PHY layer's receive FIFO is flushed.

Defined at line 382 of file ../../src/devices/power/drivers/fusb302/fusb302-controls.cc