Zephyr API 3.6.99
Loading...
Searching...
No Matches
log_link.h File Reference

Go to the source code of this file.

Data Structures

struct  log_link_config
 
struct  log_link_api
 
struct  log_link_ctrl_blk
 
struct  log_link
 

Macros

#define LOG_LINK_DEF(_name, _api, _buf_wlen, _ctx)
 Create instance of a log link.
 

Typedefs

typedef void(* log_link_callback_t) (const struct log_link *link, union log_msg_generic *msg)
 
typedef void(* log_link_dropped_cb_t) (const struct log_link *link, uint32_t dropped)
 

Functions

static int log_link_initiate (const struct log_link *link, struct log_link_config *config)
 Initiate log link.
 
static int log_link_activate (const struct log_link *link)
 Activate log link.
 
static int log_link_is_active (const struct log_link *link)
 Check if link is activated.
 
static uint8_t log_link_domains_count (const struct log_link *link)
 Get number of domains in the link.
 
static uint16_t log_link_sources_count (const struct log_link *link, uint32_t domain_id)
 Get number of sources in the domain.
 
static int log_link_get_domain_name (const struct log_link *link, uint32_t domain_id, char *buf, size_t *length)
 Get domain name.
 
static int log_link_get_source_name (const struct log_link *link, uint32_t domain_id, uint16_t source_id, char *buf, size_t *length)
 Get source name.
 
static int log_link_get_levels (const struct log_link *link, uint32_t domain_id, uint16_t source_id, uint8_t *level, uint8_t *runtime_level)
 Get level settings of the given source.
 
static int log_link_set_runtime_level (const struct log_link *link, uint32_t domain_id, uint16_t source_id, uint8_t level)
 Set runtime level of the given source.