|
Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Log message API. More...
Data Structures | |
| struct | log_msg_desc |
| union | log_msg_source |
| struct | log_msg_hdr |
| struct | log_msg |
| struct | log_msg_generic_hdr |
| union | log_msg_generic |
Macros | |
| #define | LOG_MSG2_GENERIC_HDR |
Functions | |
| static uint32_t | log_msg_get_total_wlen (const struct log_msg_desc desc) |
| Get total length (in 32 bit words) of a log message. More... | |
| static uint32_t | log_msg_generic_get_wlen (const union mpsc_pbuf_generic *item) |
| Get length of the log item. More... | |
| static uint8_t | log_msg_get_domain (struct log_msg *msg) |
| Get log message domain ID. More... | |
| static uint8_t | log_msg_get_level (struct log_msg *msg) |
| Get log message level. More... | |
| static const void * | log_msg_get_source (struct log_msg *msg) |
| Get message source data. More... | |
| static log_timestamp_t | log_msg_get_timestamp (struct log_msg *msg) |
| Get timestamp. More... | |
| static uint8_t * | log_msg_get_data (struct log_msg *msg, size_t *len) |
| Get data buffer. More... | |
| static uint8_t * | log_msg_get_package (struct log_msg *msg, size_t *len) |
| Get string package. More... | |
Log message API.
| #define LOG_MSG2_GENERIC_HDR |
#include <include/zephyr/logging/log_msg.h>
|
inlinestatic |
#include <include/zephyr/logging/log_msg.h>
Get length of the log item.
| item | Item. |
#include <include/zephyr/logging/log_msg.h>
Get data buffer.
| msg | log message. |
| len | location where data length is written. |
#include <include/zephyr/logging/log_msg.h>
Get log message domain ID.
| msg | Log message. |
#include <include/zephyr/logging/log_msg.h>
Get log message level.
| msg | Log message. |
#include <include/zephyr/logging/log_msg.h>
Get string package.
| msg | log message. |
| len | location where string package length is written. |
|
inlinestatic |
#include <include/zephyr/logging/log_msg.h>
Get message source data.
| msg | Log message. |
|
inlinestatic |
#include <include/zephyr/logging/log_msg.h>
Get timestamp.
| msg | Log message. |
|
inlinestatic |
#include <include/zephyr/logging/log_msg.h>
Get total length (in 32 bit words) of a log message.
| desc | Log message descriptor. |