template <>

class Server

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

Public Methods

void RegisterPowerDomain (RegisterPowerDomainRequest & 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 Server ()

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

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 (RequestVoltageRequest & 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 (GetCurrentVoltageRequest & request, GetCurrentVoltageCompleter::Sync & completer)

Get current voltage in uV.

void GetPowerDomainStatus (GetPowerDomainStatusCompleter::Sync & completer)

Get power domain status

void WritePmicCtrlReg (WritePmicCtrlRegRequest & request, WritePmicCtrlRegCompleter::Sync & completer)

Write to ctrl register of PMIC

void ReadPmicCtrlReg (ReadPmicCtrlRegRequest & 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 ~Server ()

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