Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Macros | |
#define | CORESIGHT_TRACE_FRAME_SIZE32 4 |
Size of trace deformatter frame size in 32 bit words. | |
#define | CORESIGHT_TRACE_FRAME_SIZE (CORESIGHT_TRACE_FRAME_SIZE32 * sizeof(uint32_t)) |
Size of trace deformatter frame size in bytes. | |
Typedefs | |
typedef void(* | cs_trace_defmt_cb) (uint32_t id, const uint8_t *data, size_t len) |
Callback signature. | |
Functions | |
int | cs_trace_defmt_init (cs_trace_defmt_cb cb) |
Initialize Coresight Trace Deformatter. | |
int | cs_trace_defmt_process (const uint8_t *data, size_t len) |
Decode data from the stream. | |
#define CORESIGHT_TRACE_FRAME_SIZE (CORESIGHT_TRACE_FRAME_SIZE32 * sizeof(uint32_t)) |
#include <zephyr/debug/coresight/cs_trace_defmt.h>
Size of trace deformatter frame size in bytes.
#define CORESIGHT_TRACE_FRAME_SIZE32 4 |
#include <zephyr/debug/coresight/cs_trace_defmt.h>
Size of trace deformatter frame size in 32 bit words.
#include <zephyr/debug/coresight/cs_trace_defmt.h>
Callback signature.
id | Stream ID. |
data | Data. |
len | Data length. |
int cs_trace_defmt_init | ( | cs_trace_defmt_cb | cb | ) |
#include <zephyr/debug/coresight/cs_trace_defmt.h>
Initialize Coresight Trace Deformatter.
cb | Callback. |
#include <zephyr/debug/coresight/cs_trace_defmt.h>
Decode data from the stream.
Trace formatter puts data in the 16 byte long blocks.
Callback is called with decoded data.
data | Data. |
len | Data length. Must equal 16. |
0 | On successful deformatting. |
-EINVAL | If wrong length is provided. |