Go to the documentation of this file.
45 #ifndef __DEV_TERMINAL_HH__
46 #define __DEV_TERMINAL_HH__
55 #include "params/Terminal.hh"
59 class TerminalListener;
121 size_t read(uint8_t *buf,
size_t len);
123 size_t write(
const uint8_t *buf,
size_t len);
150 #endif // __DEV_TERMINAL_HH__
ListenEvent * listenEvent
void writeData(uint8_t c) override
Transmit a character from the host interface to the device.
Terminal(const Params *p)
bool dataAvailable() const override
Check if there is pending data from the serial device.
ListenEvent(Terminal *t, int fd, int e)
DataEvent(Terminal *t, int fd, int e)
OutputStream * terminalDump(const TerminalParams *p)
bool empty() const
Is the queue empty?
Base class for serial devices such as terminals.
uint8_t readData() override
Read a character from the device.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17