com.qualcomm.robotcore.hardware

## Interface I2cControllerPortDevice

- All Known Subinterfaces:
    I2cDevice
  All Known Implementing Classes:
    I2cControllerPortDeviceImpl, I2cDeviceImpl

      public interface I2cControllerPortDevice

  The I2cControllerPortDevice interface should be supported by hardware devices which occupy a port on an I2cController. It provides a means by which the controller and the port so occupied can be retrieved.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `I2cController` | `getI2cController()` Returns the controller associated with this device.
    `int` | `getPort()` Returns the port on the associated controller that this device occupies.

- - ### Method Detail

    - #### getI2cController

          I2cController getI2cController()

      Returns the controller associated with this device.
      Returns:
        the controller associated with this device

    - #### getPort

          int getPort()

      Returns the port on the associated controller that this device occupies.
      Returns:
        the port on the associated controller that this device occupies