Edit

Share via


Ft232HI2c.WriteRead(ReadOnlySpan<Byte>, Span<Byte>) Method

Definition

Performs an atomic operation to write data to and then read data from the I2C bus on which the device is connected, and sends a restart condition between the write and read operations.

public override void WriteRead (ReadOnlySpan<byte> writeBuffer, Span<byte> readBuffer);
override this.WriteRead : ReadOnlySpan<byte> * Span<byte> -> unit
Public Overrides Sub WriteRead (writeBuffer As ReadOnlySpan(Of Byte), readBuffer As Span(Of Byte))

Parameters

writeBuffer
ReadOnlySpan<Byte>

The buffer that contains the data to be written to the I2C device. The data should not include the I2C device address.

readBuffer
Span<Byte>

The buffer to read the data from the I2C device. The length of the buffer determines how much data to read from the I2C device.

Applies to