48 #ifndef __DEV_TERMINAL_HH__ 49 #define __DEV_TERMINAL_HH__ 58 #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);
153 #endif // __DEV_TERMINAL_HH__
uint8_t readData() override
Read a character from the device.
OutputStream * terminalDump(const TerminalParams *p)
void writeData(uint8_t c) override
Transmit a character from the host interface to the device.
bool dataAvailable() const override
Check if there is pending data from the serial device.
Base class for serial devices such as terminals.
bool empty() const
Is the queue empty?
ListenEvent * listenEvent
ListenEvent(Terminal *t, int fd, int e)
Terminal(const Params *p)