|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <uart_terminal_device.hpp>


Public Member Functions | |
| UartTerminalDevice (Drivers *drivers) | |
| DISALLOW_COPY_AND_ASSIGN (UartTerminalDevice) | |
| virtual | ~UartTerminalDevice ()=default |
| void | initialize () |
| bool | read (char &c) override |
| void | write (char c) override |
| void | flush () override |
A wrapper around UART3 used by the terminal handler. Allows for stream-based operations to be performed on data being sent/received by the UART line by using an instance of this class with a modm::IOStream.
| tap::communication::serial::UartTerminalDevice::UartTerminalDevice | ( | Drivers * | drivers | ) |
|
virtualdefault |
| tap::communication::serial::UartTerminalDevice::DISALLOW_COPY_AND_ASSIGN | ( | UartTerminalDevice | ) |
|
override |
Flushes the UART tx buffer.
| void tap::communication::serial::UartTerminalDevice::initialize | ( | ) |
|
override |
Reads a byte from the UART receive buffer and populates c with the value.
| [out] | c | The byte that data will be read into. |
|
override |
Writes the character c into the UART buffer.
| [out] | c | The byte to write to the buffer. |