Skip to main content

I2cTransferResult Struct

Namespace: GHIElectronics.TinyCLR.Devices.I2c · Assembly: GHIElectronics.TinyCLR.Devices.I2c

Outcome of a partial-transfer call (I2cDevice.ReadPartial(byte[]) and friends).

public struct I2cTransferResult

Properties

Status

public I2cTransferStatus Status { get; }

Whether the transfer was full, partial, NAK'd, or timed out.

BytesWritten

public int BytesWritten { get; }

Bytes actually written.

BytesRead

public int BytesRead { get; }

Bytes actually read.

BytesTransferred

public int BytesTransferred { get; }

Sum of BytesWritten and BytesRead.