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

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

#include <fastarduino/i2c_status.h>

Inheritance diagram for i2c::status::I2CStatusLiveLogger< OSTREAM >:

Public Member Functions

 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...
 

Detailed Description

template<typename OSTREAM>
class i2c::status::I2CStatusLiveLogger< OSTREAM >

Class tracing I2C status notifications live to out.

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

Definition at line 141 of file i2c_status.h.

Constructor & Destructor Documentation

◆ I2CStatusLiveLogger()

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

Create an I2CStatusLiveLogger that can trace live I2C notifications determined by trace.

list. I2C notifications are output to out.

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

Definition at line 153 of file i2c_status.h.


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