Class EeicLibrary.SpiDevice

Object
SpiDevice
Enclosing class:
EeicLibrary

public static class EeicLibrary.SpiDevice
extends Object
The SpiDevice class is used to communicate with an external expansion device connected via the Serial Peripheral Interface (SPI).
Since:
2.00
  • Constructor Summary

    Constructors 
    Constructor Description
    SpiDevice()  
  • Method Summary

    Modifier and Type Method Description
    static boolean close()
    Close the SPI Port
    static boolean open()
    Open the SPI Port
    static boolean open​(int flags)
    Open the SPI Port
    static int read​(byte[] buffer, int length)
    Read Data of a given length to a buffer from the SPI Port.
    static boolean write​(byte data)
    Write one single Byte of Data to the SPI Port
    static boolean write​(byte[] buffer)
    Write Data from a buffer to the SPI Port
    static boolean write​(byte[] buffer, int offset, int length)
    Write Data of a given length from a buffer to the SPI Port, starting at the given offset.