fuchsia.hardware.power.statecontrol

PROTOCOLS

Admin

Defined in fuchsia.hardware.power.statecontrol/admin.fidl

Provides administration services for the device manager service and the device tree it controls.

Suspend

Ask all devices to enter into the system power state indicated by 'state'. The devices will get into a low power state, that corresponds to the system power state 'state'.

Request

NameType
state SystemPowerState

Response

NameType
result Admin_Suspend_Result

STRUCTS

SomeLongAnonymousPrefix0

generated

anonymous struct

NameTypeDescriptionDefault
state SystemPowerState No default

Admin_Suspend_Response

generated

NameTypeDescriptionDefault

SomeLongAnonymousPrefix1

generated

anonymous struct

NameTypeDescriptionDefault
result Admin_Suspend_Result No default

ENUMS

SystemPowerState

Type: uint8

Defined in fuchsia.hardware.power.statecontrol/admin.fidl

NameValueDescription
FULLY_ON 1
REBOOT 2
REBOOT_BOOTLOADER 3
REBOOT_RECOVERY 4
POWEROFF 5
MEXEC 6
SUSPEND_RAM 7

UNIONS

Admin_Suspend_Result

generated

NameTypeDescription
response Admin_Suspend_Response
err zx/status

CONSTANTS

NameValueTypeDescription
SUSPEND_FLAG_REBOOT 3705405696 uint32

All available suspend flags.

SUSPEND_FLAG_REBOOT_BOOTLOADER 3705405697 uint32
SUSPEND_FLAG_REBOOT_RECOVERY 3705405698 uint32
SUSPEND_FLAG_POWEROFF 3705405952 uint32
SUSPEND_FLAG_MEXEC 3705406208 uint32
SUSPEND_FLAG_SUSPEND_RAM 3705406464 uint32
MAX_SYSTEM_POWER_STATES 7 uint32