The tcDspSerial class may be used to provide access to a serial UART device. Each instance of DspSerial provides access to a single UART, and installs an ISR at the specified interrupt level to handle receive and transmit empty interrupts.
When created, the constructor requires a valid base address for the UART, the interrupt level used, and baud rate, start/stop bit, and parity information for the interface. The baud rate, start/stop bits, and parity may be changed at a later time by calling the tcDspSerial::set_serial_mode method.
There is no limit to the number of instances of tcDspSerial that may be created, however only one per physical UART is allowed.
This is a simple example of tcDspSerial creation and usage: