Table of Contents

Enum I2cTransferStatus

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

Describes whether the data transfers that the Read(SpanByte), Write(SpanByte), or WriteRead(SpanByte, SpanByte) methods performed succeeded, or provides the reason that the transfers did not succeed.

public enum I2cTransferStatus

Fields

ClockStretchTimeout = 2

The transfer failed due to the clock being stretched for too long. Ensure the clock line is not being held low.

FullTransfer = 1

The data was entirely transferred. For WriteRead, the data for both the write and the read operations was entirely transferred. For this status code, the value of the BytesTransferred member that the method returns is the same as the size of the buffer you specified when you called the method, or is equal to the sum of the sizes of two buffers that you specified for WriteRead.

PartialTransfer = 3

The I2C device negatively acknowledged the data transfer before all of the data was transferred. For this status code, the value of the BytesTransferred member that the method returns is the number of bytes actually transferred. For WriteRead(SpanByte, SpanByte), the value is the sum of the number of bytes that the operation wrote and the number of bytes that the operation read.

SlaveAddressNotAcknowledged = 4

The bus address was not acknowledged. For this status code, the value of the BytesTransferred member that the method returns of the method is 0.

UnknownError = 0

The transfer failed for an unknown reason.