fuchsia.lightsensor

PROTOCOLS

Calibrator

Defined in fuchsia.lightsensor/calibrator.fidl

Calibrator is responsible for calibrating the raw data that comes from the product-configured light sensor. It is only intended to be used internally.

Calibrate

Calibrates the supplied raw [Rgbc] and returns calibrated [Rgbc].

Request

NameType
data Rgbc

Response

NameType
result Calibrator_Calibrate_Result

Sensor

Defined in fuchsia.lightsensor/sensor.fidl

Sensor will return calibrated readings from a product-configured light sensor.

Watch

Gets the current [LightSensorData]. Returns immediately on first call; subsequent calls return when the value changes.

Request

<EMPTY>

Response

NameType
data LightSensorData

STRUCTS

Calibrator_Calibrate_Response

Defined in fuchsia.lightsensor/calibrator.fidl

FieldTypeDescriptionDefault
data Rgbc No default

Rgbc

Defined in fuchsia.lightsensor/types.fidl

The color intensities that can be returned from a light sensor.

FieldTypeDescriptionDefault
red_intensity float32

Intensity of red light measured by the light sensor.

No default
green_intensity float32

Intensity of green light measured by the light sensor.

No default
blue_intensity float32

Intensity of blue light measured by the light sensor.

No default
clear_intensity float32

Intensity of clear light measured by the light sensor.

No default

ENUMS

Error strict

Type: uint32

Defined in fuchsia.lightsensor/types.fidl

Possible error results from API calls.

NameValueDescription
INVALID_INPUT 1

The input provided to the API was outside of the valid range of input, or required parameters were missing from a table.

TABLES

LightSensorData

Defined in fuchsia.lightsensor/sensor.fidl

OrdinalFieldTypeDescription
1 rgbc Rgbc

Light intensities measured by the light sensor.

2 calculated_lux float32

A weighted sum of the RGBC intensities.

3 correlated_color_temperature float32

The color temperature of the measured light.

UNIONS

Calibrator_Calibrate_Result strict

Defined in fuchsia.lightsensor/calibrator.fidl

Ordinal
VariantTypeDescription
1 response Calibrator_Calibrate_Response
2 err Error