nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches
nrf_modem_lib_trace.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_MODEM_LIB_TRACE_H__
8#define NRF_MODEM_LIB_TRACE_H__
9
10#include <zephyr/kernel.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
34
39
47
58
66
77
92int nrf_modem_lib_trace_read(uint8_t *buf, size_t len);
93
105
106#if defined(CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_BITRATE) || defined(__DOXYGEN__)
115#endif /* defined(CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_BITRATE) || defined(__DOXYGEN__) */
116
119#ifdef __cplusplus
120}
121#endif
122
123#endif /* NRF_MODEM_LIB_TRACE_H__ */
uint32_t nrf_modem_lib_trace_backend_bitrate_get(void)
Get the last measured rolling average bitrate of the trace backend.
nrf_modem_lib_trace_level
Trace level.
Definition nrf_modem_lib_trace.h:27
@ NRF_MODEM_LIB_TRACE_LEVEL_COREDUMP_ONLY
Definition nrf_modem_lib_trace.h:29
@ NRF_MODEM_LIB_TRACE_LEVEL_OFF
Definition nrf_modem_lib_trace.h:28
@ NRF_MODEM_LIB_TRACE_LEVEL_LTE_AND_IP
Definition nrf_modem_lib_trace.h:32
@ NRF_MODEM_LIB_TRACE_LEVEL_IP_ONLY
Definition nrf_modem_lib_trace.h:31
@ NRF_MODEM_LIB_TRACE_LEVEL_FULL
Definition nrf_modem_lib_trace.h:30
int nrf_modem_lib_trace_processing_done_wait(k_timeout_t timeout)
Wait for trace to have finished processing after coredump or shutdown.
int nrf_modem_lib_trace_level_set(enum nrf_modem_lib_trace_level trace_level)
Set trace level.
int nrf_modem_lib_trace_clear(void)
Clear captured trace data.
size_t nrf_modem_lib_trace_data_size(void)
Get the number of bytes stored in the compile-time selected trace backend.
int nrf_modem_lib_trace_read(uint8_t *buf, size_t len)
Read trace data.
void nrf_modem_lib_trace_callback(enum nrf_modem_lib_trace_event evt)
Trace callback that is called by the trace library when an event occour.
nrf_modem_lib_trace_event
Trace event.
Definition nrf_modem_lib_trace.h:36
@ NRF_MODEM_LIB_TRACE_EVT_FULL
Definition nrf_modem_lib_trace.h:37