Project: /_project.yaml Book: /_book.yaml

fuchsia.device

PROTOCOLS

Controller {:#Controller}

Defined in fuchsia.device/controller.fidl

Interface for manipulating a device in a devhost

Bind {:#Bind}

Attempt to bind the requested driver to this device

Request

Response

ScheduleUnbind {:#ScheduleUnbind}

Disconnect this device and allow its parent to be bound again. This may not complete before it returns.

Request

Response

GetDriverName {:#GetDriverName}

Return the name of the driver managing this the device

Request

Response

GetDeviceName {:#GetDeviceName}

Return the name of the device

Request

Response

GetTopologicalPath {:#GetTopologicalPath}

Return the topological path for this device

Request

Response

GetEventHandle {:#GetEventHandle}

Get an event for monitoring device conditions (see DEVICE_SIGNAL_* constants)

Request

Response

GetDriverLogFlags {:#GetDriverLogFlags}

Return the current logging flags for this device's driver

Request

Response

SetDriverLogFlags {:#SetDriverLogFlags}

Set the logging flags for this device's driver. Each set bit in clear_flags will be cleared in the log flags state. Each set bit in set_flags will then be set in the log flags state.

Request

Response

DebugSuspend {:#DebugSuspend}

Debug command: execute the device's suspend hook

Request

Response

DebugResume {:#DebugResume}

Debug command: execute the device's resume hook

Request

Response

RunCompatibilityTests {:#RunCompatibilityTests}

Runs compatibility tests for the driver that binds to this device. The |hook_wait_time| is the time that the driver expects to take for each device hook in nanoseconds. Returns whether the driver passed the compatibility check.

Request

Response

GetDevicePowerCaps {:#GetDevicePowerCaps}

Gets the device power capabilities. Used by the system wide power manager to manage power for this device.

Request

Response

UpdatePowerStateMapping {:#UpdatePowerStateMapping}

Updates the mapping between system power states to device power states. Used by the system wide power manager to manage power for this device

Request

Response

GetPowerStateMapping {:#GetPowerStateMapping}

Get the mapping between system power states to device power states. Used by the system wide power manager to manage power for this device.

Request

Response

Suspend {:#Suspend}

Transition this device from a working to a sleep state or from a sleep state to a deeper sleep state.

Request

Response

Resume {:#Resume}

Transition this device from a sleep state to a working state.

Request

Response

NameProvider {:#NameProvider}

Defined in fuchsia.device/name-provider.fidl

Interface for getting device names.

GetDeviceName {:#GetDeviceName}

Return the name of this Fuchsia device.

Request

Response

STRUCTS

Controller_GetDevicePowerCaps_Response {:#Controller_GetDevicePowerCaps_Response}

generated

Controller_UpdatePowerStateMapping_Response {:#Controller_UpdatePowerStateMapping_Response}

generated

Controller_GetPowerStateMapping_Response {:#Controller_GetPowerStateMapping_Response}

generated

Controller_Resume_Response {:#Controller_Resume_Response}

generated

DevicePowerStateInfo {:#DevicePowerStateInfo}

Defined in fuchsia.device/controller.fidl

SystemPowerStateInfo {:#SystemPowerStateInfo}

Defined in fuchsia.device/controller.fidl

NameProvider_GetDeviceName_Response {:#NameProvider_GetDeviceName_Response}

generated

ENUMS

DevicePowerState {:#DevicePowerState}

Type: uint8

Defined in fuchsia.device/controller.fidl

UNIONS

Controller_GetDevicePowerCaps_Result {:#Controller_GetDevicePowerCaps_Result}

generated

Controller_UpdatePowerStateMapping_Result {:#Controller_UpdatePowerStateMapping_Result}

generated

Controller_GetPowerStateMapping_Result {:#Controller_GetPowerStateMapping_Result}

generated

Controller_Resume_Result {:#Controller_Resume_Result}

generated

NameProvider_GetDeviceName_Result {:#NameProvider_GetDeviceName_Result}

generated

CONSTANTS