template <>

class WireSyncClientImpl

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

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_hardware_thermal::Device>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetFanLevel> GetFanLevel ()

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.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::SetFanLevel> SetFanLevel (uint32_t fan_level)

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.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetTemperatureCelsius> GetTemperatureCelsius ()

Get the current temperature in degrees Celsius.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetSensorName> GetSensorName ()

Allocates 304 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetInfo> GetInfo ()

Get information about the device's current state.

Allocates 128 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetDeviceInfo> GetDeviceInfo ()

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

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetDvfsInfo> GetDvfsInfo (::fuchsia_hardware_thermal::wire::PowerDomain power_domain)

Get the device's operating points.

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

Allocates 192 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetStateChangeEvent> GetStateChangeEvent ()

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.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetStateChangePort> GetStateChangePort ()

Get a port to get trip point notification packets.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::SetTripCelsius> SetTripCelsius (uint32_t id, float temp)

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

device will notify on an event.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::GetDvfsOperatingPoint> GetDvfsOperatingPoint (::fuchsia_hardware_thermal::wire::PowerDomain power_domain)

Get the current operating point index.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_thermal::Device::SetDvfsOperatingPoint> SetDvfsOperatingPoint (uint16_t op_idx, ::fuchsia_hardware_thermal::wire::PowerDomain power_domain)

Set the operating point index.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.