fuchsia.usb.policy

The fuchsia.usb.policy interfaces provide mechanisms for clients to query and monitor the overall state of USB devices and the USB subsystem, independent of the underlying hardware driver implementations.

Added: HEAD

PROTOCOLS

Health

Defined in fuchsia.usb.policy/policy.fidl

Protocol for retrieving diagnostic and health information from the USB system.

GetReport

Returns a snapshot of the current USB health and device state.

Request

<EMPTY>

Response

NameType
payload Health_GetReport_Result

PolicyProvider

Defined in fuchsia.usb.policy/policy.fidl

An interface to monitor dynamic changes to the USB device state.

WatchDeviceState

Notify a client of an updated device state value via a hanging get. The first time this is called, it will return right away with the current state. Subsequent calls will hang until there is a change to report. Returns a table containing the updated device state.

Request

<EMPTY>

Response

NameType
payload fuchsia.hardware.usb.policy/DeviceStateWatcher_WatchDeviceState_Result

TABLES

HealthReport

Defined in fuchsia.usb.policy/policy.fidl

A snapshot of the USB controller's current status and health.

OrdinalFieldTypeDescription
state fuchsia.hardware.usb.policy/DeviceState

The current state of the device as defined by the USB 2.0 spec.

address uint8

The address assigned to the USB device.

UNIONS

Health_GetReport_Result strict

Defined in fuchsia.usb.policy/policy.fidl

OrdinalVariantTypeDescription
response HealthReport
err zx/Status
framework_err internal

SERVICES

Service

Defined in fuchsia.usb.policy/policy.fidl

NameTypeTransport
provider fuchsia.usb.policy/PolicyProvider Channel