Lines Matching refs:USB

1 # @ohos.usbManager (USB Manager)
3USB device management functions, including USB device list query, bulk data transfer, control tran…
19 Obtains the list of USB devices connected to the host. If no device is connected, an empty list is …
21 **System capability**: SystemCapability.USB.USBManager
27 | Array<Readonly<[USBDevice](#usbdevice)>> | USB device list.|
91 Connects to the USB device based on the device information returned by **getDevices()**.
93 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
95 **System capability**: SystemCapability.USB.USBManager
101 …](#usbdevice) | Yes| USB device. The **busNum** and **devAddress** parameters obtained by **getDev…
107 | Readonly<[USBDevicePipe](#usbdevicepipe)> | USB device pipe for data transfer.|
111 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
140 **System capability**: SystemCapability.USB.USBManager
150 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
182 **System capability**: SystemCapability.USB.USBManager
192 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
224 **System capability**: SystemCapability.USB.USBManager
234 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
264 Claims a USB interface.
266 …all [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device list and USB interface…
268 **System capability**: SystemCapability.USB.USBManager
274 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
275 …terface](#usbinterface) | Yes| USB interface. You can use **getDevices** to obtain device informat…
276 …y claim the USB interface. Whether to forcibly claim a USB interface. The default value is **false…
280 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
290 | number | Returns **0** if the USB interface is successfully claimed; returns an error code otherw…
312 Releases a USB interface.
316 **System capability**: SystemCapability.USB.USBManager
322 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
323 …terface](#usbinterface) | Yes| USB interface. You can use **getDevices** to obtain device informat…
327 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
337 | number | Returns **0** if the USB interface is successfully released; returns an error code other…
362 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
364 **System capability**: SystemCapability.USB.USBManager
370 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
371 …n](#usbconfiguration) | Yes| USB configuration. You can use **getDevices** to obtain device inform…
375 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
385 | number | Returns **0** if the USB configuration is successfully set; returns an error code otherw…
407 Sets a USB interface.
409USB device list and interfaces, call [usbManager.requestRight](#usbmanagerrequestright) to request…
411 **System capability**: SystemCapability.USB.USBManager
417 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
418 …rface](#usbinterface) | Yes| USB interface. You can use **getDevices** to obtain device informat…
422 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
432 | number | Returns **0** if the USB interface is successfully set; returns an error code otherwise.|
455 Obtains the raw USB descriptor.
457 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
459 **System capability**: SystemCapability.USB.USBManager
465 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
469 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
479 | Uint8Array | Returns the raw USB descriptor if the operation is successful; returns **undefined**…
500 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
502 **System capability**: SystemCapability.USB.USBManager
508 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the bus…
512 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
522 | number | Returns the file descriptor of the USB device if the operation is successful; returns **…
543 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
549 **System capability**: SystemCapability.USB.USBManager
555 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe. You need to call **connectDevice**…
556 …s| Control transfer parameters. Set the parameters as required. For details, see the USB protocol.|
561 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
612 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
614 **System capability**: SystemCapability.USB.USBManager
620 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the USB
621 …s| Control transfer parameters. Set the parameters as required. For details, see the USB protocol.|
626 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
678USB device list and endpoints, call [usbManager.requestRight](#usbmanagerrequestright) to request …
680 **System capability**: SystemCapability.USB.USBManager
686 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe. You need to call **connectDevice**…
687USB endpoint, which is used to determine the USB interface for data transfer. You need to call **g…
693 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
708 // Call usbManager.getDevices to obtain a data set. Then, obtain a USB device and its access permis…
709 // Pass the obtained USB device as a parameter to usbManager.connectDevice. Then, call usbManager.c…
710 // Call usbManager.claimInterface to claim a USB interface. After that, call usbManager.bulkTransfe…
737 Closes a USB device pipe.
739 Before you do this, call [usbManager.getDevices](#usbmanagergetdevices) to obtain the USB device li…
741 **System capability**: SystemCapability.USB.USBManager
747 | pipe | [USBDevicePipe](#usbdevicepipe) | Yes| USB device pipe, which is used to determine the mes…
751 For details about the error codes, see [USB Service Error Codes](errorcode-usb.md).
761 | number | Returns **0** if the USB device pipe is closed successfully; returns an error code other…
779 Represents the USB endpoint from which data is sent or received. You can obtain the USB endpoint th…
781 **System capability**: SystemCapability.USB.USBManager
796 Represents a USB interface. One [USBConfiguration](#usbconfiguration) object can contain multiple *…
798 **System capability**: SystemCapability.USB.USBManager
802 | id | number | Yes|Unique ID of the USB interface.…
806 … | Yes|Settings for alternating between descriptors of the same USB interface.|
808 …rray<[USBEndpoint](#usbendpoint)> | Yes|Endpoints that belong to the USB interface. …
812 Represents the USB configuration. One [USBDevice](#usbdevice) can contain multiple **USBConfig** in…
814 **System capability**: SystemCapability.USB.USBManager
818 | id | number | Yes|Unique ID of the USB conf…
828 Represents the USB device information.
830 **System capability**: SystemCapability.USB.USBManager
850 Represents a USB device pipe, which is used to determine a USB device.
852 **System capability**: SystemCapability.USB.USBManager
863 **System capability**: SystemCapability.USB.USBManager
878 **System capability**: SystemCapability.USB.USBManager
893 **System capability**: SystemCapability.USB.USBManager
906 **System capability**: SystemCapability.USB.USBManager
918 **System capability**: SystemCapability.USB.USBManager