Lines Matching refs:USB
1 # USB DDK Development
5 …USB Driver Development Kit (USB DDK) is a toolset that helps you develop USB device drivers at the…
9 * The open APIs of the USB DDK can be used to develop drivers of non-standard USB peripherals.
11 * The open APIs of the USB DDK can be used only within the DriverExtensionAbility lifecycle.
13 * To use the open APIs of the USB DDK, you need to declare the matching ACL permissions in **module…
19 | OH_Usb_Init(void) | Initializes the USB DDK.|
20 | OH_Usb_Release(void) | Releases the USB DDK.|
24 …(uint64_t deviceId, uint8_t interfaceIndex, uint64_t *interfaceHandle) | Declares a USB interface.|
25 …t64_t interfaceHandle, uint8_t settingIndex) | Activates the alternate setting of a USB interface.|
26 …t64_t interfaceHandle, uint8_t \*settingIndex) | Obtains the alternate setting of a USB interface.|
29 | OH_Usb_ReleaseInterface(uint64_t interfaceHandle) | Releases a USB interface.|
34 For details about the APIs, see [USB DDK](../reference/apis-driverdevelopment-kit/_usb_ddk.md).
38 To develop a USB driver using the USB DDK, perform the following steps:
55 …Call **OH_Usb_Init** of **usb_ddk_api.h** to initialize the USB DDK, and call **OH_Usb_GetDeviceDe…
58 // Initialize the USB DDK.
66 2. Obtain a configuration descriptor, and declare the USB interface.
68 …descriptor **config**, and call **OH_Usb_ClaimInterface** to declare claiming of the USB interface.
74 // Obtain the index of the target USB interface based on the configuration descriptor.
76 // Declare the USB interface.
82 3. Obtain the activated alternate setting of a USB interface.
145 …l **OH_Usb_ReleaseInterface** to release the USB interface, , and call **OH_Usb_Release** to relea…
150 // Release the USB interface.
152 // Release the USB DDK.