Package comm

Class UART

extends Object

The Universal Asynchronous Receiver Transmitter (UART) is a asynchronous and full duplex communication interface. The iLCD controllerJoC has connections to the serial port's RX, TX and GND pin. The serial port of the controlling application can be set with the baud rate, data, parity and 1, 1.5 or 2 stop bits.

The frequency range is adjustable via the open method and can be adjusted within 12 steps up to a baud rate of 460800. The number of bits transferred in each frame can also be adjusted via the open method and ranging from 5 to 8-bits per frame.

Separate RX and TX buffers are used for data transmission. The TX buffer can be written with the write method and the RX buffer can be read with the read method. The data bytes are transmitted immediately if data are written to the TX buffer. Each buffer has a fixed size of 127 bytes.

In order to receive UART data automatically using UART events OnUARTListener has to be added to the UARTEventDispatcher of the EventManagement system.

Public Constructors

Public Methods

Methods inherited from java.lang.Object

_INSERT_INHERITED_METHOD_ENTRY_HERE_

Public Fields

  • static final int baud_115200
  • static final int baud_1200
  • static final int baud_19200
  • static final int baud_230400
  • static final int baud_2400
  • static final int baud_300
  • static final int baud_38400
  • static final int baud_460800
  • static final int baud_4800
  • static final int baud_57600
  • static final int baud_600
  • static final int baud_9600
  • static final int BITS_5
  • static final int BITS_6
  • static final int BITS_7
  • static final int BITS_8
  • static final int PAR_EVEN
  • static final int PAR_FORCE0
  • static final int PAR_FORCE1
  • static final int PAR_NONE
  • static final int PAR_ODD
  • static final byte RXBUFFER
  • static final int STOP_1
  • static final int STOP_2
  • static final byte TXBUFFER
  • static final int UART0
  • static final int UART1

_INSERT_FIELDS_ENTRY_HERE_