• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef USB_SERVICE_IPC_INTERFACE_CODE_H
17 #define USB_SERVICE_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 4201 */
20 namespace OHOS {
21 namespace USB {
22     enum class UsbInterfaceCode {
23         USB_FUN_HAS_RIGHT = 0,
24         USB_FUN_REQUEST_RIGHT,
25         USB_FUN_REMOVE_RIGHT,
26         USB_FUN_OPEN_DEVICE,
27         USB_FUN_RESET_DEVICE,
28         USB_FUN_GET_DEVICE,
29         USB_FUN_GET_DEVICES,
30         USB_FUN_GET_CURRENT_FUNCTIONS,
31         USB_FUN_SET_CURRENT_FUNCTIONS,
32         USB_FUN_USB_FUNCTIONS_FROM_STRING,
33         USB_FUN_USB_FUNCTIONS_TO_STRING,
34         USB_FUN_CLAIM_INTERFACE,
35         USB_FUN_RELEASE_INTERFACE,
36         USB_FUN_BULK_TRANSFER_READ,
37         USB_FUN_BULK_TRANSFER_WRITE,
38         USB_FUN_CONTROL_TRANSFER,
39         USB_FUN_USB_CONTROL_TRANSFER,
40         USB_FUN_SET_ACTIVE_CONFIG,
41         USB_FUN_GET_ACTIVE_CONFIG,
42         USB_FUN_SET_INTERFACE,
43         USB_FUN_GET_PORTS,
44         USB_FUN_GET_SUPPORTED_MODES,
45         USB_FUN_SET_PORT_ROLE,
46         USB_FUN_REQUEST_QUEUE,
47         USB_FUN_REQUEST_WAIT,
48         USB_FUN_REQUEST_CANCEL,
49         USB_FUN_GET_DESCRIPTOR,
50         USB_FUN_GET_FILEDESCRIPTOR,
51         USB_FUN_CLOSE_DEVICE,
52         USB_FUN_SUBMIT_TRANSFER,
53         USB_FUN_CANCEL_TRANSFER,
54         USB_FUN_BULK_AYSNC_READ,
55         USB_FUN_BULK_AYSNC_WRITE,
56         USB_FUN_BULK_AYSNC_CANCEL,
57         USB_FUN_REG_BULK_CALLBACK,
58         USB_FUN_UNREG_BULK_CALLBACK,
59         USB_FUN_ADD_RIGHT,
60         USB_FUN_DISABLE_GLOBAL_INTERFACE,
61         USB_FUN_DISABLE_DEVICE,
62         USB_FUN_DISABLE_INTERFACE_TYPE,
63         USB_FUN_CLEAR_HALT,
64         USB_FUN_GET_DEVICE_SPEED,
65         USB_FUN_GET_DRIVER_ACTIVE_STATUS,
66 		USB_FUN_ADD_ACCESS_RIGHT,
67         USB_FUN_BULK_TRANSFER_READ_WITH_LENGTH,
68         USB_FUN_ATTACH_KERNEL_DRIVER,
69         USB_FUN_DETACH_KERNEL_DRIVER,
70         USB_FUN_GET_ACCESSORY_LIST,
71         USB_FUN_OPEN_ACCESSORY,
72         USB_FUN_CLOSE_ACCESSORY,
73         USB_FUN_HAS_ACCESSORY_RIGHT,
74         USB_FUN_REQUEST_ACCESSORY_RIGHT,
75         USB_FUN_REMOVE_ACCESSORY_RIGHT,
76         USB_FUN_ADD_ACCESSORY_RIGHT,
77         USB_FUN_SERIAL_OPEN,
78         USB_FUN_SERIAL_CLOSE,
79         USB_FUN_SERIAL_READ,
80         USB_FUN_SERIAL_WRITE,
81         USB_FUN_SERIAL_GET_ATTRIBUTE,
82         USB_FUN_SERIAL_SET_ATTRIBUTE,
83         USB_FUN_SERIAL_GET_PORTLIST,
84         USB_FUN_HAS_SERIAL_RIGHT,
85         USB_FUN_ADD_SERIAL_RIGHT,
86         USB_FUN_CANCEL_SERIAL_RIGHT,
87         USB_FUN_REQUEST_SERIAL_RIGHT
88     };
89 } // namespace USB
90 } // namespace OHOS
91 
92 #endif // USB_SERVICE_IPC_INTERFACE_CODE_H
93