Main functions
Primary C++ functions for outputting trace messages. More...
Functions Index
| int | printf (const char *format,...) noexcept |
|
Write a formatted string to the trace output channel. More... | |
| int | putchar (int c) noexcept |
|
Write the single character to the trace output channel. More... | |
| int | puts (const char *s="") noexcept |
|
Write the string and a line terminator to the trace output channel. More... | |
| int | vprintf (const char *format, std::va_list arguments) noexcept |
|
Write a formatted variable arguments list to the trace output channel. More... | |
Description
Primary C++ functions for outputting trace messages.
These functions serve as the primary methods for outputting trace messages in C++ projects.
Functions
printf()
| inline noexcept |
Write a formatted string to the trace output channel.
- Parameters
-
format A null terminated string with the format.
... Additional arguments matching the format specifiers.
- Returns
The number of bytes written, or -1 if an error occurred.
Thin wrapper over tracer<T>::printf(). Subject to the same fixed-size stack buffer constraint and truncation behaviour.
Definition at line 235 of file trace-cpp-api-inlines.h.
Reference micro_os_plus::trace::detail::tracer< T >::vprintf.
Referenced by micro_os_plus::trace::detail::tracer< T >::dump_args.
putchar()
| inline noexcept |
Write the single character to the trace output channel.
- Parameters
-
c A single byte character, passed as an int.
- Returns
The written character as an int, or EOF (-1) if an error occurred.
Thin wrapper over tracer<T>::putchar().
Definition at line 273 of file trace-cpp-api-inlines.h.
Reference micro_os_plus::trace::detail::tracer< T >::putchar.
puts()
| inline noexcept |
Write the string and a line terminator to the trace output channel.
- Parameters
-
s A null terminated string (default: empty string).
- Returns
The total number of bytes written (string + newline), or EOF (-1) if an error occurred.
Thin wrapper over tracer<T>::puts().
Definition at line 262 of file trace-cpp-api-inlines.h.
vprintf()
| inline noexcept |
Write a formatted variable arguments list to the trace output channel.
- Parameters
-
format A null terminated string with the format.
arguments A variable arguments list.
- Returns
The number of bytes written, or -1 if an error occurred.
Thin wrapper over tracer<T>::vprintf().
Definition at line 251 of file trace-cpp-api-inlines.h.
Reference micro_os_plus::trace::detail::tracer< T >::vprintf.
Referenced by micro_os_plus::trace::detail::tracer< T >::printf.
Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.17.0.