com.qualcomm.robotcore.hardware

## Interface LegacyModulePortDevice

- All Known Implementing Classes:
    LegacyModulePortDeviceImpl

      public interface LegacyModulePortDevice

  The LegacyModulePortDevice interface should be supported by hardware devices which occupy a port on a LegacyModule. It provides a means by which the module and the port so occupied can be retrieved.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `LegacyModule` | `getLegacyModule()` Returns the legacy module associated with this device.
    `int` | `getPort()` Returns the port on the associated legacy module that this device occupies.

- - ### Method Detail

    - #### getLegacyModule

          LegacyModule getLegacyModule()

      Returns the legacy module associated with this device.
      Returns:
        the legacy module associated with this device

    - #### getPort

          int getPort()

      Returns the port on the associated legacy module that this device occupies.
      Returns:
        the port on the associated legacy module that this device occupies