Zephyr API 3.6.99
Loading...
Searching...
No Matches
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
30typedef void (*cs_trace_defmt_cb)(uint32_t id, const uint8_t *data, size_t len);
31
33#define CORESIGHT_TRACE_FRAME_SIZE32 4
34
36#define CORESIGHT_TRACE_FRAME_SIZE (CORESIGHT_TRACE_FRAME_SIZE32 * sizeof(uint32_t))
37
43
56int cs_trace_defmt_process(const uint8_t *data, size_t len);
57
60#ifdef __cplusplus
61}
62#endif
63
64#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:30
Public kernel APIs.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88