template <>

class WireServer

Defined at line 2402 of file fidling/gen/sdk/fidl/fuchsia.hardware.power/fuchsia.hardware.power/cpp/fidl/fuchsia.hardware.power/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_hardware_power::Device>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_power::Device>|).

Public Methods

void RegisterPowerDomain (::fuchsia_hardware_power::wire::DeviceRegisterPowerDomainRequest * request, RegisterPowerDomainCompleter::Sync & completer)

Register the callee for this power domain. The callee will be registered until

UnregisterPowerDomain is called. Any voltage changes to the power domain will

be made considering the min_needed_voltage(in uV) and max_supported_voltage(in uV) published here.

If voltages mentioned are out of supported voltage range of domain(obtained by calling

GetSupportedVoltageRange), the callee will be registered with the supported voltage range.

void UnregisterPowerDomain (UnregisterPowerDomainCompleter::Sync & completer)

Unregister the callee for this power domain. The callee will no longer be considered as

a dependent of this power domain.

void GetSupportedVoltageRange (GetSupportedVoltageRangeCompleter::Sync & completer)

Get Supported Voltage Range. min and max are in micorVolts(uV)

void RequestVoltage (::fuchsia_hardware_power::wire::DeviceRequestVoltageRequest * request, RequestVoltageCompleter::Sync & completer)

Request a particular voltage. The actual_voltage is the voltage that the power domain

is transitioned to after considering supported voltage ranges of all the registered

dependents. "voltage" should be in uV.

void GetCurrentVoltage (::fuchsia_hardware_power::wire::DeviceGetCurrentVoltageRequest * request, GetCurrentVoltageCompleter::Sync & completer)

Get current voltage in uV.

void GetPowerDomainStatus (GetPowerDomainStatusCompleter::Sync & completer)

Get power domain status

void WireServer ()

Defined at line 2405 of file fidling/gen/sdk/fidl/fuchsia.hardware.power/fuchsia.hardware.power/cpp/fidl/fuchsia.hardware.power/cpp/wire_messaging.h

void WritePmicCtrlReg (::fuchsia_hardware_power::wire::DeviceWritePmicCtrlRegRequest * request, WritePmicCtrlRegCompleter::Sync & completer)

Write to ctrl register of PMIC

void ReadPmicCtrlReg (::fuchsia_hardware_power::wire::DeviceReadPmicCtrlRegRequest * request, ReadPmicCtrlRegCompleter::Sync & completer)

Read ctrl register of PMIC

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 2406 of file fidling/gen/sdk/fidl/fuchsia.hardware.power/fuchsia.hardware.power/cpp/fidl/fuchsia.hardware.power/cpp/wire_messaging.h