Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
log_core2.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_
7
#define ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_
8
9
#include <
logging/log_msg2.h
>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#define Z_TRACING_LOG_TRACE(id) do { \
16
Z_TRACING_LOG_HDR_INIT(_msg, id); \
17
z_log_msg2_put_trace(_msg); \
18
} while (0)
19
20
#define Z_TRACING_LOG_TRACE_PTR(id, ptr) do { \
21
Z_TRACING_LOG_HDR_INIT(_msg, id); \
22
z_log_msg2_put_trace_ptr(_msg, ptr); \
23
} while (0)
24
25
void
z_log_msg2_put_trace(
struct
log_msg2_trace
trace);
26
27
void
z_log_msg2_put_trace_ptr(
struct
log_msg2_trace
hdr,
void
*
data
);
28
29
31
void
z_log_msg2_init(
void
);
32
39
struct
log_msg2
*z_log_msg2_alloc(
uint32_t
wlen);
40
45
void
z_log_msg2_commit(
struct
log_msg2
*msg);
46
53
union
log_msg2_generic
*z_log_msg2_claim(
void
);
54
59
void
z_log_msg2_free(
union
log_msg2_generic
*msg);
60
66
bool
z_log_msg2_pending(
void
);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_ */
log_msg2.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
log_msg2_trace
Definition:
log_msg2.h:96
log_msg2
Definition:
log_msg2.h:105
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
log_msg2_generic
Definition:
log_msg2.h:114
include
logging
log_core2.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4