class Fusb302
Defined at line 38 of file ../../src/devices/power/drivers/fusb302/fusb302.h
Fusb302: Device that keeps track of the state of the HW, services FIDL requests, and runs the IRQ
thread, which in turn runs StateMachine when called on.
Public Methods
void Fusb302 (fdf::Dispatcher dispatcher, fidl::ClientEnd<fuchsia_hardware_i2c::Device> i2c, fidl::ClientEnd<fuchsia_hardware_gpio::Gpio> gpio, zx::interrupt irq)
Defined at line 40 of file ../../src/devices/power/drivers/fusb302/fusb302.h
void Fusb302 (const Fusb302 & )
Defined at line 62 of file ../../src/devices/power/drivers/fusb302/fusb302.h
Fusb302 & operator= (const Fusb302 & )
Defined at line 63 of file ../../src/devices/power/drivers/fusb302/fusb302.h
void ~Fusb302 ()
Defined at line 65 of file ../../src/devices/power/drivers/fusb302/fusb302.h
void GetPowerInfo (GetPowerInfoCompleter::Sync & completer)
TODO(rdzhuang): change power FIDL to supply required values in SourceInfo
Defined at line 78 of file ../../src/devices/power/drivers/fusb302/fusb302.h
void GetStateChangeEvent (GetStateChangeEventCompleter::Sync & completer)
Defined at line 84 of file ../../src/devices/power/drivers/fusb302/fusb302.h
void GetBatteryInfo (GetBatteryInfoCompleter::Sync & completer)
Defined at line 87 of file ../../src/devices/power/drivers/fusb302/fusb302.h
Fusb302Sensors & sensors ()
Defined at line 91 of file ../../src/devices/power/drivers/fusb302/fusb302.h
Fusb302Protocol & protocol ()
Defined at line 92 of file ../../src/devices/power/drivers/fusb302/fusb302.h
Fusb302Controls & controls ()
Defined at line 93 of file ../../src/devices/power/drivers/fusb302/fusb302.h
inspect::Inspector & InspectorForTesting ()
Defined at line 95 of file ../../src/devices/power/drivers/fusb302/fusb302.h
zx_status_t Init ()
Initialization Functions and Variables
Defined at line 99 of file ../../src/devices/power/drivers/fusb302/fusb302.cc
zx::result<> WaitAsyncForTimer (zx::timer & timer)
Asynchronously waits for a timer to be signaled once.
When the timer is signaled, the state machines connected to this instance
will be run with an indication that a timer was signaled.
Defined at line 119 of file ../../src/devices/power/drivers/fusb302/fusb302.cc