FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
i2c::debug::I2CDebugStatusLiveLogger< OSTREAM > Class Template Reference

Class tracing I2C status and debug notifications live to out. More...

#include <fastarduino/i2c_debug.h>

Inheritance diagram for i2c::debug::I2CDebugStatusLiveLogger< OSTREAM >:
Collaboration diagram for i2c::debug::I2CDebugStatusLiveLogger< OSTREAM >:

Public Member Functions

 I2CDebugStatusLiveLogger (OSTREAM &out, i2c::status::STATUS trace=i2c::status::STATUS::TRACE_ALL, DEBUG debug=DEBUG::DEBUG_ALL, bool hex_status=true)
 Create an I2CDebugLiveLogger that can trace live I2C notifications determined by debug and trace list. More...
 
- Public Member Functions inherited from i2c::status::I2CStatusLiveLogger< OSTREAM >
 I2CStatusLiveLogger (OSTREAM &out, STATUS trace=STATUS::TRACE_ALL, bool hex_status=true)
 Create an I2CStatusLiveLogger that can trace live I2C notifications determined by trace. More...
 
- Public Member Functions inherited from i2c::debug::I2CDebugLiveLogger< OSTREAM >
 I2CDebugLiveLogger (OSTREAM &out, DEBUG debug=DEBUG::DEBUG_ALL)
 Create an I2CDebugLiveLogger that can trace live I2C notifications determined by debug list. More...
 

Detailed Description

template<typename OSTREAM>
class i2c::debug::I2CDebugStatusLiveLogger< OSTREAM >

Class tracing I2C status and debug notifications live to out.

Warning
Do not use this with asynchronous (ISR-based) I2C Managers! if you use an asynchronous I2C Manager, then use I2CDebugStatusRecorder instead.
See also
I2CDebugStatusRecorder

Definition at line 421 of file i2c_debug.h.

Constructor & Destructor Documentation

◆ I2CDebugStatusLiveLogger()

template<typename OSTREAM >
i2c::debug::I2CDebugStatusLiveLogger< OSTREAM >::I2CDebugStatusLiveLogger ( OSTREAM &  out,
i2c::status::STATUS  trace = i2c::status::STATUS::TRACE_ALL,
DEBUG  debug = DEBUG::DEBUG_ALL,
bool  hex_status = true 
)
inline

Create an I2CDebugLiveLogger that can trace live I2C notifications determined by debug and trace list.

I2C notifications are output to out.

Parameters
outthe streams::ostream to output traces to
tracethe list of debug notifications to be recorded
debugthe list of status notifications to be recorded
hex_statusif true (the default), status values will be displayed in hexadecimal, otherwise status name will be displayed
See also
trace()
reset()

Definition at line 441 of file i2c_debug.h.


The documentation for this class was generated from the following file: