FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Class recording I2C debug notifications for later output. More...
#include <fastarduino/i2c_debug.h>
Public Member Functions | |
I2CDebugRecorder (DEBUG debug=DEBUG::DEBUG_ALL) | |
Create an I2CDebugRecorder that can record I2C notifications determined by debug list. More... | |
void | reset () |
Clear all recorded notifications. More... | |
template<typename OSTREAM > | |
void | trace (OSTREAM &out) |
Output all recorded I2C notifications to out then clear all records. More... | |
Class recording I2C debug notifications for later output.
SIZE | the maximum number of notifications to record (each notification is 2 bytes) |
Definition at line 139 of file i2c_debug.h.
|
inlineexplicit |
Create an I2CDebugRecorder that can record I2C notifications determined by debug
list.
The number of recorded notifications is limited by SIZE
. Once SIZE
notifications have been recorded by this I2CDebugRecorder, any additional notification will be trashed. To be effective, this must be attached to an I2C Manager (at construction time). Recorded notifications can be output to a streams::ostream
with trace()
.
debug | the list of notifications to be recorded |
Definition at line 156 of file i2c_debug.h.
|
inline |
|
inline |
Output all recorded I2C notifications to out
then clear all records.
out | the streams::ostream to output traces to |
Definition at line 173 of file i2c_debug.h.