nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
lte_lc_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 LTE_LC_TRACE_H__
8#define LTE_LC_TRACE_H__
9
10#include <zephyr/sys/util.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define LTE_LC_TRACE(type) \
17 IF_ENABLED(CONFIG_LTE_LC_TRACE, \
18 (lte_lc_trace_capture(type)))
19
47};
48
49typedef void(*lte_lc_trace_handler_t)(enum lte_lc_trace_type type);
50
52
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* LTE_LC_TRACE_H__ */
void lte_lc_trace_handler_set(lte_lc_trace_handler_t handler)
void lte_lc_trace_capture(enum lte_lc_trace_type type)
lte_lc_trace_type
Definition: lte_lc_trace.h:20
@ LTE_LC_TRACE_LTE_MODE_UPDATE_NBIOT
Definition: lte_lc_trace.h:44
@ LTE_LC_TRACE_LTE_MODE_UPDATE_LTEM
Definition: lte_lc_trace.h:43
@ LTE_LC_TRACE_FUNC_MODE_DEACTIVATE_LTE
Definition: lte_lc_trace.h:26
@ LTE_LC_TRACE_RRC_IDLE
Definition: lte_lc_trace.h:41
@ LTE_LC_TRACE_NW_REG_REGISTERED_HOME
Definition: lte_lc_trace.h:33
@ LTE_LC_TRACE_RRC_CONNECTED
Definition: lte_lc_trace.h:40
@ LTE_LC_TRACE_FUNC_MODE_DEACTIVATE_GNSS
Definition: lte_lc_trace.h:27
@ LTE_LC_TRACE_LTE_MODE_UPDATE_NONE
Definition: lte_lc_trace.h:42
@ LTE_LC_TRACE_NW_REG_UNKNOWN
Definition: lte_lc_trace.h:36
@ LTE_LC_TRACE_NW_REG_REGISTERED_EMERGENCY
Definition: lte_lc_trace.h:38
@ LTE_LC_TRACE_FUNC_MODE_ACTIVATE_UICC
Definition: lte_lc_trace.h:30
@ LTE_LC_TRACE_NW_REG_UICC_FAIL
Definition: lte_lc_trace.h:39
@ LTE_LC_TRACE_NW_REG_SEARCHING
Definition: lte_lc_trace.h:34
@ LTE_LC_TRACE_MODEM_SLEEP_ENTER
Definition: lte_lc_trace.h:46
@ LTE_LC_TRACE_FUNC_MODE_ACTIVATE_LTE
Definition: lte_lc_trace.h:22
@ LTE_LC_TRACE_FUNC_MODE_NORMAL
Definition: lte_lc_trace.h:21
@ LTE_LC_TRACE_FUNC_MODE_RX_ONLY
Definition: lte_lc_trace.h:24
@ LTE_LC_TRACE_NW_REG_REGISTRATION_DENIED
Definition: lte_lc_trace.h:35
@ LTE_LC_TRACE_FUNC_MODE_ACTIVATE_GNSS
Definition: lte_lc_trace.h:28
@ LTE_LC_TRACE_NW_REG_REGISTERED_ROAMING
Definition: lte_lc_trace.h:37
@ LTE_LC_TRACE_FUNC_MODE_OFFLINE_UICC_ON
Definition: lte_lc_trace.h:31
@ LTE_LC_TRACE_MODEM_SLEEP_EXIT
Definition: lte_lc_trace.h:45
@ LTE_LC_TRACE_FUNC_MODE_OFFLINE
Definition: lte_lc_trace.h:25
@ LTE_LC_TRACE_FUNC_MODE_DEACTIVATE_UICC
Definition: lte_lc_trace.h:29
@ LTE_LC_TRACE_FUNC_MODE_POWER_OFF
Definition: lte_lc_trace.h:23
@ LTE_LC_TRACE_NW_REG_NOT_REGISTERED
Definition: lte_lc_trace.h:32
void(* lte_lc_trace_handler_t)(enum lte_lc_trace_type type)
Definition: lte_lc_trace.h:49