3#include <avr/pgmspace.h>
45 void init(uint16_t bufsize=80);
63 void trace(
const char* label,
long val);
72 void trace(
const __FlashStringHelper* label,
long val);
81 void trace(
const char* label,
const char* val);
90 void trace(
const __FlashStringHelper* label,
const char* val);
98 void trace(
const char*
string);
105 void trace(
const __FlashStringHelper*
string);
124 void itrace(
const char*
string);
132 void itrace(
const __FlashStringHelper*
string);
137 bool traceOn =
false;
139 bool autoFlush =
true;
140 Stream& ser = Serial;
143 void add2Buffer(
const char*
string);
148 template<
typename StoredString>
149 void itrace(StoredString getChar);
154 template<
typename StoredString>
155 void trace(StoredString getChar);
160 template<
typename StoredString>
161 void trace(StoredString getChar,
long val);
166 template<
typename StoredString>
167 void trace(StoredString getChar,
const char *val);
BufferedTrace Trace
Definition BufferedTrace.cpp:11
Project: BufferedTrace for Arduino.
Definition BufferedTrace.h:21
void init(uint16_t bufsize=80)
Initializes the serial interface for communication.
Definition BufferedTrace.cpp:20
void trace(const char *label, long val)
buffers information consisting of a string label and numeric value.
Definition BufferedTrace.cpp:109
void setStream(Stream &serial)
Sets a stream other than the standard Serial.
Definition BufferedTrace.cpp:16
void open()
resets the trace buffer, and starts buffering trace info.
Definition BufferedTrace.cpp:44
void itrace(const char *string)
Immediately outputs a string.
Definition BufferedTrace.cpp:167
void setAutoFlush(bool autoFlush)
whether or not to flush the buffer when full
Definition BufferedTrace.cpp:183
void close()
sends the buffered information collected since the last open() call and resets the buffer.
Definition BufferedTrace.cpp:50
BufferedTrace()
default constructor
Definition BufferedTrace.cpp:13