Search Results for

    Show / Hide Table of Contents

    Enum I2cTransferStatus

    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.

    Namespace: System.Device.I2c
    Assembly: System.Device.I2c.dll
    Syntax
    public enum I2cTransferStatus

    Fields

    Name Description
    ClockStretchTimeout

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

    FullTransfer

    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

    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

    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

    The transfer failed for an unknown reason.

    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX