com.qualcomm.robotcore.hardware

## Class I2cDeviceReader

- java.lang.Object
- - com.qualcomm.robotcore.hardware.I2cDeviceReader

-     public class I2cDeviceReader
      extends java.lang.Object

  Monitor an I2C Device and read in the most current values

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `I2cDeviceReader(I2cDevice i2cDevice, I2cAddr i2cAddress, int memAddress, int length)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getReadBuffer()` Get a copy of the most recent data read in from the I2C device

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### I2cDeviceReader

          public I2cDeviceReader(I2cDevice i2cDevice,
                                 I2cAddr i2cAddress,
                                 int memAddress,
                                 int length)

      Constructor
      Parameters:
        `i2cDevice` - device to monitor
        `i2cAddress` - I2C address to read from
        `memAddress` - memory address to read from
        `length` - length (in bytes) to read

  - ### Method Detail

    - #### getReadBuffer

          public byte[] getReadBuffer()

      Get a copy of the most recent data read in from the I2C device
      Returns:
        byte array