142103316Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
242103316Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
342103316Sopenharmony_ci# you may not use this file except in compliance with the License.
442103316Sopenharmony_ci# You may obtain a copy of the License at
542103316Sopenharmony_ci#
642103316Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
742103316Sopenharmony_ci#
842103316Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
942103316Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1042103316Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1142103316Sopenharmony_ci# See the License for the specific language governing permissions and
1242103316Sopenharmony_ci# limitations under the License.
1342103316Sopenharmony_ci
1442103316Sopenharmony_cidomain: USB
1542103316Sopenharmony_ci
1642103316Sopenharmony_ciPLUG_IN_OUT_HOST_MODE:
1742103316Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInHostMode}
1842103316Sopenharmony_ci  DEVICE_NAME: {type: STRING, desc: device name}
1942103316Sopenharmony_ci  DEVICE_PROTOCOL: {type: INT32, desc: device protocol}
2042103316Sopenharmony_ci  DEVICE_SUBCLASS: {type: INT32, desc: device subclass}
2142103316Sopenharmony_ci  DEVICE_CLASS: {type: INT32, desc: device class}
2242103316Sopenharmony_ci  DEVICE_CLASS_DESCRIPTION: {type: STRING, desc: device class description}
2342103316Sopenharmony_ci  INTERFACE_CLASS_DESCRIPTION: {type: STRING, desc: interface class description}
2442103316Sopenharmony_ci  VENDOR_ID: {type: INT32, desc: vendor id}
2542103316Sopenharmony_ci  PRODUCT_ID: {type: INT32, desc: product id}
2642103316Sopenharmony_ci  VERSION: {type: STRING, desc: device version}
2742103316Sopenharmony_ci  EVENT_NAME: {type: STRING, desc: event name}
2842103316Sopenharmony_ci
2942103316Sopenharmony_ciPLUG_IN_OUT_DEVICE_MODE:
3042103316Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInDeviceMode}
3142103316Sopenharmony_ci  CURRENT_FUNCTIONS: {type: INT32, desc: current functios}
3242103316Sopenharmony_ci  CONNECTED: {type: BOOL, desc: event name}
3342103316Sopenharmony_ci
3442103316Sopenharmony_ciFUNCTION_CHANGED:
3542103316Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDeviceFunctionChanged}
3642103316Sopenharmony_ci  CURRENT_FUNCTION: {type: INT32, desc: current function}
3742103316Sopenharmony_ci  UPDATE_FUNCTION: {type: INT32, desc: update function}
3842103316Sopenharmony_ci
3942103316Sopenharmony_ciPORT_ROLE_CHANGED:
4042103316Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbPortRoleChanged}
4142103316Sopenharmony_ci  CURRENT_POWERROLE: {type: INT32, desc: current powerrole}
4242103316Sopenharmony_ci  UPDATE_POWERROLE: {type: INT32, desc: update powerrole}
4342103316Sopenharmony_ci  CURRENT_DATAROLE: {type: INT32, desc: current datarole}
4442103316Sopenharmony_ci  UPDATE_DATAROLE: {type: INT32, desc: update datarole}
4542103316Sopenharmony_ci
4642103316Sopenharmony_ciUSB_MANAGE_TRANSFOR_FAULT:
4742103316Sopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, tag: UsbManager, desc: Usb Transfor interface happen fault}
4842103316Sopenharmony_ci  INTFACE_NAME: {type: STRING, desc: interface name}
4942103316Sopenharmony_ci  BUS_NUM: {type: INT32, desc: bus num}
5042103316Sopenharmony_ci  DEV_ADDR: {type: INT32, desc: dev addr}
5142103316Sopenharmony_ci  INFT_ID: {type: INT32, desc: interface id}
5242103316Sopenharmony_ci  ENDPOINTT_ID: {type: INT32, desc: endpoint id}
5342103316Sopenharmony_ci  FAIL_REASON: {type: INT32, desc: fail reason}