共用方式為


ISpiDeviceStatics.FromIdAsync(String, SpiConnectionSettings) 方法

定義

使用提供的連線設定開啟裝置。

public:
 IAsyncOperation<SpiDevice ^> ^ FromIdAsync(Platform::String ^ busId, SpiConnectionSettings ^ settings);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SpiDevice> FromIdAsync(winrt::hstring const& busId, SpiConnectionSettings const& settings);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SpiDevice> FromIdAsync(string busId, SpiConnectionSettings settings);
function fromIdAsync(busId, settings)
Public Function FromIdAsync (busId As String, settings As SpiConnectionSettings) As IAsyncOperation(Of SpiDevice)

參數

busId
String

Platform::String

winrt::hstring

匯流排的識別碼。

settings
SpiConnectionSettings

連接設定。

傳回

SPI 裝置。

屬性

Windows 需求

應用程式功能
lowLevel

適用於