Select the interface for a USB device
#include <sys/usbdi.h>
int usbd_select_interface( struct usbd_device *device,
_uint8 ifc, _uint8 alt );
You use the usbd_select_interface() function to
select the interface for a USB device.
- device
- An opaque handle used to identify the USB device.
- ifc
- Interface identifier (bInterfaceNumber).
- alt
- Alternate identifier (bAlternateSetting).
- EOK
- Success.
- ENOMEM
- No memory for URB.
- ENODEV
- Device was removed.
QNX 6, QNX 4
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
usbd_select_config()