Class SerialConnection

    • Method Detail

      • getBaudrate

        public int getBaudrate()
        Returns:
        the baud rate of the connected device
      • setBaudrate

        public void setBaudrate​(int baudrate)
        Parameters:
        baudrate - baud rate of the connected device
      • getDataBit

        public int getDataBit()
        Returns:
        the number of data bits
      • setDataBit

        public void setDataBit​(int dataBit)
        Parameters:
        dataBit - number of data bits
      • getStopBit

        public int getStopBit()
        Returns:
        the value of StopBits, a value larger 2 means 1.5 stopbits
      • setStopBit

        public void setStopBit​(int stopBit)
        Parameters:
        stopBit - value of StopBits, a value larger 2 means 1.5 stopbits
      • getParity

        public int getParity()
        Returns:
        the parity bit (0 for no, 1 for ODD, 2 for EVEN, 3 for MARK, 4 for SPACE)
      • setParity

        public void setParity​(int parity)
        Parameters:
        parity - parity bit (0 for no, 1 for ODD, 2 for EVEN, 3 for MARK, 4 for SPACE)
      • getFlowControl

        public int getFlowControl()
        Returns:
        the flow Control (0 for no, ..)
      • setFlowControl

        public void setFlowControl​(int flowControl)
        Parameters:
        flowControl - flow Control (0 for no, ..)