Ft232HI2c.WriteRead(ReadOnlySpan<Byte>, Span<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.
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.
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.