fuchsia.hardware.power.usb

新增:HEAD

通訊協定

偵錯

定義於 fuchsia.hardware.power.usb/usb.fidl

用於測試及偵錯 USB Type-C 連接埠控制項的通訊協定 (例如斷線器)。

SetConnected

連接或中斷連接實體 Type-C CC 線和 USB 資料切換器。

當 connected 為 false 時,停用自主 DRP 切換功能,並開啟 CC1/CC2 終端,模擬拔除實體傳輸線。當 connected 為 true 時,還原自主 DRP Rp/Rd 切換,並重新啟動連線偵測;如果提供 wake_lease,驅動程式庫會在 CC 連接去抖動和 BC1.2 偵測期間保留該值,因此系統不會在 USB 重新列舉前重新暫停。

要求

名稱類型
connected bool
wake_lease fuchsia.power.system/LeaseToken

回應

名稱類型
payload Debug_SetConnected_Result

UsbSource

定義於 fuchsia.hardware.power.usb/usb.fidl

GetSpec

立即傳回 USB 來源的靜態硬體特性。

要求

<EMPTY>

回應

名稱類型
payload UsbSource_GetSpec_Result

GetStatus

立即傳回 USB 來源的動態狀態。

要求

<EMPTY>

回應

名稱類型
payload UsbSource_GetStatus_Result

SetInputCurrentLimit

設定這個 USB 輸入端的電流上限。

要求

名稱類型
limit_ua uint32

回應

名稱類型
payload UsbSource_SetInputCurrentLimit_Result

智慧手錶

Hanging get for status updates. 如需語意,請參閱 fuchsia.hardware.power.source/Source.Watch。

錯誤

  • 如果在前一個呼叫完成前呼叫 Watch,則為 ALREADY_BOUND。

要求

名稱類型
interest Status
wake_on Status
lease fuchsia.power.system/LeaseToken

回應

名稱類型
payload UsbSource_Watch_Result

STRUCTS

Debug_SetConnected_Response

定義於 fuchsia.hardware.power.usb/usb.fidl

<EMPTY>

UsbSource_GetSpec_Response

定義於 fuchsia.hardware.power.usb/usb.fidl

欄位類型說明預設
spec Spec 無預設值

UsbSource_GetStatus_Response

定義於 fuchsia.hardware.power.usb/usb.fidl

欄位類型說明預設
status Status 無預設值

UsbSource_SetInputCurrentLimit_Response

定義於 fuchsia.hardware.power.usb/usb.fidl

<EMPTY>

UsbSource_Watch_Response 資源

定義於 fuchsia.hardware.power.usb/usb.fidl

欄位類型說明預設
status Status 無預設值
wake_lease fuchsia.power.system/LeaseToken 無預設值

TABLES

規格

定義於 fuchsia.hardware.power.usb/usb.fidl

USB 來源的靜態硬體特性。

序數欄位類型說明
source_spec fuchsia.hardware.power.source/Spec

基礎規格取決於基礎電源。

狀態

定義於 fuchsia.hardware.power.usb/usb.fidl

USB 來源的動態狀態。

序數欄位類型說明
source_status fuchsia.hardware.power.source/Status

基礎狀態來自基礎電源。

input_current_limit_ua uint32

目前固定的輸入電流限制,以微安培為單位。

UNIONS

Debug_SetConnected_Result strict

定義於 fuchsia.hardware.power.usb/usb.fidl

序數Variant類型說明
response Debug_SetConnected_Response
err fuchsia.hardware.power.source/Error
framework_err internal

UsbSource_GetSpec_Result strict

定義於 fuchsia.hardware.power.usb/usb.fidl

序數Variant類型說明
response UsbSource_GetSpec_Response
err fuchsia.hardware.power.source/Error
framework_err internal

UsbSource_GetStatus_Result strict

定義於 fuchsia.hardware.power.usb/usb.fidl

序數Variant類型說明
response UsbSource_GetStatus_Response
err fuchsia.hardware.power.source/Error
framework_err internal

UsbSource_SetInputCurrentLimit_Result strict

定義於 fuchsia.hardware.power.usb/usb.fidl

序數Variant類型說明
response UsbSource_SetInputCurrentLimit_Response
err fuchsia.hardware.power.source/Error
framework_err internal

UsbSource_Watch_Result strict resource

定義於 fuchsia.hardware.power.usb/usb.fidl

序數Variant類型說明
response UsbSource_Watch_Response
err fuchsia.hardware.power.source/Error
framework_err internal

服務

DebugService

定義於 fuchsia.hardware.power.usb/usb.fidl

名稱類型傳輸
debug fuchsia.hardware.power.usb/Debug 版本

服務

定義於 fuchsia.hardware.power.usb/usb.fidl

名稱類型傳輸
usb fuchsia.hardware.power.usb/UsbSource 版本
power_source fuchsia.hardware.power.source/Source 版本