|
diag-trace 4.2.1
The µOS++ Tracing Infrastructure
|
Functions | |
| void | micro_os_plus::trace::flush (void) |
| Flush the trace output channel. | |
| void | micro_os_plus::trace::initialize (void) |
| Initialize the trace output channel. | |
| ssize_t | micro_os_plus::trace::write (const void *buf, std::size_t nbyte) |
| Write the given number of bytes to the trace output channel. | |
The following functions must be implemented by the user and are specific to each individual trace channel.
| void micro_os_plus::trace::flush | ( | void | ) |
Flush the trace output channel.
For buffered trace channels, this function should guarantee that the entire buffer is sent to the channel.
For character mode channels, this function can be left empty.
| void micro_os_plus::trace::initialize | ( | void | ) |
Initialize the trace output channel.
| ssize_t micro_os_plus::trace::write | ( | const void * | buf, |
| std::size_t | nbyte ) |
Write the given number of bytes to the trace output channel.
| [in] | buf | An array of bytes. |
| [in] | nbyte | The number of bytes in the array. |
This function is called during startup, as early as possible, to enable the tracing channel.
After this function, all tracing functions are available.