I2cTransferStatus I2cTransferStatus I2cTransferStatus I2cTransferStatus I2cTransferStatus Enum

Definition

Describes whether the data transfers that the @Windows.Devices.I2c.I2cDevice.ReadPartial(System.Byte[])?text=ReadPartial, @Windows.Devices.I2c.I2cDevice.WritePartial(System.Byte[])?text=WritePartial, or @Windows.Devices.I2c.I2cDevice.WriteReadPartial(System.Byte[],System.Byte[])?text=WriteReadPartial method performed succeeded, or provides the reason that the transfers did not succeed.

public : enum class I2cTransferStatus
enum class winrt::Windows::Devices::I2c::I2cTransferStatus : int32_t
public enum I2cTransferStatus
Public Enum I2cTransferStatus
var value = Windows.Devices.I2c.I2cTransferStatus.clockStretchTimeout;
Attributes

Windows 10 requirements

Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)

Fields

ClockStretchTimeout ClockStretchTimeout ClockStretchTimeout ClockStretchTimeout ClockStretchTimeout 3

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

FullTransfer FullTransfer FullTransfer FullTransfer FullTransfer 0

The data was entirely transferred. For @Windows.Devices.I2c.I2cDevice.WriteReadPartial(System.Byte[],System.Byte[])?text=WriteReadPartial, the data for both the write and the read operations was entirely transferred.

For this status code, the value of the I2cTransferResult.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 @Windows.Devices.I2c.I2cDevice.WriteReadPartial(System.Byte[],System.Byte[])?text=WriteReadPartial.

PartialTransfer PartialTransfer PartialTransfer PartialTransfer PartialTransfer 1

The I2 C device negatively acknowledged the data transfer before all of the data was transferred.

For this status code, the value of the I2cTransferResult.BytesTransferred member that the method returns is the number of bytes actually transferred. For @Windows.Devices.I2c.I2cDevice.WriteReadPartial(System.Byte[],System.Byte[])?text=WriteReadPartial, the value is the sum of the number of bytes that the operation wrote and the number of bytes that the operation read.

SlaveAddressNotAcknowledged SlaveAddressNotAcknowledged SlaveAddressNotAcknowledged SlaveAddressNotAcknowledged SlaveAddressNotAcknowledged 2

The bus address was not acknowledged.

For this status code, the value of the I2cTransferResult.BytesTransferred member that the method returns of the method is 0.

UnknownError UnknownError UnknownError UnknownError UnknownError 4

The transfer failed for an unknown reason.

See also