II2cDeviceStatics II2cDeviceStatics II2cDeviceStatics II2cDeviceStatics Interface

Definition

Provides ways to open a communications channel to a device on an inter-integrated circuit (I2 C) bus.

public : interface II2cDeviceStaticspublic interface II2cDeviceStaticsPublic Interface II2cDeviceStatics// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)

Methods

FromIdAsync(String, I2cConnectionSettings) FromIdAsync(String, I2cConnectionSettings) FromIdAsync(String, I2cConnectionSettings) FromIdAsync(String, I2cConnectionSettings)

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 : IAsyncOperation<I2cDevice> FromIdAsync(PlatForm::String deviceId, I2cConnectionSettings settings)public IAsyncOperation<I2cDevice> FromIdAsync(String deviceId, I2cConnectionSettings settings)Public Function FromIdAsync(deviceId As String, settings As I2cConnectionSettings) As IAsyncOperation( Of I2cDevice )// You can use this method in JavaScript.
Parameters
deviceId
PlatForm::String String String String

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

settings
I2cConnectionSettings I2cConnectionSettings I2cConnectionSettings I2cConnectionSettings

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

Returns
Additional features and requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)
Capabilities
lowLevelDevices
See Also

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Retrieves an Advanced Query Syntax (AQS) string for all of the inter-integrated circuit (I2 C) bus controllers on the system. You can use this string with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those bus controllers.

public : PlatForm::String GetDeviceSelector()public string GetDeviceSelector()Public Function GetDeviceSelector() As string// You can use this method in JavaScript.
Returns
PlatForm::String string string string

An AQS string for all of the I2 C bus controllers on the system, which you can use with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those bus controllers.

See Also

GetDeviceSelector(String) GetDeviceSelector(String) GetDeviceSelector(String) GetDeviceSelector(String)

Retrieves an Advanced Query Syntax (AQS) string for the inter-integrated circuit (I2 C) bus that has the specified friendly name. You can use this string with the DeviceInformation.FindAllAsync method to get a DeviceInformation object for that bus.

public : PlatForm::String GetDeviceSelector(PlatForm::String friendlyName)public string GetDeviceSelector(String friendlyName)Public Function GetDeviceSelector(friendlyName As String) As string// You can use this method in JavaScript.
Parameters
friendlyName
PlatForm::String String String String

A friendly name for the particular I2 C bus on a particular hardware platform for which you want to get the AQS string.

Returns
PlatForm::String string string string

An AQS string for the I2 C bus that friendlyName specifies, which you can use with the DeviceInformation.FindAllAsync method to get a DeviceInformation object for that bus.

See Also