Share via


I2cDevice.WritePartial(Byte[]) Method

Definition

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.

public:
 virtual I2cTransferResult WritePartial(Platform::Array <byte> ^ buffer) = WritePartial;
I2cTransferResult WritePartial(winrt::array_view <byte> const& buffer);
public I2cTransferResult WritePartial(byte[] buffer);
function writePartial(buffer)
Public Function WritePartial (buffer As Byte()) As I2cTransferResult

Parameters

buffer

Byte[]

byte[]

A buffer that contains the data that you want to write to the I2 C device. This data should not include the bus address.

Returns

A structure that contains information about the success of the write operation and the actual number of bytes that the operation wrote into the buffer.

Windows requirements

App capabilities
lowLevel

Applies to

See also