diag-trace 5.0.0
µOS++ Tracing Infrastructure
Loading...
Searching...
No Matches
trace-c-api.h File Reference

C header file with the declarations for the C trace API. More...

#include <stdarg.h>
#include <sys/types.h>
#include "inlines/trace-c-api-inlines.h"

Go to the source code of this file.

Functions

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_initialise (void)
 Initialise 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, size_t nbyte)
 Write the given number of bytes to the trace output channel.

Detailed Description

Empty inline stubs (used when tracing is disabled) are located in trace-c-api-inlines.h, included at the bottom of this file. This file is included by <micro-os-plus/diag/trace.h>, which should be used instead of including this file directly.

Definition in file trace-c-api.h.