nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
etb_trace.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef __ETB_TRACE_H
8#define __ETB_TRACE_H
9
10#include <stdint.h>
11#include <zephyr/kernel.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
24#define ETB_BUFFER_SIZE KB(2)
25
30void etb_trace_start(void);
31
36void etb_trace_stop(void);
37
46size_t etb_data_get(uint32_t *buf, size_t buf_size);
47
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* __ETB_TRACE_H */
size_t etb_data_get(uint32_t *buf, size_t buf_size)
Retrieve ETB trace data to buffer.
void etb_trace_start(void)
Set up debug unit and start ETB tracing.
void etb_trace_stop(void)
Stop ETB tracing.