From 965e022b9d5375691763864658b3f0cf39ecf875 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Tue, 13 May 2014 17:06:31 +0200 Subject: Send ECU Id if enabled and added library API to change. Signed-off-by: Alexander Wenzel --- include/dlt/dlt_user.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 0c665ab..93ac0a0 100644 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -232,6 +232,7 @@ typedef struct int8_t use_extende_header_for_non_verbose; /**< Use extended header for non verbose: 1 enabled, 0 disabled */ int8_t with_session_id; /**< Send always session id: 1 enabled, 0 disabled */ int8_t with_timestamp; /**< Send always timestamp: 1 enabled, 0 disabled */ + int8_t with_ecu_id; /**< Send always ecu id: 1 enabled, 0 disabled */ int8_t enable_local_print; /**< Local printing of log messages: 1 enabled, 0 disabled */ int8_t local_print_mode; /**< Local print mode, controlled by environment variable */ @@ -568,6 +569,14 @@ int dlt_with_session_id(int8_t with_session_id); */ int dlt_with_timestamp(int8_t with_timestamp); +/** + * Send ecu id configuration. + * Enabled by default. + * @param with_ecu_id Send ecu id in each message if enabled + * @return negative value if no success + */ +int dlt_with_ecu_id(int8_t with_ecu_id); + /** * Set maximum logged log level and trace status of application * -- cgit v1.2.1