Class EeicLibrary.SerialDevice

Object
SerialDevice
Enclosing class:
EeicLibrary

public static class EeicLibrary.SerialDevice
extends Object
The SerialDevice class is used to communicate with an external expansion device connected via Serial Interface.
Since:
2.00
  • Constructor Summary

    Constructors 
    Constructor Description
    SerialDevice()  
  • Method Summary

    Modifier and Type Method Description
    static boolean close()
    Close the Serial Interface Port
    static boolean open​(int baudrate)
    Open the Serial Interface Port
    static boolean open​(int baudrate, int flags, boolean hwflow, int bitLen, int parityBit, int stopBit)
    Open the Serial Interface Port
    static boolean open​(int baudrate, int bitLen, int parityBit, int stopBit)
    Open the Serial Interface Port
    static int read​(byte[] buffer, int length)
    Read Data of a given length to a buffer from the Serial Interface Port.
    static boolean sendBreak()
    Send a "break" command to the Serial Interface Port.
    static boolean write​(byte data)
    Write one single Byte of Data to the Serial Interface Port
    static boolean write​(byte[] buffer)
    Write Data from a buffer to the Serial Interface Port
    static boolean write​(byte[] buffer, int offset, int length)
    Write Data of a given length from a buffer to the Serial Interface Port, starting at the given offset.