fuchsia.thermal

Added: 7

PROTOCOLS

ClientStateConnector

Defined in fuchsia.thermal/client_state.fidl

Allows a client to connect a ClientStateWatcher to the thermal state of a given ClientType.

Connect

Connects a ClientStateWatcher to the thermal state of the specified ClientType.

A client may call this method and begin using the ClientStateWatcher client endpoint immediately.

If client_type does not exactly (case-sensitive) match with a client entry found in the central thermal configuration, then the request will fail. On failure, both the watcher server endpoint as well as the current ClientStateConnector connection will be terminated.

  • client_type specifies the client-specific thermal state to which watcher should be connected. The value is valid iff it matches with a client entry found in the central thermal configuration.

  • watcher is the server endpoint of a ClientStateWatcher channel that will be connected to the thermal state of client_type.

Request

NameType
client_type ClientType
watcher server_end:ClientStateWatcher

ClientStateWatcher

Defined in fuchsia.thermal/client_state.fidl

Allows a client to watch for changes to its thermal state.

This protocol cannot be connected to the service directly. Instead, the server endpoint of a ClientStateWatcher channel must be connected to the thermal state of the desired client type using the [ClientStateConnector.Connect'] method. The client endpoint of a ClientStateWatcher` channel is only useful after it has been connected in this way.

Watch

Watches for changes to a client's thermal state.

A client's thermal state is determined according to the central thermal configuration of its specific type. See the README.md for more details.

On a given connection, the first call will return immediately with the client's current thermal state. Subsequent Watch requests will only return a new state if the client's thermal state has changed. This follows the hanging get pattern.

  • state is an unsigned integer representing the client's thermal state.

Request

<EMPTY>

Response

NameType
state uint64

SensorManager

Defined in fuchsia.thermal/sensor_manager.fidl

Interface that manages interactions and the working state of thermal sensors.

Added: HEAD

ClearTemperatureOverride

Clears the temperature override set by SetTemperatureOverride. If no temperature override has been set, this interaction does nothing.

If a sensor with the given name is not found, ClearTemperatureOverrideError.SENSOR_NOT_FOUND is returned.

Request

NameType
name fuchsia.hardware.temperature/SensorName

Response

NameType
payload SensorManager_ClearTemperatureOverride_Result

Connect

Connects to the thermal sensor with the given name.

If any required arguments are not provided, ConnectError.INVALID_ARGUMENTS is returned.

If a sensor with the given name is not found, ConnectError.SENSOR_NOT_FOUND is returned.

Request

NameType
payload SensorManagerConnectRequest

Response

NameType
payload SensorManager_Connect_Result

ListSensors

Lists sensors that may be controlled and connected to by clients.

Request

<EMPTY>

Response

NameType
payload SensorManager_ListSensors_Result

SetTemperatureOverride

Sets an override temperature for the sensor with name.

When an override temperature is set, internal thermal policies will use the override temperature. Temperature values retrieved from sensor connections vended by Connect will also receive the override temperature.

This interaction does not affect the thermal sensor itself. Clients who connect directly to the sensor without Connect will receive the real sensor value.

If a sensor with the given name is not found, SetTemperatureOverrideError.SENSOR_NOT_FOUND is returned.

Request

NameType
name fuchsia.hardware.temperature/SensorName
override_temperature float32

Response

NameType
payload SensorManager_SetTemperatureOverride_Result

STRUCTS

SensorManager_ClearTemperatureOverride_Response

Defined in fuchsia.thermal/sensor_manager.fidl

<EMPTY>

SensorManager_Connect_Response

Defined in fuchsia.thermal/sensor_manager.fidl

<EMPTY>

SensorManager_ListSensors_Response

Defined in fuchsia.thermal/sensor_manager.fidl

FieldTypeDescriptionDefault
sensors vector<SensorInfo> No default

SensorManager_SetTemperatureOverride_Response

Defined in fuchsia.thermal/sensor_manager.fidl

<EMPTY>

ENUMS

ClearTemperatureOverrideError flexible

Type: uint32

Defined in fuchsia.thermal/sensor_manager.fidl

Errors returned from calls to SensorManager.ClearTemperatureOverrideError.

Added: HEAD

NameValueDescription
1
2

ConnectError flexible

Type: uint32

Defined in fuchsia.thermal/sensor_manager.fidl

Errors returned from calls to SensorManager.ConnectError.

Added: HEAD

NameValueDescription
1
2
3

SetTemperatureOverrideError flexible

Type: uint32

Defined in fuchsia.thermal/sensor_manager.fidl

Errors returned from calls to SensorManager.SetTemperatureOverride.

Added: HEAD

NameValueDescription
1
2

TABLES

SensorInfo

Defined in fuchsia.thermal/sensor_manager.fidl

Information about a sensor.

Added: HEAD

OrdinalFieldTypeDescription
name fuchsia.hardware.temperature/SensorName

SensorManagerConnectRequest resource

Defined in fuchsia.thermal/sensor_manager.fidl

OrdinalFieldTypeDescription
name fuchsia.hardware.temperature/SensorName

Required.

server_end SensorServer

Required. The value that is set MUST match the type of sensor.

UNIONS

SensorManager_ClearTemperatureOverride_Result strict

Defined in fuchsia.thermal/sensor_manager.fidl

OrdinalVariantTypeDescription
response SensorManager_ClearTemperatureOverride_Response
err ClearTemperatureOverrideError
framework_err internal

SensorManager_Connect_Result strict

Defined in fuchsia.thermal/sensor_manager.fidl

OrdinalVariantTypeDescription
response SensorManager_Connect_Response
err ConnectError
framework_err internal

SensorManager_ListSensors_Result strict

Defined in fuchsia.thermal/sensor_manager.fidl

OrdinalVariantTypeDescription
response SensorManager_ListSensors_Response
framework_err internal

SensorManager_SetTemperatureOverride_Result strict

Defined in fuchsia.thermal/sensor_manager.fidl

OrdinalVariantTypeDescription
response SensorManager_SetTemperatureOverride_Response
err SetTemperatureOverrideError
framework_err internal

SensorServer flexible resource

Defined in fuchsia.thermal/sensor_manager.fidl

The server end for a thermal sensor connection.

Added: HEAD
OrdinalVariantTypeDescription
temperature server_end:fuchsia.hardware.temperature/Device

CONSTANTS

NameValueTypeDescription
MAX_THERMAL_LOAD 100 uint32

The maximum value of the normalized thermal load. This value bounds the width (and therefore also the precision) of the normalized thermal limiting range starting from 0. Trip points must be specified within this range.

ALIASES

NameValueDescription
ClientType string[8]

A string that represents the type of client using the protocol.

ClientType is used as a parameter to ClientStateConnector.Connect to connect a ClientStateWatcher to the thermal state of the desired client type.

A ClientType value should describe the type of subsystem a client represents and must exactly (case-sensitive) match with a client entry found in the central thermal configuration. Typical examples include "audio", "wifi", etc.