I2cDevice.FromIdAsync(String, I2cConnectionSettings) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
|