Udostępnij za pośrednictwem


I2cDevice.ReadPartial(Byte[]) Method

Definition

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:
 virtual I2cTransferResult ReadPartial(Platform::Array <byte> ^ buffer) = ReadPartial;
I2cTransferResult ReadPartial(winrt::array_view <byte> & buffer);
public I2cTransferResult ReadPartial(byte[] buffer);
function readPartial(buffer)
Public Function ReadPartial (buffer As Byte()) As I2cTransferResult

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.

Windows requirements

App capabilities
lowLevel

Applies to

See also