Go to the documentation of this file.
41 #include "params/SerialDevice.hh"
42 #include "params/SerialNullDevice.hh"
59 "A UART has already been associated with this device.");
83 panic(
"SerialNullDevice does not have pending data.\n");
89 SerialNullDeviceParams::create()
SerialNullDevice(const SerialNullDeviceParams *p)
void regInterfaceCallback(const std::function< void()> &callback)
Register a data available callback into the host interface layer.
virtual bool dataAvailable() const =0
Check if there is pending data from the serial device.
SerialDevice(const SerialDeviceParams *p)
void notifyInterface()
Notify the host interface of pending data.
uint8_t readData() override
Read a character from the device.
Base class for serial devices such as terminals.
std::function< void()> interfaceCallback
Currently regisxtered host interface layer callback.
Dummy serial device that discards all data sent to it.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
#define panic(...)
This implements a cprintf based panic() function.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17