Class RpiSpi

    • Method Detail

      • 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
      • transfer

        public int transfer​(byte[] write,
                            int writeOffset,
                            byte[] read,
                            int readOffset,
                            int numberOfBytes)
        Specified by:
        transfer in interface Spi
      • 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