1.. _cs_trace_defmt:
2
3ARM Coresight Trace Deformatter
4###############################
5
6Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a
7single output stream. Formatter is using 16 byte frames which wraps up to 15 bytes of
8data. It is used, for example, by ETR (Embedded Trace Router) which is a circular RAM
9buffer where data from various trace streams can be saved. Typically tracing data is
10decoded offline by the host but deformatter can be used on-chip to decode the data during
11application runtime.
12
13Usage
14*****
15
16Deformatter is initialized with a user callback. Data is decoded using
17:c:func:`cs_trace_defmt_process` in 16 bytes chunks. Callback is called whenever stream changes or
18end of chunk is reached. Callback contains stream ID and the data.
19
20API documentation
21*****************
22
23.. doxygengroup:: cs_trace_defmt
24