36 #ifndef __DEV_TERMINAL_HH__
37 #define __DEV_TERMINAL_HH__
46 #include "params/Terminal.hh"
50 class TerminalListener;
127 size_t read(uint8_t *buf,
size_t len);
129 size_t write(
const uint8_t *buf,
size_t len);
160 #endif // __DEV_TERMINAL_HH__
void regDataAvailCallback(Callback *c)
Register a data available callback into the transport layer.
bool empty() const
Is the buffer empty?
Callback * termDataAvail
Currently registered transport layer callbacks.
ListenEvent * listenEvent
ListenEvent(Terminal *t, int fd, int e)
Abstract superclass for simulation objects.
Terminal(const Params *p)
DataEvent(Terminal *t, int fd, int e)