7#ifndef TRACE_BACKEND_H__
8#define TRACE_BACKEND_H__
64 int (*
write)(
const void *data,
size_t len);
90 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:113
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:90
int(* clear)(void)
Erase all captured trace data in the compile-time selected trace backend.
Definition: trace_backend.h:101
size_t(* data_size)(void)
Get the number of bytes stored in the compile-time selected trace backend.
Definition: trace_backend.h:75
int(* resume)(void)
Resume trace backend.
Definition: trace_backend.h:124
int(* write)(const void *data, size_t len)
Write trace data to the compile-time selected trace backend.
Definition: trace_backend.h:64
The trace backend interface, implemented by the trace backend.
Definition: trace_backend.h:29