Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
usbd_select_config

usbd_select_config

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

usbd_select_config()

Select the configuration for a USB device

Synopsis:

#include <sys/usbdi.h>

int usbd_select_config( struct usbd_device *device, 
                        _uint8 cfg );

Arguments:

device
An opaque handle used to identify the USB device.
cfg
The device's configuration identifier (bConfigurationValue).

Library:

libusbdi

Description:

You use the usbd_select_config() function to select the configuration for a USB device.

Returns:

EOK
Success.
ENOMEM
No memory for URB.
ENODEV
Device was removed.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

usbd_select_interface()