Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cs_trace_defmt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DEBUG_CORESIGHT_CS_TRACE_DEFMT_H__
8#define ZEPHYR_INCLUDE_DEBUG_CORESIGHT_CS_TRACE_DEFMT_H__
9
10#include <zephyr/kernel.h>
11#ifdef __cplusplus
12extern "C" {
13#endif
14
31typedef void (*cs_trace_defmt_cb)(uint32_t id, const uint8_t *data, size_t len);
32
34#define CORESIGHT_TRACE_FRAME_SIZE32 4
35
37#define CORESIGHT_TRACE_FRAME_SIZE (CORESIGHT_TRACE_FRAME_SIZE32 * sizeof(uint32_t))
38
44
57int cs_trace_defmt_process(const uint8_t *data, size_t len);
58
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* ZEPHYR_INCLUDE_DEBUG_CORESIGHT_CS_TRACE_DEFMT_H__ */
int cs_trace_defmt_process(const uint8_t *data, size_t len)
Decode data from the stream.
int cs_trace_defmt_init(cs_trace_defmt_cb cb)
Initialize Coresight Trace Deformatter.
void(* cs_trace_defmt_cb)(uint32_t id, const uint8_t *data, size_t len)
Callback signature.
Definition cs_trace_defmt.h:31
Public kernel APIs.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88