PROTOCOLS
UsbSource
Defined in fuchsia.hardware.power.usb/usb.fidl
GetSpec
Returns static hardware characteristics of the USB source immediately.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
UsbSource_GetSpec_Result
|
GetStatus
Returns dynamic status of the USB source immediately.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
UsbSource_GetStatus_Result
|
SetInputCurrentLimit
Set the maximum current limit for this USB input.
Request
| Name | Type |
|---|---|
limit_ua |
uint32
|
Response
| Name | Type |
|---|---|
payload |
UsbSource_SetInputCurrentLimit_Result
|
Watch
Hanging get for status updates. See fuchsia.hardware.power.source/Source.Watch for semantics.
Request
| Name | Type |
|---|---|
interest |
Status
|
wake_on |
Status
|
lease |
fuchsia.power.system/LeaseToken
|
Response
| Name | Type |
|---|---|
payload |
UsbSource_Watch_Result
|
STRUCTS
UsbSource_GetSpec_Response
Defined in fuchsia.hardware.power.usb/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
spec |
Spec
|
No default |
UsbSource_GetStatus_Response
Defined in fuchsia.hardware.power.usb/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
status |
Status
|
No default |
UsbSource_SetInputCurrentLimit_Response
Defined in fuchsia.hardware.power.usb/usb.fidl
<EMPTY>
UsbSource_Watch_Response resource
Defined in fuchsia.hardware.power.usb/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
status |
Status
|
No default | |
wake_lease |
fuchsia.power.system/LeaseToken
|
No default |
TABLES
Spec
Defined in fuchsia.hardware.power.usb/usb.fidl
Static hardware characteristics of the USB source.
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
source_spec |
fuchsia.hardware.power.source/Spec
|
Base spec from the underlying power source. |
Status
Defined in fuchsia.hardware.power.usb/usb.fidl
Dynamic status of the USB source.
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
source_status |
fuchsia.hardware.power.source/Status
|
Base status from the underlying power source. |
2 |
input_current_limit_ua |
uint32
|
The current settled input current limit, in microamps. |
UNIONS
UsbSource_GetSpec_Result strict
Defined in fuchsia.hardware.power.usb/usb.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
UsbSource_GetSpec_Response
|
|
2 |
err |
fuchsia.hardware.power.source/Error
|
|
3 |
framework_err |
internal
|
UsbSource_GetStatus_Result strict
Defined in fuchsia.hardware.power.usb/usb.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
UsbSource_GetStatus_Response
|
|
2 |
err |
fuchsia.hardware.power.source/Error
|
|
3 |
framework_err |
internal
|
UsbSource_SetInputCurrentLimit_Result strict
Defined in fuchsia.hardware.power.usb/usb.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
UsbSource_SetInputCurrentLimit_Response
|
|
2 |
err |
fuchsia.hardware.power.source/Error
|
|
3 |
framework_err |
internal
|
UsbSource_Watch_Result strict resource
Defined in fuchsia.hardware.power.usb/usb.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
UsbSource_Watch_Response
|
|
3 |
framework_err |
internal
|
SERVICES
Service
Defined in fuchsia.hardware.power.usb/usb.fidl
| Name | Type | Transport |
|---|---|---|
| usb |
fuchsia.hardware.power.usb/UsbSource
|
Channel |
| power_source |
fuchsia.hardware.power.source/Source
|
Channel |