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_leasewas present but a new wake lease could not be acquired.
Request
| Name | Type |
|---|---|
setup_wake_lease |
fuchsia.power.system/LeaseToken
|
Response
| Name | Type |
|---|---|
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
| Name | Type |
|---|---|
connected |
bool
|
wake_lease |
fuchsia.power.system/LeaseToken
|
Response
| Name | Type |
|---|---|
payload |
UsbPhy_ConnectStatusChanged_Result
|
STRUCTS
ConnectionWatcher_WatchConnectStatusChanged_Response resource
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Field | Type | Description | Default |
|---|---|---|---|
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
| Name | Value | Description |
|---|---|---|
G12_A |
0 |
|
G12_B |
1 |
Mode flexible
Type: uint32
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Name | Value | Description |
|---|---|---|
UNKNOWN |
0 |
|
HOST |
1 |
|
PERIPHERAL |
2 |
|
OTG |
3 |
ProtocolVersion flexible
Type: uint32
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Name | Value | Description |
|---|---|---|
USB_2_0 |
2 |
|
USB_3_0 |
3 |
TABLES
Metadata
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
usb_phy_modes |
vector<UsbPhyMode>
|
|
2 |
phy_type |
AmlogicPhyType
|
Optional. |
UsbPhyMode
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
protocol |
ProtocolVersion
|
|
2 |
dr_mode |
Mode
|
|
3 |
is_otg_capable |
bool
|
UNIONS
ConnectionWatcher_WatchConnectStatusChanged_Result strict resource
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
ConnectionWatcher_WatchConnectStatusChanged_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
UsbPhy_ConnectStatusChanged_Result strict
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
UsbPhy_ConnectStatusChanged_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
SERVICES
ConnectionWatcherService
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Name | Type | Transport |
|---|---|---|
| watcher |
fuchsia.hardware.usb.phy/ConnectionWatcher
|
Channel |
Service
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Name | Type | Transport |
|---|---|---|
| device |
fuchsia.hardware.usb.phy/UsbPhy
|
Channel |