Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Coresight Trace Deformatter

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.
 

Detailed Description

Macro Definition Documentation

◆ CORESIGHT_TRACE_FRAME_SIZE

#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.

◆ CORESIGHT_TRACE_FRAME_SIZE32

#define CORESIGHT_TRACE_FRAME_SIZE32   4

#include <zephyr/debug/coresight/cs_trace_defmt.h>

Size of trace deformatter frame size in 32 bit words.

Typedef Documentation

◆ cs_trace_defmt_cb

typedef void(* cs_trace_defmt_cb) (uint32_t id, const uint8_t *data, size_t len)

#include <zephyr/debug/coresight/cs_trace_defmt.h>

Callback signature.

Parameters
idStream ID.
dataData.
lenData length.

Function Documentation

◆ cs_trace_defmt_init()

int cs_trace_defmt_init ( cs_trace_defmt_cb cb)

#include <zephyr/debug/coresight/cs_trace_defmt.h>

Initialize Coresight Trace Deformatter.

Parameters
cbCallback.

◆ cs_trace_defmt_process()

int cs_trace_defmt_process ( const uint8_t * data,
size_t len )

#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.

Parameters
dataData.
lenData length. Must equal 16.
Return values
0On successful deformatting.
-EINVALIf wrong length is provided.