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

总线的 ID。

settings
SpiConnectionSettings

连接设置。

返回

SPI 设备。

属性

Windows 要求

应用功能
lowLevel

适用于