fuchsia.hardware.backlight

PROTOCOLS

Device

Defined in fuchsia.hardware.backlight/backlight.fidl

GetStateNormalized

Gets the current backlight brightness as a percentage value between 0.0 and 1.0

Request

NameType

Response

NameType
result Device_GetStateNormalized_Result

SetStateNormalized

Sets the current backlight brightness as a percentage value between 0.0 and 1.0

Request

NameType
state State

Response

NameType
result Device_SetStateNormalized_Result

GetStateAbsolute

Gets the current backlight brightness in nits

Request

NameType

Response

NameType
result Device_GetStateAbsolute_Result

SetStateAbsolute

Sets the current backlight brightness in nits

Request

NameType
state State

Response

NameType
result Device_SetStateAbsolute_Result

GetMaxAbsoluteBrightness

Gets the maximum supported backlight brightness in nits, if known. Otherwise returns error ZX_ERR_NOT_SUPPORTED.

Request

NameType

Response

NameType
result Device_GetMaxAbsoluteBrightness_Result

STRUCTS

Device_GetStateNormalized_Response

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault
state State No default

Device_SetStateNormalized_Response

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault

Device_GetStateAbsolute_Response

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault
state State No default

Device_SetStateAbsolute_Response

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault

Device_GetMaxAbsoluteBrightness_Response

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault
max_brightness float64 No default

State

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescriptionDefault
backlight_on bool No default
brightness float64

brightness can either be:

  1. The unitless brightness value on a linear scale where 0.0 is the minimum brightness and 1.0 is the maximum brightness - represents the current / desired brightness as a percentage within the supported range. Used by the GetStateNormalized / SetStateNormalized calls.
  2. Absolute brightness in nits. Used by the GetStateAbsolute / SetStateAbsolute calls.
No default

UNIONS

Device_GetStateNormalized_Result

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescription
response Device_GetStateNormalized_Response
err zx/status

Device_SetStateNormalized_Result

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescription
response Device_SetStateNormalized_Response
err zx/status

Device_GetStateAbsolute_Result

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescription
response Device_GetStateAbsolute_Response
err zx/status

Device_SetStateAbsolute_Result

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescription
response Device_SetStateAbsolute_Response
err zx/status

Device_GetMaxAbsoluteBrightness_Result

Defined in fuchsia.hardware.backlight/backlight.fidl

NameTypeDescription
response Device_GetMaxAbsoluteBrightness_Response
err zx/status