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
GetSensorName
Request
<EMPTY>
Response
Name | Type |
---|---|
name |
fuchsia.hardware.temperature/SensorName
|
GetTemperatureCelsius
Get the current temperature in degrees Celsius.
Request
<EMPTY>
Response
Name | Type |
---|---|
status |
zx/Status
|
temp |
float32
|
GetTripPointDescriptors
Returns N descriptors. Each descriptor describes one trip point supported by the hardware.
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
TripPoint_GetTripPointDescriptors_Result
|
SetTripPoints
Configure 0 or more hardware trip points.
Request
Name | Type |
---|---|
descriptors |
vector<TripPointDescriptor>
|
Response
Name | Type |
---|---|
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
Name | Type |
---|---|
payload |
TripPoint_WaitForAnyTripPoint_Result
|
STRUCTS
ClearedTripPoint
Defined in fuchsia.hardware.trippoint/trippoint.fidl
<EMPTY>
OneshotTempAboveTripPoint
Defined in fuchsia.hardware.trippoint/trippoint.fidl
See the comment in TripPointType for more information.
Field | Type | Description | Default |
---|---|---|---|
critical_temperature_celsius |
float32
|
The temperature at which the trip point activates. |
No default |
OneshotTempBelowTripPoint
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Field | Type | Description | Default |
---|---|---|---|
critical_temperature_celsius |
float32
|
The temperature at which the trip point activates. |
No default |
TripDeviceMetadata
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Field | Type | Description | Default |
---|---|---|---|
critical_temp_celsius |
float32
|
Critical temperature in degrees Celsius. |
No default |
TripPointDescriptor
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Field | Type | Description | Default |
---|---|---|---|
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 |
No default |
TripPointResult
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Field | Type | Description | Default |
---|---|---|---|
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
Field | Type | Description | Default |
---|---|---|---|
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
Field | Type | Description | Default |
---|---|---|---|
result |
TripPointResult
|
No default |
ENUMS
TripPointType flexible
Type: uint16
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Denotes the type of a particular trip point.
Name | Value | Description |
---|---|---|
ONESHOT_TEMP_ABOVE |
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. |
ONESHOT_TEMP_BELOW |
2 |
UNIONS
TripPointValue flexible
Defined in fuchsia.hardware.trippoint/trippoint.fidl
A union that defines all the possible types of trip points.
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
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. |
2 |
oneshot_temp_above_trip_point |
OneshotTempAboveTripPoint
|
|
3 |
oneshot_temp_below_trip_point |
OneshotTempBelowTripPoint
|
TripPoint_GetTripPointDescriptors_Result strict
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
TripPoint_GetTripPointDescriptors_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
TripPoint_SetTripPoints_Result strict
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
TripPoint_SetTripPoints_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
TripPoint_WaitForAnyTripPoint_Result strict
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
TripPoint_WaitForAnyTripPoint_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
SERVICES
TripPointService
Defined in fuchsia.hardware.trippoint/trippoint.fidl
Name | Type | Transport |
---|---|---|
trippoint |
fuchsia.hardware.trippoint/TripPoint
|
Channel |