Implementation functions
User-supplied back-end primitives that define the trace channel. More...
Functions Index
| void | flush (void) noexcept |
|
Flush the trace output channel. More... | |
| void | initialise (void) noexcept |
|
Initialise the trace output channel. More... | |
| ssize_t | write (const void *buf, std::size_t nbyte) noexcept |
|
Write the given number of bytes to the trace output channel. More... | |
Description
User-supplied back-end primitives that define the trace channel.
The following functions must be implemented by the user and are specific to each individual trace channel.
Functions
flush()
| inline noexcept |
Flush the trace output channel.
- Parameters
None.
- Returns
Nothing.
Thin wrapper over tracer<T>::flush().
Definition at line 229 of file trace-cpp-api-inlines.h.
initialise()
| inline noexcept |
Initialise the trace output channel.
- Parameters
None.
- Returns
Nothing.
Thin wrapper over tracer<T>::initialise(). Called during startup to enable the trace channel.
Definition at line 217 of file trace-cpp-api-inlines.h.
Reference micro_os_plus::trace::detail::tracer< T >::initialise.
write()
| inline noexcept |
Write the given number of bytes to the trace output channel.
- Parameters
-
buf An array of bytes.
nbyte The number of bytes in the array.
- Returns
The number of bytes actually written, or -1 if error.
Thin wrapper over tracer<T>::write().
Definition at line 223 of file trace-cpp-api-inlines.h.
Reference micro_os_plus::trace::detail::tracer< T >::write.
Referenced by micro_os_plus::trace::detail::tracer< T >::putchar, micro_os_plus::trace::detail::tracer< T >::puts and micro_os_plus::trace::detail::tracer< T >::vprintf.
Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.17.0.