template <>
class WireServer
Defined at line 2939 of file fidling/gen/sdk/fidl/fuchsia.hardware.thermal/fuchsia.hardware.thermal/cpp/fidl/fuchsia.hardware.thermal/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_thermal::Device>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_thermal::Device>|).
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 SetFanLevel (::fuchsia_hardware_fan::wire::FanSetFanLevelRequest * 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 (::fuchsia_hardware_thermal::wire::DeviceGetDvfsInfoRequest * 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 (::fuchsia_hardware_thermal::wire::DeviceSetTripCelsiusRequest * 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 (::fuchsia_hardware_thermal::wire::DeviceGetDvfsOperatingPointRequest * request, GetDvfsOperatingPointCompleter::Sync & completer)
Get the current operating point index.
void SetDvfsOperatingPoint (::fuchsia_hardware_thermal::wire::DeviceSetDvfsOperatingPointRequest * request, SetDvfsOperatingPointCompleter::Sync & completer)
Set the operating point index.
void WireServer ()
Defined at line 2942 of file fidling/gen/sdk/fidl/fuchsia.hardware.thermal/fuchsia.hardware.thermal/cpp/fidl/fuchsia.hardware.thermal/cpp/wire_messaging.h
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 2943 of file fidling/gen/sdk/fidl/fuchsia.hardware.thermal/fuchsia.hardware.thermal/cpp/fidl/fuchsia.hardware.thermal/cpp/wire_messaging.h