7#ifndef TRACE_BACKEND_H__
8#define TRACE_BACKEND_H__
67 int (*
write)(
const void *data,
size_t len);
93 int (*
read)(
void *buf,
size_t len);
int(* trace_backend_processed_cb)(size_t len)
callback to signal the trace module that some amount of trace data has been processed.
Definition trace_backend.h:24
int(* suspend)(void)
Suspend trace backend.
Definition trace_backend.h:116
int(* init)(trace_backend_processed_cb trace_processed_cb)
Initialize the compile-time selected trace backend.
Definition trace_backend.h:39
int(* deinit)(void)
Deinitialize the compile-time selected trace backend.
Definition trace_backend.h:47
int(* read)(void *buf, size_t len)
Read trace data from the compile-time selected trace backend.
Definition trace_backend.h:93
int(* clear)(void)
Erase all captured trace data in the compile-time selected trace backend.
Definition trace_backend.h:104
size_t(* data_size)(void)
Get the number of bytes stored in the compile-time selected trace backend.
Definition trace_backend.h:78
int(* resume)(void)
Resume trace backend.
Definition trace_backend.h:127
int(* write)(const void *data, size_t len)
Write trace data to the compile-time selected trace backend.
Definition trace_backend.h:67
The trace backend interface, implemented by the trace backend.
Definition trace_backend.h:29