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

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

DevicePowerStateInfo {:#DevicePowerStateInfo}

Defined in fuchsia.device/controller.fidl

NameProvider_GetDeviceName_Response {:#NameProvider_GetDeviceName_Response}

Defined in fuchsia.device/generated

ENUMS

DevicePowerState {:#DevicePowerState}

Type: uint8

Defined in fuchsia.device/controller.fidl

UNIONS

NameProvider_GetDeviceName_Result {:#NameProvider_GetDeviceName_Result}

Defined in fuchsia.device/generated

CONSTANTS