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

public class RpiSpi extends SpiBase implements Spi

RpiSpi class.

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

  • Method Details

    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface Spi
      Overrides:
      isOpen in class SpiBase
    • open

      public void open()
      Specified by:
      open in interface Spi
      Overrides:
      open in class SpiBase
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Spi
      Overrides:
      close in class SpiBase
    • transfer

      public int transfer(byte[] write, int writeOffset, byte[] read, int readOffset, int numberOfBytes)
      Specified by:
      transfer in interface Spi
    • read

      public int read()
      Specified by:
      read in interface IODataReader
    • read

      public int read(byte[] buffer, int offset, int length)
      Specified by:
      read in interface IODataReader
    • write

      public int write(byte b)
      Specified by:
      write in interface IODataWriter
    • write

      public int write(byte[] data, int offset, int length)
      Specified by:
      write in interface IODataWriter