1bc2ed2b3Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2bc2ed2b3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3bc2ed2b3Sopenharmony_ci# you may not use this file except in compliance with the License.
4bc2ed2b3Sopenharmony_ci# You may obtain a copy of the License at
5bc2ed2b3Sopenharmony_ci#
6bc2ed2b3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7bc2ed2b3Sopenharmony_ci#
8bc2ed2b3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9bc2ed2b3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10bc2ed2b3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11bc2ed2b3Sopenharmony_ci# See the License for the specific language governing permissions and
12bc2ed2b3Sopenharmony_ci# limitations under the License.
13bc2ed2b3Sopenharmony_ci
14bc2ed2b3Sopenharmony_cidomain: NFC
15bc2ed2b3Sopenharmony_ci
16bc2ed2b3Sopenharmony_ciFIRMWARE_UPDATE:
17bc2ed2b3Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of updating firmware}
18bc2ed2b3Sopenharmony_ci  FAILED_FIRMWARE_UPDATE_CNT: {type: INT16, desc: count when fail to update firmware}
19bc2ed2b3Sopenharmony_ci  REQUEST_FIRMWARE_UPDATE_CNT: {type: INT16, desc: count when update firmware}
20bc2ed2b3Sopenharmony_ci
21bc2ed2b3Sopenharmony_ciOPEN_AND_CLOSE:
22bc2ed2b3Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of opening and closing NFC}
23bc2ed2b3Sopenharmony_ci  CLOSE_FAILED_CNT: {type: INT16, desc: count when fail to close NFC}
24bc2ed2b3Sopenharmony_ci  CLOSE_REQUEST_CNT: {type: INT16, desc: count when close NFC}
25bc2ed2b3Sopenharmony_ci  OPEN_FAILED_CNT: {type: INT16, desc: count when fail to open NFC}
26bc2ed2b3Sopenharmony_ci  OPEN_REQUEST_CNT: {type: INT16, desc: count when open NFC}
27bc2ed2b3Sopenharmony_ci
28bc2ed2b3Sopenharmony_ciOPERATION_FAILED:
29bc2ed2b3Sopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: record when NFC functions fail}
30bc2ed2b3Sopenharmony_ci  APP_PACKAGE_NAME: {type: STRING, desc: app triggered by current event}
31bc2ed2b3Sopenharmony_ci  CURRENT_DEFAULT_ROUTE: {type: INT16, desc: current default route}
32bc2ed2b3Sopenharmony_ci  CURRENT_FIRMWARE_VERSION: {type: STRING, desc: current version of firmware}
33bc2ed2b3Sopenharmony_ci  CURRENT_NFC_STATE: {type: INT16, desc: current status of NFC}
34bc2ed2b3Sopenharmony_ci  CURRENT_PASSIVE_LISTEN_STATE: {type: INT16, desc: current status of passive listen}
35bc2ed2b3Sopenharmony_ci  CURRENT_SCREEN_STATE: {type: INT16, desc: current status of screen}
36bc2ed2b3Sopenharmony_ci  MAIN_ERROR_CODE: {type: INT16, desc: refer to different types of failed events}
37bc2ed2b3Sopenharmony_ci  SUB_ERROR_CODE: {type: INT16, desc: refer to different reasons of failed events}
38bc2ed2b3Sopenharmony_ci
39bc2ed2b3Sopenharmony_ciPASSIVE_LISTEN:
40bc2ed2b3Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of turning on NFC passive listen mode}
41bc2ed2b3Sopenharmony_ci  FAILED_PASSIVE_LISTEN_CNT: {type: INT16, desc: count when fail to turn on NFC passive listen mode}
42bc2ed2b3Sopenharmony_ci  REQUEST_PASSIVE_LISTEN_CNT: {type: INT16, desc: count when turn on NFC passive listen mode}
43bc2ed2b3Sopenharmony_ci
44bc2ed2b3Sopenharmony_ciTAG_FOUND:
45bc2ed2b3Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: record the event and types when NFC tag found}
46bc2ed2b3Sopenharmony_ci  TOTAL_TAG_FOUND_CNT: {type: INT16, desc: count when NFC tag found}
47bc2ed2b3Sopenharmony_ci  TYPE_A_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type A}
48bc2ed2b3Sopenharmony_ci  TYPE_B_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type B}
49bc2ed2b3Sopenharmony_ci  TYPE_F_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type F}
50bc2ed2b3Sopenharmony_ci  TYPE_V_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type V}
51