automotive-dlt
dlt_user.h File Reference
#include <mqueue.h>
#include <semaphore.h>
#include "dlt_types.h"
#include "dlt_user_macros.h"
#include "dlt_shm.h"
Include dependency graph for dlt_user.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DltContext
 
struct  DltContextData
 
struct  DltUserInjectionCallback
 
struct  DltUserLogLevelChangedCallback
 
struct  dlt_ll_ts_type
 
struct  dlt_env_ll_item
 holds initial log-level for given appId:ctxId pair More...
 
struct  dlt_env_ll_set
 holds all initial log-levels given via environment variable DLT_INITIAL_LOG_LEVEL More...
 
struct  DltUser
 

Macros

#define DLT_USER_BUF_MAX_SIZE   1390
 
#define DLT_USER_RESENDBUF_MAX_SIZE   (DLT_USER_BUF_MAX_SIZE + 100)
 
#define DLT_SEM_LOCK()   { sem_wait(&dlt_mutex); }
 
#define DLT_SEM_FREE()   { sem_post(&dlt_mutex); }
 

Functions

DltReturnValue dlt_user_log_write_start (DltContext *handle, DltContextData *log, DltLogLevelType loglevel)
 
DltReturnValue dlt_user_log_write_start_id (DltContext *handle, DltContextData *log, DltLogLevelType loglevel, uint32_t messageid)
 
DltReturnValue dlt_user_log_write_finish (DltContextData *log)
 
DltReturnValue dlt_user_log_write_bool (DltContextData *log, uint8_t data)
 
DltReturnValue dlt_user_log_write_float32 (DltContextData *log, float32_t data)
 
DltReturnValue dlt_user_log_write_float64 (DltContextData *log, double data)
 
DltReturnValue dlt_user_log_write_uint (DltContextData *log, unsigned int data)
 
DltReturnValue dlt_user_log_write_uint8 (DltContextData *log, uint8_t data)
 
DltReturnValue dlt_user_log_write_uint16 (DltContextData *log, uint16_t data)
 
DltReturnValue dlt_user_log_write_uint32 (DltContextData *log, uint32_t data)
 
DltReturnValue dlt_user_log_write_uint64 (DltContextData *log, uint64_t data)
 
DltReturnValue dlt_user_log_write_uint8_formatted (DltContextData *log, uint8_t data, DltFormatType type)
 
DltReturnValue dlt_user_log_write_uint16_formatted (DltContextData *log, uint16_t data, DltFormatType type)
 
DltReturnValue dlt_user_log_write_uint32_formatted (DltContextData *log, uint32_t data, DltFormatType type)
 
DltReturnValue dlt_user_log_write_uint64_formatted (DltContextData *log, uint64_t data, DltFormatType type)
 
DltReturnValue dlt_user_log_write_ptr (DltContextData *log, void *data)
 
DltReturnValue dlt_user_log_write_int (DltContextData *log, int data)
 
DltReturnValue dlt_user_log_write_int8 (DltContextData *log, int8_t data)
 
DltReturnValue dlt_user_log_write_int16 (DltContextData *log, int16_t data)
 
DltReturnValue dlt_user_log_write_int32 (DltContextData *log, int32_t data)
 
DltReturnValue dlt_user_log_write_int64 (DltContextData *log, int64_t data)
 
DltReturnValue dlt_user_log_write_string (DltContextData *log, const char *text)
 
DltReturnValue dlt_user_log_write_constant_string (DltContextData *log, const char *text)
 
DltReturnValue dlt_user_log_write_utf8_string (DltContextData *log, const char *text)
 
DltReturnValue dlt_user_log_write_raw (DltContextData *log, void *data, uint16_t length)
 
DltReturnValue dlt_user_log_write_raw_formatted (DltContextData *log, void *data, uint16_t length, DltFormatType type)
 
DltReturnValue dlt_user_trace_network (DltContext *handle, DltNetworkTraceType nw_trace_type, uint16_t header_len, void *header, uint16_t payload_len, void *payload)
 
DltReturnValue dlt_user_trace_network_truncated (DltContext *handle, DltNetworkTraceType nw_trace_type, uint16_t header_len, void *header, uint16_t payload_len, void *payload, int allow_truncate)
 
