Module com.pi4j

Class SpiBase

All Implemented Interfaces:
Describable, Identity, Lifecycle, Extension, IO<Spi,SpiConfig,SpiProvider>, IODataReader, IODataWriter, Spi, AutoCloseable, Readable

public abstract class SpiBase extends IOBase<Spi,SpiConfig,SpiProvider> implements Spi

Abstract SpiBase class.

Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Field Details

    • isOpen

      protected boolean isOpen
  • Constructor Details

  • Method Details

    • isOpen

      public boolean isOpen()
      SPI Device Communication State is OPEN
      Specified by:
      isOpen in interface Spi
      Returns:
      The SPI device communication state
    • open

      public void open()

      open.

      Specified by:
      open in interface Spi
    • close

      public void close()

      close.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Spi