Struct I2cTransferResult
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.
Inherited Members
Namespace: System.Device.I2c
Assembly: System.Device.I2c.dll
Syntax
public struct I2cTransferResult
Properties
| Improve this Doc View SourceBytesTransferred
The actual number of bytes that the operation actually transferred. The following table describes what this value represents for each method.
Declaration
public readonly uint BytesTransferred { get; }
Property Value
Type | Description |
---|---|
UInt32 |
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.
Declaration
public readonly I2cTransferStatus Status { get; }
Property Value
Type | Description |
---|---|
I2cTransferStatus |