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.
Returns:
ZX_ERR_BAD_STATE: A hanging-get call was already pending.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
ConnectionWatcher_WatchConnectStatusChanged_Result
|
UsbPhy
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
ConnectStatusChanged
Informs the PHY when peripheral role connect status changed.
Request
| Name | Type |
|---|---|
connected |
bool
|
Response
| Name | Type |
|---|---|
payload |
UsbPhy_ConnectStatusChanged_Result
|
STRUCTS
ConnectionWatcher_WatchConnectStatusChanged_Response
Defined in fuchsia.hardware.usb.phy/usb-phy.fidl
| Field | Type | Description | Default |
|---|---|---|---|
connected |
bool
|
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
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 |