Table of Contents

Struct I2cTransferResult

Namespace
System.Device.I2c
Assembly
System.Device.I2c.dll

Provides information about whether the data transfers that the Read(SpanByte), Write(SpanByte), or WriteRead(SpanByte, SpanByte) method performed succeeded, and the actual number of bytes the method transferred.

public struct I2cTransferResult
Inherited Members

Properties

BytesTransferred

The actual number of bytes that the operation actually transferred. The following table describes what this value represents for each method.

public uint BytesTransferred { get; }

Property Value

uint

Status

An enumeration value that indicates if the read or write operation transferred the full number of bytes that the method requested, or the reason that the full transfer did not succeed. For WriteReadPartial, the value indicates whether the data for both the write and the read operations was entirely transferred.

public I2cTransferStatus Status { get; }

Property Value

I2cTransferStatus