45 #ifndef __DEV_TERMINAL_HH__
46 #define __DEV_TERMINAL_HH__
55 #include "params/Terminal.hh"
62 class TerminalListener;
124 size_t read(uint8_t *buf,
size_t len);
126 size_t write(
const uint8_t *buf,
size_t len);
Base class for serial devices such as terminals.
DataEvent(Terminal *t, int fd, int e)
ListenEvent(Terminal *t, int fd, int e)
OutputStream * terminalDump(const TerminalParams &p)
uint8_t readData() override
Read a character from the device.
Terminal(const Params &p)
void writeData(uint8_t c) override
Transmit a character from the host interface to the device.
ListenEvent * listenEvent
bool dataAvailable() const override
Check if there is pending data from the serial device.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....