diag-trace 4.2.1
The µOS++ Tracing Infrastructure
Loading...
Searching...
No Matches
trace.cpp File Reference
#include <micro-os-plus/diag/trace.h>
#include <cstdarg>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 
namespace  micro_os_plus::trace
 Tracing support namespace.
 

Macros

#define MICRO_OS_PLUS_INTEGER_TRACE_PRINTF_BUFFER_ARRAY_SIZE   (200)
 

Functions

void micro_os_plus::trace::dump_args (int argc, char *argv[], const char *name="main")
 Send the argv[] array to the trace output channel.
 
void micro_os_plus_trace_dump_args (int argc, char *argv[])
 Write the argv[] array to the trace output channel.
 
void micro_os_plus_trace_flush (void)
 Flush the trace output channel.
 
void micro_os_plus_trace_initialize (void)
 Initialize the trace output channel.
 
int micro_os_plus_trace_printf (const char *format,...)
 Write a formatted string to the trace output channel.
 
int micro_os_plus_trace_putchar (int c)
 Write the single character to the trace output channel.
 
int micro_os_plus_trace_puts (const char *s)
 Write the string and a line terminator to the trace output channel.
 
int micro_os_plus_trace_vprintf (const char *format, va_list arguments)
 Write a formatted variable arguments list to the trace output channel.
 
ssize_t micro_os_plus_trace_write (const void *buf, std::size_t nbyte)
 
int micro_os_plus::trace::printf (const char *format,...)
 Write a formatted string to the trace output channel.
 
int micro_os_plus::trace::putchar (int c)
 Write the single character to the trace output channel.
 
int micro_os_plus::trace::puts (const char *s="")
 Write the string and a line terminator to the trace output channel.
 
int micro_os_plus::trace::vprintf (const char *format, std::va_list arguments)
 Write a formatted variable arguments list to the trace output channel.
 

Macro Definition Documentation

◆ MICRO_OS_PLUS_INTEGER_TRACE_PRINTF_BUFFER_ARRAY_SIZE

#define MICRO_OS_PLUS_INTEGER_TRACE_PRINTF_BUFFER_ARRAY_SIZE   (200)

Definition at line 29 of file trace.cpp.

Function Documentation

◆ micro_os_plus_trace_write()

ssize_t micro_os_plus_trace_write ( const void * buf,
std::size_t nbyte )

Definition at line 178 of file trace.cpp.