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_SET_ACTIVE_CONFIG, 39 USB_FUN_GET_ACTIVE_CONFIG, 40 USB_FUN_SET_INTERFACE, 41 USB_FUN_GET_PORTS, 42 USB_FUN_GET_SUPPORTED_MODES, 43 USB_FUN_SET_PORT_ROLE, 44 USB_FUN_REQUEST_QUEUE, 45 USB_FUN_REQUEST_WAIT, 46 USB_FUN_REQUEST_CANCEL, 47 USB_FUN_GET_DESCRIPTOR, 48 USB_FUN_GET_FILEDESCRIPTOR, 49 USB_FUN_CLOSE_DEVICE, 50 USB_FUN_BULK_AYSNC_READ, 51 USB_FUN_BULK_AYSNC_WRITE, 52 USB_FUN_BULK_AYSNC_CANCEL, 53 USB_FUN_REG_BULK_CALLBACK, 54 USB_FUN_UNREG_BULK_CALLBACK, 55 USB_FUN_ADD_RIGHT, 56 }; 57 } // namespace USB 58 } // namespace OHOS 59 60 #endif // USB_SERVICE_IPC_INTERFACE_CODE_H 61