Overview   API Reference  

serial_log Struct Reference

Simple serial_driver, which prints all characters using the log server. More...

#include <serial_log.hpp>

Inheritance diagram for serial_log:

Inheritance graph
[legend]
Collaboration diagram for serial_log:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 serial_log (const int line_size=0, const char *prefix=nullptr)
virtual const char * name (void) const
 Returns the driver's name.
virtual int reset (void)
 Resets the driver's state back to defaults as when powering up the machine.
virtual int write (const uint8_t c)
 Writes the specified byte to the output medium.
virtual void set_line_size (const int line_size=0)

Static Public Attributes

static const int DEFAULT_LINE_SIZE = 69
static const int MAX_LINE_SIZE = 256

Protected Member Functions

void cr (void)
void nl (void)

Protected Attributes

int line_size
int prefix_size
char buffer [MAX_LINE_SIZE+1]
char * ptr
bool continued


Detailed Description

Simple serial_driver, which prints all characters using the log server.
The documentation for this struct was generated from the following file:

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008