I2cController
I2cController
I2cController
I2cController
Class
Definition
Represents the I2 C controller for the system.
public : sealed class I2cController : II2cControllerpublic sealed class I2cController : II2cControllerPublic NotInheritable Class I2cController Implements II2cController// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10586.0)
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v2)
|
Methods
GetControllersAsync(II2cProvider) GetControllersAsync(II2cProvider) GetControllersAsync(II2cProvider) GetControllersAsync(II2cProvider)
Gets all the I2 C controllers that are on the system.
public : static IAsyncOperation<IVectorView<I2cController>> GetControllersAsync(II2cProvider provider)public static IAsyncOperation<IReadOnlyList<I2cController>> GetControllersAsync(II2cProvider provider)Public Static Function GetControllersAsync(provider As II2cProvider) As IAsyncOperation( Of IReadOnlyListI2cController )// You can use this method in JavaScript.
Parameters
- provider
- II2cProvider II2cProvider II2cProvider II2cProvider
The I2 C provider for the controllers on the system.
Returns
IAsyncOperation<IVectorView<I2cController>>
IAsyncOperation<IReadOnlyList<I2cController>>
IAsyncOperation<IReadOnlyList<I2cController>>
IAsyncOperation<IReadOnlyList<I2cController>>
When the method completes successfully, it returns a list of values that represent the available I2 C controllers on the system.
GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()
Gets the default I2 C controller on the system.
public : static IAsyncOperation<I2cController> GetDefaultAsync()public static IAsyncOperation<I2cController> GetDefaultAsync()Public Static Function GetDefaultAsync() As IAsyncOperation( Of I2cController )// You can use this method in JavaScript.
Returns
IAsyncOperation<I2cController>
IAsyncOperation<I2cController>
IAsyncOperation<I2cController>
IAsyncOperation<I2cController>
The default I2 C controller on the system, or null if the system has no I2 C controller.
GetDevice(I2cConnectionSettings) GetDevice(I2cConnectionSettings) GetDevice(I2cConnectionSettings) GetDevice(I2cConnectionSettings)
Gets the I2 C device with the specified settings.
public : I2cDevice GetDevice(I2cConnectionSettings settings)public I2cDevice GetDevice(I2cConnectionSettings settings)Public Function GetDevice(settings As I2cConnectionSettings) As I2cDevice// You can use this method in JavaScript.
Parameters
The desired connection settings.
Returns