fuchsia.hardware.usb.phy

Added: HEAD

PROTOCOLS

ConnectionWatcher

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

WatchConnectStatusChanged

Hanging-get that notifies callers when USB has been connected or disconnected. Returns immediately on the first call, or if the connection status has changed since the last call.

If present, setup_wake_lease will be used to keep the system awake while the call is being processed. In this case a new wake lease will be acquired and passed back through wake_lease. wake_lease will be present iff setup_wake_lease was present.

Returns:

  • ZX_ERR_BAD_STATE: A hanging-get call was already pending.
  • ZX_ERR_NO_RESOURCES: setup_wake_lease was present but a new wake lease could not be acquired.

Request

NameType
setup_wake_lease fuchsia.power.system/LeaseToken

Response

NameType
payload ConnectionWatcher_WatchConnectStatusChanged_Result

UsbPhy

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

ConnectStatusChanged

Informs the PHY when the peripheral role connect status changes. If system suspend is enabled, wake_lease will hold a wake lease that the callee can use to keep the system awake while the call is being processed.

Request

NameType
connected bool
wake_lease fuchsia.power.system/LeaseToken

Response

NameType
payload UsbPhy_ConnectStatusChanged_Result

STRUCTS

ConnectionWatcher_WatchConnectStatusChanged_Response resource

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

FieldTypeDescriptionDefault
connected bool No default
wake_lease fuchsia.power.system/LeaseToken No default

UsbPhy_ConnectStatusChanged_Response

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

<EMPTY>

ENUMS

AmlogicPhyType flexible

Type: uint32

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

NameValueDescription
0
1

Mode flexible

Type: uint32

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

NameValueDescription
0
1
2
3

ProtocolVersion flexible

Type: uint32

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

NameValueDescription
2
3

TABLES

Metadata

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

OrdinalFieldTypeDescription
usb_phy_modes vector<UsbPhyMode>
phy_type AmlogicPhyType

Optional.

UsbPhyMode

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

OrdinalFieldTypeDescription
protocol ProtocolVersion
dr_mode Mode
is_otg_capable bool

UNIONS

ConnectionWatcher_WatchConnectStatusChanged_Result strict resource

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

OrdinalVariantTypeDescription
response ConnectionWatcher_WatchConnectStatusChanged_Response
err zx/Status
framework_err internal

UsbPhy_ConnectStatusChanged_Result strict

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

OrdinalVariantTypeDescription
response UsbPhy_ConnectStatusChanged_Response
err zx/Status
framework_err internal

SERVICES

ConnectionWatcherService

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

NameTypeTransport
watcher fuchsia.hardware.usb.phy/ConnectionWatcher Channel

Service

Defined in fuchsia.hardware.usb.phy/usb-phy.fidl

NameTypeTransport
device fuchsia.hardware.usb.phy/UsbPhy Channel