• 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_GET_DEVICE,
28         USB_FUN_GET_DEVICES,
29         USB_FUN_GET_CURRENT_FUNCTIONS,
30         USB_FUN_SET_CURRENT_FUNCTIONS,
31         USB_FUN_USB_FUNCTIONS_FROM_STRING,
32         USB_FUN_USB_FUNCTIONS_TO_STRING,
33         USB_FUN_CLAIM_INTERFACE,
34         USB_FUN_RELEASE_INTERFACE,
35         USB_FUN_BULK_TRANSFER_READ,
36         USB_FUN_BULK_TRANSFER_WRITE,
37         USB_FUN_CONTROL_TRANSFER,
38         USB_FUN_USB_CONTROL_TRANSFER,
39         USB_FUN_SET_ACTIVE_CONFIG,
40         USB_FUN_GET_ACTIVE_CONFIG,
41         USB_FUN_SET_INTERFACE,
42         USB_FUN_GET_PORTS,
43         USB_FUN_GET_SUPPORTED_MODES,
44         USB_FUN_SET_PORT_ROLE,
45         USB_FUN_REQUEST_QUEUE,
46         USB_FUN_REQUEST_WAIT,
47         USB_FUN_REQUEST_CANCEL,
48         USB_FUN_GET_DESCRIPTOR,
49         USB_FUN_GET_FILEDESCRIPTOR,
50         USB_FUN_CLOSE_DEVICE,
51         USB_FUN_BULK_AYSNC_READ,
52         USB_FUN_BULK_AYSNC_WRITE,
53         USB_FUN_BULK_AYSNC_CANCEL,
54         USB_FUN_REG_BULK_CALLBACK,
55         USB_FUN_UNREG_BULK_CALLBACK,
56         USB_FUN_ADD_RIGHT,
57         USB_FUN_DISABLE_GLOBAL_INTERFACE,
58         USB_FUN_DISABLE_DEVICE,
59         USB_FUN_DISABLE_INTERFACE_STORAGE,
60         USB_FUN_DISABLE_INTERFACE_TYPE,
61         USB_FUN_GET_DEVICE_SPEED,
62         USB_FUN_GET_DRIVER_ACTIVE_STATUS,
63 		USB_FUN_ADD_ACCESS_RIGHT,
64         USB_FUN_BULK_TRANSFER_READ_WITH_LENGTH,
65     };
66 } // namespace USB
67 } // namespace OHOS
68 
69 #endif // USB_SERVICE_IPC_INTERFACE_CODE_H
70