II2cDeviceProvider Interface
Definition
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.
Represents methods common to all I2 C device providers.
public interface class II2cDeviceProvider : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
/// [Windows.Foundation.Metadata.Guid(2905876052, 22504, 17726, 131, 41, 209, 228, 71, 209, 3, 169)]
struct II2cDeviceProvider : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
[Windows.Foundation.Metadata.Guid(2905876052, 22504, 17726, 131, 41, 209, 228, 71, 209, 3, 169)]
public interface II2cDeviceProvider : System.IDisposable
Public Interface II2cDeviceProvider
Implements IDisposable
- Attributes
- Implements
Windows requirements
Device family |
Windows IoT Extension SDK (introduced in 10.0.10586.0)
Windows 10 Anniversary Edition (introduced in 10.0.14393.0) |
API contract |
Windows.Devices.DevicesLowLevelContract (introduced in v2.0)
|
Properties
DeviceId |
Gets the plug and play device identifier of the inter-integrated circuit (I2 C) bus controller for the device. |
Methods
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Read(Byte[]) |
Reads data from the inter-integrated circuit (I2 C) bus on which the device is connected into the specified buffer. |
ReadPartial(Byte[]) |
Reads data from the inter-integrated circuit (I2 C) bus on which the device is connected into the specified buffer, and returns information about the success of the operation that you can use for error handling. |
Write(Byte[]) |
Writes data to the inter-integrated circuit (I2 C) bus on which the device is connected. |
WritePartial(Byte[]) |
Writes data to the inter-integrated circuit (I2 C) bus on which the device is connected, and returns information about the success of the operation that you can use for error handling. |
WriteRead(Byte[], Byte[]) |
Performs an atomic operation to write data to and then read data from the inter-integrated circuit (I2 C) bus on which the device is connected, and sends a restart condition between the write and read operations. |
WriteReadPartial(Byte[], Byte[]) |
Performs an atomic operation to write data to and then read data from the inter-integrated circuit (I2 C) bus on which the device is connected, and returns information about the success of the operation that you can use for error handling. |