I2cDevice.FromIdAsync(String, I2cConnectionSettings) Method

Definition

Retrieves an I2cDevice object asynchronously for the inter-integrated circuit (I2 C) bus controller that has the specified plug and play device identifier, using the specified connection settings.

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)

Parameters

deviceId
String

The plug and play device identifier of the I2 C bus controller for which you want to create an I2cDevice object.

settings
I2cConnectionSettings

The connection settings to use for communication with the I2 C bus controller that deviceId specifies.

Returns

IAsyncOperation<I2cDevice>

An asynchronous operation that returns the I2cDevice object.

Attributes

Windows 10 requirements

App capabilities
lowLevel

Applies to

See also