Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

I2cDevice.FromIdAsync(String, I2cConnectionSettings) Method

Definition

Namespace:
Windows.Devices.I2c

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Platform::String

winrt::hstring

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

An asynchronous operation that returns the I2cDevice object.

Attributes

Windows requirements

Requirements Description
App capabilities
lowLevel

Applies to

See also


Feedback

Was this page helpful?