fuchsia.hardware.powerlevel

Added: HEAD

PROTOCOLS

PowerLevel

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

GetPowerLevel

Gets the current power level of the device. Returns NOT_SUPPORTED if this device does not support reading the power level. Returns LEVEL_UNKNOWN if the current power level could not be determined. Returns INTERNAL_ERROR if an internal driver or hardware error occurs.

Request

<EMPTY>

Response

NameType
payload PowerLevel_GetPowerLevel_Result

SetPowerLevel

Set the power level for this device to a specific value. Returns NOT_SUPPORTED if this device does not support setting a power level. Returns INVALID_ARGS if the power level requested is not valid. Returns INTERNAL_ERROR if the requested power level could not be achieved. In this case the final power level of the device is undefined.

Request

NameType
level uint32

Response

NameType
payload PowerLevel_SetPowerLevel_Result

STRUCTS

PowerLevel_GetPowerLevel_Response

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

FieldTypeDescriptionDefault
out_level uint32 No default

PowerLevel_SetPowerLevel_Response

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

<EMPTY>

ENUMS

PowerLevelError flexible

Type: uint32

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

NameValueDescription
1

The driver encountered an otherwise unspecified error while performing the operation

2

The requested operation is not supported.

3

The method was provided illegal arguments. For example, the power level provided is not supported.

4

The power level of the device could not be determined because of the state of the hardware. Possibly because it has not been configured or because the device is in a state where its power level could not be determined.

UNIONS

PowerLevel_GetPowerLevel_Result strict

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

OrdinalVariantTypeDescription
response PowerLevel_GetPowerLevel_Response
err PowerLevelError
framework_err internal

PowerLevel_SetPowerLevel_Result strict

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

OrdinalVariantTypeDescription
response PowerLevel_SetPowerLevel_Response
err PowerLevelError
framework_err internal

SERVICES

PowerLevelService

Defined in fuchsia.hardware.powerlevel/powerlevel.fidl

NameTypeTransport
power_setter fuchsia.hardware.powerlevel/PowerLevel Channel