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
|