I2cDevice.FromIdAsync(String, I2cConnectionSettings) 方法

定义

使用指定的连接设置,异步检索具有指定即插即用设备标识符的 I2cDevice (I 2 C) 总线控制器的I2cDevice 对象。

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

参数

deviceId
String

Platform::String

winrt::hstring

要为其创建 I2cDevice 对象的 I 2 C 总线控制器的即插即用设备标识符。

settings
I2cConnectionSettings

用于与 deviceId 指定的 I2 C 总线控制器通信的连接设置。

返回

返回 I2cDevice 对象的异步操作。

属性

Windows 要求

应用功能
lowLevel

适用于

另请参阅