Lines Matching +full:on +full:- +full:device
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 .Pq libusb, -lusb
39 library contains interfaces for directly managing a usb device.
52 argument is non-NULL, a pointer to the libusb context is stored at
54 This function returns 0 upon success or LIBUSB_ERROR on failure.
62 argument is non-NULL, a pointer to the libusb context is stored at
67 This function returns 0 upon success or a LIBUSB_ERROR value on failure.
79 This function will return non-zero if the given
85 .Bl -tag -width LIBUSB_CAP -offset indent
126 device in the list.
144 Returns the number of the bus contained by the device
149 Returns the port number which the device given by
159 the list of all port numbers from root for the device
168 Returns the device_address contained by the device
173 Returns the wire speed at which the device is connected.
179 Returns the wMaxPacketSize value on success, LIBUSB_ERROR_NOT_FOUND if the
180 endpoint does not exist and LIBUSB_ERROR_OTHERS on other failure.
184 Returns the packet size multiplied by the packet multiplier on success,
186 LIBUSB_ERROR_OTHERS on other failure.
190 Increment the reference counter of the device
195 Decrement the reference counter of the device
200 Open a device and obtain a device_handle.
201 Returns 0 on success,
202 LIBUSB_ERROR_NO_MEM on memory allocation problems, LIBUSB_ERROR_ACCESS
203 on permissions problems, LIBUSB_ERROR_NO_DEVICE if the device has been
204 disconnected and a LIBUSB_ERROR code on other errors.
208 A convenience function to open a device by vendor and product IDs
212 Returns NULL on error.
216 Close a device handle.
220 Get the device contained by devh.
221 Returns NULL on error.
227 on success, LIBUSB_ERROR_NO_DEVICE if the device has been disconnected
228 and a LIBUSB_ERROR code on error.
234 for the device contained by
236 This function returns 0 on success, LIBUSB_ERROR_NOT_FOUND if the requested
238 claimed, LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and a
239 LIBUSB_ERROR code on failure.
245 This is a non-blocking function.
246 It returns 0 on success, LIBUSB_ERROR_NOT_FOUND
248 driver has claimed the interface, LIBUSB_ERROR_NO_DEVICE if the device has
249 been disconnected and a LIBUSB_ERROR code on failure.
254 All the claimed interfaces on a device must be released
255 before closing the device.
256 Returns 0 on success, LIBUSB_ERROR_NOT_FOUND if the
257 interface was not claimed, LIBUSB_ERROR_NO_DEVICE if the device has been
258 disconnected and LIBUSB_ERROR on failure.
263 Returns 0 on success,
265 setting does not exist, LIBUSB_ERROR_NO_DEVICE if the device has been
266 disconnected and a LIBUSB_ERROR code on failure.
271 Returns 0 on success, LIBUSB_ERROR_NOT_FOUND
272 if the endpoint does not exist, LIBUSB_ERROR_NO_DEVICE if the device has been
273 disconnected and a LIBUSB_ERROR code on failure.
277 Perform an USB port reset for an usb device.
278 Returns 0 on success,
279 LIBUSB_ERROR_NOT_FOUND if re-enumeration is required or if the device has
280 been disconnected and a LIBUSB_ERROR code on failure.
284 Test if the USB device is still connected.
285 Returns 0 on success,
287 code on failure.
291 Determine if a driver is active on a interface.
294 if the device has been disconnected and a LIBUSB_ERROR code on failure.
302 .Fa device
309 Returns 0 on success, LIBUSB_ERROR_NOT_FOUND if no kernel driver is attached
312 This function is non-portable.
315 is only zero terminated on success.
324 Returns 0 on success, LIBUSB_ERROR_NOT_FOUND if no kernel driver was active,
326 LIBUSB_ERROR_NO_DEVICE if the device has been disconnected
327 and a LIBUSB_ERROR code on failure.
328 This function is non-portable.
332 Re-attach an interface kernel driver that was previously detached.
333 Returns 0 on success,
336 if the device has been disconnected, LIBUSB_ERROR_BUSY if the driver cannot be
338 LIBUSB_ERROR code on failure.
344 When the interface is restored the kernel driver is allowed to be re-attached.
347 argument is non-zero the feature is enabled.
349 Returns 0 on success and a LIBUSB_ERROR code on
354 Get the USB device descriptor for the device
356 This is a non-blocking function.
357 Returns 0 on success and a LIBUSB_ERROR code on
363 Returns 0 on
364 success, LIBUSB_ERROR_NOT_FOUND if the device is in
366 and a LIBUSB_ERROR code on error.
370 Get a USB configuration descriptor based on its index
372 Returns 0 on success, LIBUSB_ERROR_NOT_FOUND if the configuration does not exist
373 and a LIBUSB_ERROR code on error.
379 a non-blocking function which does not send a request through the device.
381 on success, LIBUSB_ERROR_NOT_FOUND if the configuration
383 LIBUSB_ERROR code on failure.
392 Returns the number of bytes actually transferred on success
393 or a negative LIBUSB_ERROR code on failure.
399 on success and a LIBUSB_ERROR code on failure.
409 On success the pointer to resulting descriptor is stored at the location given by
411 Returns zero on success and a LIBUSB_ERROR code on failure.
412 On success the parsed USB 3.0 endpoint companion descriptor must be
424 Returns zero on success and a LIBUSB_ERROR code on failure.
425 On success the parsed USB 3.0 endpoint companion descriptor must be
435 This function queries the USB device given by
439 Returns zero on success and a LIBUSB_ERROR code on failure.
440 On success the parsed BOS descriptor must be
449 On success the pointer to resulting descriptor is stored at the location given by
451 Returns zero on success and a LIBUSB_ERROR code on failure.
452 On success the parsed BOS descriptor must be freed using the
466 Returns zero on success and a LIBUSB_ERROR code on failure.
467 On success the parsed USB 2.0 extension descriptor must be freed using the
477 This function parses the SuperSpeed device capability descriptor from the descriptor given by
481 Returns zero on success and a LIBUSB_ERROR code on failure.
482 On success the parsed SuperSpeed device capability descriptor must be freed using the
487 This function is NULL safe and frees a parsed SuperSpeed device capability descriptor given by
496 Returns zero on success and a LIBUSB_ERROR code on failure.
497 On success the parsed container ID descriptor must be freed using the
510 Returns NULL on error.
519 Returns 0 on success, LIBUSB_ERROR_NO_DEVICE if
520 the device has been disconnected and a
521 LIBUSB_ERROR code on other failure.
526 Returns 0 on success and a LIBUSB_ERROR code on failure.
532 transferred on success, in the range from and including zero up to and
535 On error a LIBUSB_ERROR code is returned, for example
538 device has been disconnected and another LIBUSB_ERROR code on other failures.
546 Returns 0 on success, LIBUSB_ERROR_TIMEOUT
548 supported, LIBUSB_ERROR_OVERFLOW if the device offered more data,
549 LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and
550 a LIBUSB_ERROR code on other failure.
557 Returns 0 on success, LIBUSB_ERROR_TIMEOUT
559 supported, LIBUSB_ERROR_OVERFLOW if the device offered more data,
560 LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and
561 a LIBUSB_ERROR code on other failure.
567 needed to use so-called USB streams.
570 This function returns 0 on success or a LIBUSB_ERROR code on failure.
575 Returns 0 on success or a LIBUSB_ERROR code on failure.
600 on
663 argument to non-zero.
668 Returns 0 on success, or a LIBUSB_ERROR code on failure or timeout.
679 argument to non-zero.
680 Returns 0 on success, or a LIBUSB_ERROR code on failure.
686 Returns 0 on success, or a
687 LIBUSB_ERROR code on failure or timeout.
693 on success and a LIBUSB_ERROR code on failure.
706 code on failure or timeout.
718 Returns a NULL-terminated list on success or NULL on failure.
733 arguments can be set to LIBUSB_HOTPLUG_MATCH_ANY to match any value in the USB device descriptor.
743 This function returns 0 upon success or a LIBUSB_ERROR code on failure.
746 .Fn libusb_hotplug_callback_fn "libusb_context *ctx" "libusb_device *device" "libusb_hotplug_event event" "void *user_data"
748 If this function returns non-zero, the filter is removed.