fuchsia.hardware.pin

新增時間:HEAD

通訊協定

偵錯

定義於 fuchsia.hardware.pin/pin.fidl

ConnectGpio

如果接腳不支援 GPIO,則傳回 ZX_ERR_NOT_SUPPORTED。

要求

名稱類型
server server_end<fuchsia.hardware.gpio/Gpio>

回應

名稱類型
payload Debug_ConnectGpio_Result

ConnectPin

要求

名稱類型
server server_end<Pin>

回應

名稱類型
payload Debug_ConnectPin_Result

GetProperties

傳回接腳的靜態屬性。

要求

<空白>

回應

名稱類型
payload DebugGetPropertiesResponse

固定

定義於 fuchsia.hardware.pin/pin.fidl

設定

套用在 config 中傳遞的設定。請參閱上方的 Configuration。未設定欄位 config 並未變更。硬碟強度會四捨五入或以 控制器支援。

new_config 包含固定所有支援欄位後進行的 PIN 碼設定。 使用空白 config 呼叫 Configure(),即可傳回目前的設定 不必進行任何變更

要求

名稱類型
config Configuration

回應

名稱類型
payload Pin_Configure_Result

結構

Debug_ConnectGpio_Response

定義於 fuchsia.hardware.pin/pin.fidl

<空白>

Debug_ConnectPin_Response

定義於 fuchsia.hardware.pin/pin.fidl

<空白>

Pin_Configure_Response

定義於 fuchsia.hardware.pin/pin.fidl

欄位類型說明預設
new_config Configuration 無預設

ENUMS

提取嚴格

類型:uint32

定義於 fuchsia.hardware.pin/pin.fidl

名稱說明
0
1
2

資料表

設定

定義於 fuchsia.hardware.pin/pin.fidl

序數欄位類型說明
pull Pull

是否啟用內建下拉式電阻器和上拉式電阻器,或都不啟用。

function uint64

設定替代函式 (I2C、SPI 等) 的圖釘。這會解讀 function 與控制器相關。

drive_strength_ua uint64

接腳驅動力 (以微安培為單位)。

DebugGetPropertiesResponse

定義於 fuchsia.hardware.pin/pin.fidl

序數欄位類型說明
pin uint32

這個針腳的平台專屬編號,設為驅動程式庫節點上的繫結屬性。

name string[64]

這個圖釘的平台專屬名稱。

聯合國

Debug_ConnectGpio_Result 嚴格

定義於 fuchsia.hardware.pin/pin.fidl

序數Variant類型說明
response Debug_ConnectGpio_Response
err zx/Status

Debug_ConnectPin_Result 嚴格

定義於 fuchsia.hardware.pin/pin.fidl

序數Variant類型說明
response Debug_ConnectPin_Response
err zx/Status

Pin_Configure_Result 嚴格

定義於 fuchsia.hardware.pin/pin.fidl

序數Variant類型說明
response Pin_Configure_Response
err zx/Status

觀測站

名稱類型說明
MAX_PIN_NAME_LEN 64 uint32

PIN 碼名稱的長度上限。

服務

服務

定義於 fuchsia.hardware.pin/pin.fidl

名稱類型傳輸
裝置 fuchsia.hardware.pin/Pin 頻道