2 #define _CSDBG_STTYBUF 1
72 virtual bool is_tty()
const;
sttybuf(const i8 *, u32=9600)
Object constructor.
A buffered output stream for serial interfaces.
static u32 translate_baud(u32)
Translate a number to a baud rate as defined in termios.h.
virtual sttybuf & sync() const
Commit cached data to the serial interface line.
This abstract class is the base for all buffered output stream types (for files, sockets, serial interfaces e.t.c)
char i8
8-bit signed integer
Class csdbg::streambuf definition.
virtual const i8 * devnode() const
Get the path of the serial interface device node.
virtual sttybuf * clone() const
Object virtual copy constructor.
virtual sttybuf & open()
Open the serial interface for output.
virtual sttybuf & flush()
Flush the buffered data to the serial interface.
virtual ~sttybuf()
Object destructor.
virtual sttybuf & discard() const
Discard the data cached in the serial interface (in-kernel) buffers.
i8 * m_devnode
Device node file (devfs)
virtual sttybuf & set_baud(u32)
Set the baud rate.
unsigned int u32
32-bit unsigned integer
virtual sttybuf & config() const
Configure the serial interface.
virtual u32 baud() const
Get the baud rate.
virtual bool is_tty() const
Check if the device node is a terminal.
virtual sttybuf & operator=(const sttybuf &)
Assignment operator.