|
diag-trace 5.0.0
µOS++ Tracing Infrastructure
|
Policy class for the production trace instance. More...
#include <micro-os-plus/diag/trace.h>
Static Public Member Functions | |
| static void | flush (void) noexcept |
| Flush the trace output channel. | |
| static void | initialise (void) noexcept |
| Initialise the trace output channel. | |
| static ssize_t | write (const void *buf, std::size_t nbyte) noexcept |
| Write the given number of bytes to the trace output channel. | |
The user must provide a definition of initialise(), write(), and flush() for this class (typically in a single .cpp file, once per application/platform).
implementation is not a template; it has no member data and is never instantiated as an object. Its static methods are looked up by tracer<implementation> and are otherwise ordinary, non-template member functions, so there is no instantiation-order hazard between their declaration here and their definition elsewhere.
Definition at line 289 of file trace-cpp-api.h.
|
staticnoexcept |
The user must provide a definition of this method. For buffered output channels, it must drain any internally buffered data to the output device. For unbuffered or character-mode channels (e.g. ITM), the body can be left empty.
|
staticnoexcept |
The user must provide a definition of this method, called once during startup to configure the underlying output device (e.g. a semihosting channel, or ITM port).
|
staticnoexcept |
| buf | An array of bytes. |
| nbyte | The number of bytes in the array. |
nbyte if the device is full.The user must provide a definition of this method. It is the core output primitive; all higher-level functions (printf, puts, putchar) ultimately delegate to it.