2 * @licence app begin@
\r
3 * Copyright (C) 2012 BMW AG
\r
5 * This file is part of GENIVI Project Dlt - Diagnostic Log and Trace console apps.
\r
7 * Contributions are licensed to the GENIVI Alliance under one or more
\r
8 * Contribution License Agreements.
\r
11 * This Source Code Form is subject to the terms of the
\r
12 * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
\r
13 * this file, You can obtain one at http://mozilla.org/MPL/2.0/.
\r
16 * \author Alexander Wenzel <alexander.wenzel@bmw.de> BMW 2011-2012
\r
19 * For further information see http://www.genivi.org/.
\r
24 /*******************************************************************************
\r
26 ** SRC-MODULE: dlt_user_cfg.h **
\r
28 ** TARGET : linux **
\r
32 ** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
\r
39 ** PLATFORM DEPENDANT [yes/no]: yes **
\r
41 ** TO BE CHANGED BY USER [yes/no]: no **
\r
43 *******************************************************************************/
\r
45 /*******************************************************************************
\r
46 ** Author Identity **
\r
47 ********************************************************************************
\r
49 ** Initials Name Company **
\r
50 ** -------- ------------------------- ---------------------------------- **
\r
51 ** aw Alexander Wenzel BMW **
\r
52 ** mk Markus Klein Fraunhofer ESK **
\r
53 *******************************************************************************/
\r
55 /*******************************************************************************
\r
56 ** Author Identity **
\r
57 ********************************************************************************
\r
59 ** Initials Name Company **
\r
60 ** -------- ------------------------- ---------------------------------- **
\r
61 ** aw Alexander Wenzel BMW **
\r
62 ** mk Markus Klein Fraunhofer ESK **
\r
63 *******************************************************************************/
\r
65 #ifndef DLT_USER_CFG_H
\r
66 #define DLT_USER_CFG_H
\r
72 /* Size of receive buffer */
\r
73 #define DLT_USER_RCVBUF_MAX_SIZE 10024
\r
75 /* Size of ring buffer */
\r
76 #define DLT_USER_RINGBUFFER_MIN_SIZE 10000
\r
77 #define DLT_USER_RINGBUFFER_MAX_SIZE 60000
\r
78 #define DLT_USER_RINGBUFFER_STEP_SIZE 10000
\r
80 /* Temporary buffer length */
\r
81 #define DLT_USER_BUFFER_LENGTH 255
\r
83 /* Number of context entries, which will be allocated,
\r
84 if no more context entries are available */
\r
85 #define DLT_USER_CONTEXT_ALLOC_SIZE 500
\r
87 /* Maximu length of a filename string */
\r
88 #define DLT_USER_MAX_FILENAME_LENGTH 255
\r
90 /* Maximum length of a single version number */
\r
91 #define DLT_USER_MAX_LIB_VERSION_LENGTH 3
\r
93 /* Length of buffer for constructing text output */
\r
94 #define DLT_USER_TEXT_LENGTH 10024
\r
96 /* Stack size of receiver thread */
\r
97 #define DLT_USER_RECEIVERTHREAD_STACKSIZE 100000
\r
99 /* default value for storage to file, not used in daemon connection */
\r
100 #define DLT_USER_DEFAULT_ECU_ID "ECU1"
\r
102 /* Initial log level */
\r
103 #define DLT_USER_INITIAL_LOG_LEVEL DLT_LOG_INFO
\r
105 /* Initial trace status */
\r
106 #define DLT_USER_INITIAL_TRACE_STATUS DLT_TRACE_STATUS_OFF
\r
108 /* use extended header for non-verbose mode: 0 - don't use, 1 - use */
\r
109 #define DLT_USER_USE_EXTENDED_HEADER_FOR_NONVERBOSE 0
\r
111 /* default message id for non-verbose mode, if no message id was provided */
\r
112 #define DLT_USER_DEFAULT_MSGID 0xffff
\r
114 /* delay in receiver routine in usec (100000 usec = 100ms) */
\r
115 #define DLT_USER_RECEIVE_DELAY 100000
\r
117 /* Name of environment variable for local print mode */
\r
118 #define DLT_USER_ENV_LOCAL_PRINT_MODE "DLT_LOCAL_PRINT_MODE"
\r
120 /* Timeout offset for resending user buffer at exit in usec (1000 usec = 1ms)*/
\r
121 #define DLT_USER_ATEXIT_RESEND_BUFFER_EXIT_TIMEOUT 100000
\r
123 /* Sleeps between resending user buffer at exit in usec (1000 usec = 1ms)*/
\r
124 #define DLT_USER_ATEXIT_RESEND_BUFFER_SLEEP 1000
\r
127 /************************/
\r
128 /* Don't change please! */
\r
129 /************************/
\r
131 /* Minimum valid ID of an injection message */
\r
132 #define DLT_USER_INJECTION_MIN 0xFFF
\r
134 /* Defines of the different local print modes */
\r
135 #define DLT_PM_UNSET 0
\r
136 #define DLT_PM_AUTOMATIC 1
\r
137 #define DLT_PM_FORCE_ON 2
\r
138 #define DLT_PM_FORCE_OFF 3
\r
140 #endif /* DLT_USER_CFG_H */
\r