Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
usbd_select_interface()
Select the interface for a USB device
Synopsis:
#include <sys/usbdi.h>
int usbd_select_interface( struct usbd_device *device,
_uint8 ifc,
_uint8 alt );
Arguments:
- device
- An opaque handle used to identify the USB device.
- ifc
- Interface identifier (bInterfaceNumber).
- alt
- Alternate identifier (bAlternateSetting).
Library:
libusbdi
Description:
You use the usbd_select_interface() function to select the interface for a USB device.
Returns:
- EOK
- Success.
- ENOMEM
- No memory for URB.
- ENODEV
- Device was removed.
Classification:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](prev.gif)
![[Contents]](contents.gif)
![[Index]](keyword_index.gif)
![[Next]](next.gif)