共用方式為


II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) 方法

定義

使用指定的連線設定,以非同步方式擷取具有指定隨插即用裝置識別碼的整合式線路 (I 2 C) 匯流排控制器的I2cDevice物件。

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

參數

deviceId
String

Platform::String

winrt::hstring

您要為其建立I2cDevice物件的 I2 C 匯流排控制器隨插即用裝置識別碼。

settings
I2cConnectionSettings

要用於與deviceId所指定 I2 C 匯流排控制器通訊的連線設定。

傳回

傳回 I2cDevice 物件的非同步作業。

屬性

Windows 需求

應用程式功能
lowLevel

適用於

另請參閱