Interface DeviceInterface

All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable
All Known Subinterfaces:
AnalogInputDeviceInterface, AnalogOutputDeviceInterface, GpioDeviceInterface, GpioDigitalDeviceInterface, GpioDigitalInputDeviceInterface, GpioDigitalInputOutputDeviceInterface, GpioDigitalOutputDeviceInterface, I2CDeviceInterface, PwmOutputDeviceInterface, SpiDeviceInterface
All Known Implementing Classes:
AbstractDevice, AbstractInputDevice, MCP23xxxDigitalInputDevice, MCP23xxxDigitalInputOutputDevice, MCP23xxxDigitalOutputDevice, OdroidC2SysFsPwmOutputDevice, PiconZero.PiconZeroAnalogInputDevice, PiconZero.PiconZeroAnalogOutputDevice, PiconZero.PiconZeroDigitalInputDevice, PiconZero.PiconZeroDigitalOutputDevice, PiconZero.PiconZeroPwmOutputDevice, SoftwarePwmOutputDevice, SysFsAnalogInputDevice, SysFsDigitalInputDevice, SysFsDigitalInputOutputDevice, SysFsDigitalOutputDevice, SysFsI2CDevice, SysFsPwmOutputDevice, SysFsSpiDevice

public interface DeviceInterface
extends java.io.Closeable
  • Method Summary

    Modifier and Type Method Description
    void close()  
    java.lang.String getKey()  
    boolean isOpen()  
  • Method Details

    • getKey

      java.lang.String getKey()
    • isOpen

      boolean isOpen()
    • close

      void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable