II2cDeviceProvider.ReadPartial(Byte[]) Method
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.
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.
public:
ProviderI2cTransferResult ReadPartial(Platform::Array <byte> ^ buffer);
ProviderI2cTransferResult ReadPartial(winrt::array_view <byte> & buffer);
public ProviderI2cTransferResult ReadPartial(byte[] buffer);
function readPartial(buffer)
Public Function ReadPartial (buffer As Byte()) As ProviderI2cTransferResult
Parameters
- buffer
-
Byte[]
byte[]
The buffer to which you want to read the data from the I2 C bus. The length of the buffer determines how much data to request from the device.
Returns
A structure that contains information about the success of the read operation and the actual number of bytes that the operation read into the buffer.