Init basesystem source codes.
[staging/basesystem.git] / systemservice / interface_unified / library / include / system_service / ss_error_event_common_local.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * @file ss_error_event_common_local.h
19  * @brief  This file supports SM logging.
20  */
21
22 /** @addtogroup BaseSystem
23  *  @{
24  */
25 /** @addtogroup system_service
26  *  @ingroup BaseSystem
27  *  @{
28  */
29 /** @addtogroup interface_unified
30  *  @ingroup system_service
31  *  @{
32  */
33
34 #ifndef __SS_ERROR_EVENT_COMMON_LOCAL_H__  // NOLINT (build/header_guard)
35 #define __SS_ERROR_EVENT_COMMON_LOCAL_H__
36
37 #define SS_ERROR_EVENT_START_REQ_TO_SEC               (5)
38 #define SS_ERROR_EVENT_DEBUG_DUMP_RSPN_TO_SEC         (1)
39 #define SS_ERROR_EVENT_BOOT_MICRO_LOG_RESPONSE_TO_SEC (2)
40 #define SS_ERROR_EVENT_CORE_FILE_POLL_TO_MS           (100)
41
42 // Do not change enumeration order.
43 // HMI hard codes error event square
44 // colors based on expected enum order.
45 enum EErrorEventPrio {                                            /* Higher number = higher priority.       */
46     eErrorEventPrioDiagLogRequest                = 8,
47     eErrorEventPrioUserInvokedCollectAllLogs     = 7,
48     eErrorEventPrioUserInvokedCollectScreenShot  = 6,
49     eErrorEventPrioUserInvokedCollectInterfaceunifiedLogs     = 5,
50     eErrorEventPrioModuleInvokedCollectDebugLogs = 4,
51     eErrorEventPrioUserInvokedUserForceReset     = 3,
52     eErrorEventPrioEelStorageFilePresent         = 2,
53     eErrorEventPrioEmmcLogsFilePresent           = 1,
54     eErrorEventPrioDefault                       = 0
55 };
56
57
58 #endif /* __SS_ERROR_EVENT_COMMON_LOCAL_H__ */  // NOLINT (build/header_guard)
59
60 /** @}*/
61 /** @}*/
62 /** @}*/
63