class Device

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

Public Methods

void ~Device ()
void GetFanLevel (GetFanLevelCallback callback)

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 (uint32_t fan_level, SetFanLevelCallback callback)

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 (GetTemperatureCelsiusCallback callback)

Get the current temperature in degrees Celsius.

void GetSensorName (GetSensorNameCallback callback)
void GetInfo (GetInfoCallback callback)

Get information about the device's current state.

void GetDeviceInfo (GetDeviceInfoCallback callback)

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

void GetDvfsInfo (::fuchsia::hardware::thermal::PowerDomain power_domain, GetDvfsInfoCallback callback)

Get the device's operating points.

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

void GetStateChangeEvent (GetStateChangeEventCallback callback)

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 (GetStateChangePortCallback callback)

Get a port to get trip point notification packets.

void SetTripCelsius (uint32_t id, float temp, SetTripCelsiusCallback callback)

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::PowerDomain power_domain, GetDvfsOperatingPointCallback callback)

Get the current operating point index.

void SetDvfsOperatingPoint (uint16_t op_idx, ::fuchsia::hardware::thermal::PowerDomain power_domain, SetDvfsOperatingPointCallback callback)

Set the operating point index.