template <>

class Server

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

Public Methods

void GetFanLevel (GetFanLevelCompleter::Sync & completer)

Get the current fan level.

- response `status`

ZX_ERR_INTERNAL if `fan_level` is not available.

This generally means that `fan_level` has not

been initialized yet or something has gone

terribly wrong.

- response `fan_level` a uint32 field indicating the

current fan level. See fan level description above.

void Server ()

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

void SetFanLevel (SetFanLevelRequest & request, SetFanLevelCompleter::Sync & completer)

Set the fan level.

+ request `fan_level` a uint32 field indicating the

requested fan level. See fan level description above.

- response `status`

ZX_ERR_OUT_OF_RANGE if the requested fan_level is not

valid.

void GetTemperatureCelsius (GetTemperatureCelsiusCompleter::Sync & completer)

Get the current temperature in degrees Celsius.

void GetSensorName (GetSensorNameCompleter::Sync & completer)
void GetInfo (GetInfoCompleter::Sync & completer)

Get information about the device's current state.

void GetDeviceInfo (GetDeviceInfoCompleter::Sync & completer)

Get information about the device's thermal capabilities and trip points.

void GetDvfsInfo (GetDvfsInfoRequest & request, GetDvfsInfoCompleter::Sync & completer)

Get the device's operating points.

TODO(bradenkell): Can this be removed? GetDeviceInfo() provides the same information.

void GetStateChangeEvent (GetStateChangeEventCompleter::Sync & completer)

Get an event to get trip point notifications on. `ZX_USER_SIGNAL_`0 is changed when either

trip point is reached. It is deasserted when the state is read via GetInfo.

void GetStateChangePort (GetStateChangePortCompleter::Sync & completer)

Get a port to get trip point notification packets.

void SetTripCelsius (SetTripCelsiusRequest & request, SetTripCelsiusCompleter::Sync & completer)

Sets a trip point in degrees Celsius. When the sensor reaches the trip point temperature the

device will notify on an event.

void GetDvfsOperatingPoint (GetDvfsOperatingPointRequest & request, GetDvfsOperatingPointCompleter::Sync & completer)

Get the current operating point index.

void SetDvfsOperatingPoint (SetDvfsOperatingPointRequest & request, SetDvfsOperatingPointCompleter::Sync & completer)

Set the operating point index.

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 601 of file fidling/gen/sdk/fidl/fuchsia.hardware.thermal/fuchsia.hardware.thermal/cpp/fidl/fuchsia.hardware.thermal/cpp/natural_messaging.h