class Fusb302Sensors
Defined at line 22 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
Owns the device's Status* registers.
This class handles the FUSB302's voltage and temperature sensors, and the
power role detector's output.
Public Methods
void Fusb302Sensors (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 21 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.cc
void Fusb302Sensors (const Fusb302Sensors & )
Defined at line 28 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
Fusb302Sensors & operator= (const Fusb302Sensors & )
Defined at line 29 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
void ~Fusb302Sensors ()
Defined at line 32 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.cc
bool UpdateComparatorsResult ()
Returns true if something changed.
Defined at line 34 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.cc
bool vbus_power_good ()
Cached sensor state.
Defined at line 38 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
usb_pd::ConfigChannelTermination cc_termination ()
Defined at line 39 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
PowerRoleDetectionState power_role_detection_state ()
Defined at line 40 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
usb_pd::PowerRole detected_power_role ()
Defined at line 43 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
usb_pd::ConfigChannelPinSwitch detected_wired_cc_pin ()
Defined at line 44 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
void SetConfiguration (usb_pd::PowerRole power_role, usb_pd::ConfigChannelPinSwitch wired_cc_pin)
Must be called when the switch and measure block configuration is updated.
Defined at line 49 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.h
bool UpdatePowerRoleDetectionResult ()
Defined at line 68 of file ../../src/devices/power/drivers/fusb302/fusb302-sensors.cc