fuchsia.hardware.trippoint

Added: 18

PROTOCOLS

TripPoint

Defined in fuchsia.hardware.trippoint/trippoint.fidl

The server should enforce that only one client may be connected and configuring trip points at any given time. If a second client attempts to configure trip points while a client is already connected, the server should return ZX_ERR_ALREADY_BOUND to indicate that it is busy. The server may allow multiple clients to access the

Added: 18

GetSensorName

Added: 14

Request

<EMPTY>

Response

NameType
name fuchsia.hardware.temperature/SensorName

GetTemperatureCelsius

Get the current temperature in degrees Celsius.

Request

<EMPTY>

Response

NameType
status zx/Status
temp float32

GetTripPointDescriptors

Returns N descriptors. Each descriptor describes one trip point supported by the hardware.

Request

<EMPTY>

Response

NameType
payload TripPoint_GetTripPointDescriptors_Result

SetTripPoints

Configure 0 or more hardware trip points.

Request

NameType
descriptors vector<TripPointDescriptor>

Response

NameType
payload TripPoint_SetTripPoints_Result

WaitForAnyTripPoint

Hanging get API that returns when any configured trip point has been crossed. Returns ZX_ERR_BAD_STATE if no trip points have been configured or if all configured trip points are cleared by a call to SetTripPoints.

Request

<EMPTY>

Response

NameType
payload TripPoint_WaitForAnyTripPoint_Result

STRUCTS

ClearedTripPoint

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Added: 18

<EMPTY>

OneshotTempAboveTripPoint

Defined in fuchsia.hardware.trippoint/trippoint.fidl

See the comment in TripPointType for more information.

Added: 18

FieldTypeDescriptionDefault
critical_temperature_celsius float32

The temperature at which the trip point activates.

No default

OneshotTempBelowTripPoint

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Added: 18

FieldTypeDescriptionDefault
critical_temperature_celsius float32

The temperature at which the trip point activates.

No default

TripDeviceMetadata

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Added: 18

FieldTypeDescriptionDefault
critical_temp_celsius float32

Critical temperature in degrees Celsius.

No default

TripPointDescriptor

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Added: 18

FieldTypeDescriptionDefault
type TripPointType

The type of this trip point as defined by the hardware.

No default
index uint32

The index of the trip point being configured. Trip points are always numbered 0 to N-1 where N is the number of available hardware trip points.

No default
configuration TripPointValue

If unset the type of this configuration will be cleared_trip_point otherwise it will be a TripPointValue that corresponds to the type defined by type.

No default

TripPointResult

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Added: 18

FieldTypeDescriptionDefault
measured_temperature_celsius float32

The temperature measured by the sensor. NaN if a measurement was not performed.

No default
index uint32

The index of the trip point that was configured.

No default

TripPoint_GetTripPointDescriptors_Response

Defined in fuchsia.hardware.trippoint/trippoint.fidl

FieldTypeDescriptionDefault
descriptors vector<TripPointDescriptor> No default

TripPoint_SetTripPoints_Response

Defined in fuchsia.hardware.trippoint/trippoint.fidl

<EMPTY>

TripPoint_WaitForAnyTripPoint_Response

Defined in fuchsia.hardware.trippoint/trippoint.fidl

FieldTypeDescriptionDefault
result TripPointResult No default

ENUMS

TripPointType flexible

Type: uint16

Defined in fuchsia.hardware.trippoint/trippoint.fidl

Denotes the type of a particular trip point.

Added: 18

NameValueDescription
1

This type of trip point is denoted by a critical temperature at which the trip point triggers and a direction. Once the trip point fires it is no longer configured and must be rearmed before it can fire again.

2

UNIONS

TripPointValue flexible

Defined in fuchsia.hardware.trippoint/trippoint.fidl

A union that defines all the possible types of trip points.

Added: 18
OrdinalVariantTypeDescription
cleared_trip_point ClearedTripPoint

This is a special reserved type of trip point that can be used by clients to clear previously configured trip point.

oneshot_temp_above_trip_point OneshotTempAboveTripPoint
oneshot_temp_below_trip_point OneshotTempBelowTripPoint

TripPoint_GetTripPointDescriptors_Result strict

Defined in fuchsia.hardware.trippoint/trippoint.fidl

OrdinalVariantTypeDescription
response TripPoint_GetTripPointDescriptors_Response
err zx/Status
framework_err internal

TripPoint_SetTripPoints_Result strict

Defined in fuchsia.hardware.trippoint/trippoint.fidl

OrdinalVariantTypeDescription
response TripPoint_SetTripPoints_Response
err zx/Status
framework_err internal

TripPoint_WaitForAnyTripPoint_Result strict

Defined in fuchsia.hardware.trippoint/trippoint.fidl

OrdinalVariantTypeDescription
response TripPoint_WaitForAnyTripPoint_Response
err zx/Status
framework_err internal

SERVICES

TripPointService

Defined in fuchsia.hardware.trippoint/trippoint.fidl

NameTypeTransport
trippoint fuchsia.hardware.trippoint/TripPoint Channel