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

generated

NameTypeDescriptionDefault
state State No default

SomeLongAnonymousPrefix1

generated

anonymous struct

NameTypeDescriptionDefault
result Device_GetStateNormalized_Result No default

SomeLongAnonymousPrefix2

generated

anonymous struct

NameTypeDescriptionDefault
state State No default

Device_SetStateNormalized_Response

generated

NameTypeDescriptionDefault

SomeLongAnonymousPrefix3

generated

anonymous struct

NameTypeDescriptionDefault
result Device_SetStateNormalized_Result No default

Device_GetStateAbsolute_Response

generated

NameTypeDescriptionDefault
state State No default

SomeLongAnonymousPrefix5

generated

anonymous struct

NameTypeDescriptionDefault
result Device_GetStateAbsolute_Result No default

SomeLongAnonymousPrefix6

generated

anonymous struct

NameTypeDescriptionDefault
state State No default

Device_SetStateAbsolute_Response

generated

NameTypeDescriptionDefault

SomeLongAnonymousPrefix7

generated

anonymous struct

NameTypeDescriptionDefault
result Device_SetStateAbsolute_Result No default

Device_GetMaxAbsoluteBrightness_Response

generated

NameTypeDescriptionDefault
max_brightness float64 No default

SomeLongAnonymousPrefix9

generated

anonymous struct

NameTypeDescriptionDefault
result Device_GetMaxAbsoluteBrightness_Result 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

generated

NameTypeDescription
response Device_GetStateNormalized_Response
err zx/status

Device_SetStateNormalized_Result

generated

NameTypeDescription
response Device_SetStateNormalized_Response
err zx/status

Device_GetStateAbsolute_Result

generated

NameTypeDescription
response Device_GetStateAbsolute_Response
err zx/status

Device_SetStateAbsolute_Result

generated

NameTypeDescription
response Device_SetStateAbsolute_Response
err zx/status

Device_GetMaxAbsoluteBrightness_Result

generated

NameTypeDescription
response Device_GetMaxAbsoluteBrightness_Response
err zx/status