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
Name | Type |
---|---|
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
Name | Type |
---|---|
level |
uint32
|
Response
Name | Type |
---|---|
payload |
PowerLevel_SetPowerLevel_Result
|
STRUCTS
PowerLevel_GetPowerLevel_Response
Defined in fuchsia.hardware.powerlevel/powerlevel.fidl
Field | Type | Description | Default |
---|---|---|---|
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
Name | Value | Description |
---|---|---|
INTERNAL_ERROR |
1 |
The driver encountered an otherwise unspecified error while performing the operation |
NOT_SUPPORTED |
2 |
The requested operation is not supported. |
INVALID_ARGS |
3 |
The method was provided illegal arguments. For example, the power level provided is not supported. |
LEVEL_UNKNOWN |
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
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
PowerLevel_GetPowerLevel_Response
|
|
2 |
err |
PowerLevelError
|
|
3 |
framework_err |
internal
|
PowerLevel_SetPowerLevel_Result strict
Defined in fuchsia.hardware.powerlevel/powerlevel.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
PowerLevel_SetPowerLevel_Response
|
|
2 |
err |
PowerLevelError
|
|
3 |
framework_err |
internal
|
SERVICES
PowerLevelService
Defined in fuchsia.hardware.powerlevel/powerlevel.fidl
Name | Type | Transport |
---|---|---|
power_setter |
fuchsia.hardware.powerlevel/PowerLevel
|
Channel |