M5Unit-NFC 0.1.2 git rev:63c4caa
Loading...
Searching...
No Matches
emulation_trace.hpp File Reference

State trace shared by the emulation adapters. More...

#include <stdint.h>

Go to the source code of this file.

Classes

class  m5::nfc::emulation::Trace
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Macros

#define M5_UNIT_NFC_EMULATION_TRACE_MAX   (128)
 

Detailed Description

State trace shared by the emulation adapters.

Note
Recording only writes to memory, so it can be used where the emulation has to answer the reader in time. Printing is left to the caller, which does it while no session is running
Repeats of the same event are folded into a count, because a reader polling a halted PICC produces the same entry dozens of times and those would push the interesting ones out
The buffer keeps the newest entries: a failure shows up at the end of a session, so the oldest are the ones that can be dropped
Nothing is recorded unless M5_UNIT_NFC_EMULATION_TRACE is defined. Without it the calls compile away and neither memory nor time is spent