DltReturnValue dlt_user_trace_network_segmented (DltContext *handle, DltNetworkTraceType nw_trace_type, uint16_t header_len, void *header, uint16_t payload_len, void *payload)
 
DltReturnValue dlt_init ()
 
DltReturnValue dlt_init_file (const char *name)
 
DltReturnValue dlt_free ()
 
DltReturnValue dlt_check_library_version (const char *user_major_version, const char *user_minor_version)
 
DltReturnValue dlt_register_app (const char *appid, const char *description)
 
DltReturnValue dlt_unregister_app (void)
 
DltReturnValue dlt_register_context (DltContext *handle, const char *contextid, const char *description)
 
DltReturnValue dlt_register_context_ll_ts (DltContext *handle, const char *contextid, const char *description, int loglevel, int tracestatus)
 
DltReturnValue dlt_unregister_context (DltContext *handle)
 
int dlt_set_resend_timeout_atexit (uint32_t timeout_in_milliseconds)
 
DltReturnValue dlt_set_log_mode (DltUserLogMode mode)
 
int dlt_get_log_state ()
 
DltReturnValue dlt_register_injection_callback (DltContext *handle, uint32_t service_id, int(*dlt_injection_callback)(uint32_t service_id, void *data, uint32_t length))
 
DltReturnValue dlt_register_log_level_changed_callback (DltContext *handle, void(*dlt_log_level_changed_callback)(char context_id[DLT_ID_SIZE], uint8_t log_level, uint8_t trace_status))
 
DltReturnValue dlt_verbose_mode (void)
 
DltReturnValue dlt_user_check_library_version (const char *user_major_version, const char *user_minor_version)
 
DltReturnValue dlt_nonverbose_mode (void)
 
DltReturnValue dlt_use_extended_header_for_non_verbose (int8_t use_extende_header_for_non_verbose)
 
DltReturnValue dlt_with_session_id (int8_t with_session_id)
 
DltReturnValue dlt_with_timestamp (int8_t with_timestamp)
 
DltReturnValue dlt_with_ecu_id (int8_t with_ecu_id)
 
DltReturnValue dlt_set_application_ll_ts_limit (DltLogLevelType loglevel, DltTraceStatusType tracestatus)
 
int dlt_env_adjust_ll_from_env (dlt_env_ll_set const *const ll_set, char const *const apid, char const *const ctid, int const ll)
 adjust log-level based on values given through environment More...
 
int dlt_env_extract_ll_set (char **const env, dlt_env_ll_set *const ll_set)
 extract log-level settings from given string More...
 
void dlt_env_free_ll_set (dlt_env_ll_set *const ll_set)
 release ll_set More...
 
DltReturnValue dlt_enable_local_print (void)
 
DltReturnValue dlt_disable_local_print (void)
 
DltReturnValue dlt_log_string (DltContext *handle, DltLogLevelType loglevel, const char *text)
 
DltReturnValue dlt_log_string_int (DltContext *handle, DltLogLevelType loglevel, const char *text, int data)
 
DltReturnValue dlt_log_string_uint (DltContext *handle, DltLogLevelType loglevel, const char *text, unsigned int data)
 
DltReturnValue dlt_log_int (DltContext *handle, DltLogLevelType loglevel, int data)
 
DltReturnValue dlt_log_uint (DltContext *handle, DltLogLevelType loglevel, unsigned int data)
 
DltReturnValue dlt_log_raw (DltContext *handle, DltLogLevelType loglevel, void *data, uint16_t length)
 
DltReturnValue dlt_log_marker ()
 
DltReturnValue dlt_forward_msg (void *msgdata, size_t size)
 
DltReturnValue dlt_user_check_buffer (int *total_size, int *used_size)
 
int dlt_user_atexit_blow_out_user_buffer (void)
 
DltReturnValue dlt_user_log_resend_buffer (void)
 
static DltReturnValue dlt_user_is_logLevel_enabled (DltContext *handle, DltLogLevelType loglevel)
 

Detailed Description

Author
Alexander Wenzel alexa.nosp@m.nder.nosp@m..aw.w.nosp@m.enze.nosp@m.l@bmw.nosp@m..de

Definition in file dlt_user.h.