#include <serial_log.hpp>


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 |