I2cTransferStatus
I2cTransferStatus
I2cTransferStatus
I2cTransferStatus
Enum
Definition
Describes whether the data transfers that the ReadPartial, WritePartial, or WriteReadPartial method performed succeeded, or provides the reason that the transfers did not succeed.
public : enum class I2cTransferStatuspublic enum I2cTransferStatusPublic Enum I2cTransferStatus// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v1)
|
Fields
| ClockStretchTimeout ClockStretchTimeout ClockStretchTimeout ClockStretchTimeout | 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 | The data was entirely transferred. For 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 WriteReadPartial. |
| PartialTransfer PartialTransfer PartialTransfer PartialTransfer | 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 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 | 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 | The transfer failed for an unknown reason. |