• Home
  • Raw
  • Download

Lines Matching refs:USB

1 # USB Manager `<a name="EN-US_TOPIC_0000001124094823"></a>`
11 The following figure shows the USB service architecture.
13 **Figure 1** USB service architecture`<a name="fig15658513184019"></a>`
18 1. USB API: provides USB APIs that implement various basic functions, for example, query of the USB
19 2. USB Service: interacts with the HAL layer to receive, parse, and distribute data, manages foregr…
20USB HAL: provides driver capability APIs that can be directly called in user mode. The APIs are cl…
47 …ePipe &pip); | Opens a USB device to set up a …
48 … | Closes a USB device to release a…
49 … | Obtains the USB device list. …
50 … | Sets the current configuration of the USB device. …
51 …nterface &interface, bool force); | Claims a USB interface exclusive…
52 …nterface &interface); | Releases a USB interface. This is …
53 … | Sets the alternate settings for the specified USB interface. This all…
61 … | Checks whether the application has permission to access the USB device. …
62 … | Requests for permission to access the USB device. …
70 …FromString(std::string funcs); | Converts the string descriptor of a given USB function list to a …
71 …tring(int32_t funcs); | Converts the numeric mask combination of a given USB function list to a …
87 In this example, the USB device serves as the host and connects to the device to implement data tra…
89 1. Obtain the USB device list.
92 // Import the USB API package.
94 // Obtain the USB device list.
111 3. Open the USB device.
114 // Open the USB device, and obtain the device pipe for data transfer.
116 // Claim the USB interface.
117 … true); // Among the input arguments, interface refers to the one to be operated on the USB device.
147 5. Release the USB interface, and close the USB device.
156 In this example, the USB device is used as the device to set the ACM, ECM, and HDC functions.
158 1. Set the USB functions.