1/* 2 * Copyright (c) 2025 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/** 17 * @addtogroup HdiUsbDdk 18 * @{ 19 * 20 * @brief Provides USB DDK APIs to open and close USB interfaces, perform non-isochronous and isochronous\n 21 * data transfer over USB pipes, and implement control transfer and interrupt transfer, etc. 22 * @since 5.1 23 * @version 1.1 24 */ 25 26/** 27 * @file IUsbDdk.idl 28 * 29 * @brief Declares the USB DDK APIs used by the USB host to access USB devices. 30 * 31 * @since 5.1 32 * @version 1.1 33 */ 34 35package ohos.hdi.usb.ddk.v1_1; 36 37import ohos.hdi.usb.ddk.v1_1.UsbDdkTypes; 38import ohos.hdi.usb.ddk.v1_0.IUsbDdk; 39 40/** 41 * @brief Declares the USB DDK APIs used by the USB host to access USB devices. 42 * @since 5.1 43 * @version 1.1 44 */ 45interface IUsbDdk extends ohos.hdi.usb.ddk.v1_0.IUsbDdk 46{ 47 /** 48 * @brief Obtains usb devices. 49 * 50 * @param devices USB device array. 51 * @return <b>0</b> if the operation is successful; a negative value otherwise. 52 * @since 5.1 53 * @version 1.0 54 */ 55 GetDevices([out] List<unsigned long> deviceIds); 56 57 /** 58 * @brief Updates peripheral driver information. 59 * 60 * @param driverInfo Driver ability information. 61 * @return <b>0</b> if the operation is successful; a negative value otherwise. 62 * @since 5.1 63 * @version 1.0 64 */ 65 UpdateDriverInfo([in] struct DriverAbilityInfo driverInfo); 66 67 /** 68 * @brief Removes Driver information. 69 * 70 * @param driverUid Driver Uid. 71 * @return <b>0</b> if the operation is successful; a negative value otherwise. 72 * @since 5.1 73 * @version 1.0 74 */ 75 RemoveDriverInfo([in] String driverUid); 76} 77