Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 8

usbd_string()

Get a string descriptor

Synopsis:

#include <sys/usbdi.h>

char *usbd_string( struct usbd_device *device, 
                   _uint8 index, 
                   int langid );

Arguments:

device
An opaque handle used to identify the USB device.
index
Index into the device's (optional) string table.
langid
Language ID. The usbd_languages_descriptor() function provides the supported langids for the device. If you specify 0, the usbd_string() function will select the first/only supported language.

Library:

libusbdi

Description:

The usbd_string() function lets you obtain a string from the USB device's table of strings.

Typically, the string table may contain the names of the vendor, the product, etc. The string table is optional.

Note that the strings are actually in Unicode/wide characters, so usb_string() also conveniently converts them to UTF-8 (byte stream) for you.

Note that usbd_string() places the result string in a static buffer that's reused every time the function is called.

Returns:

A pointer to the string in an internal static buffer, or NULL on error.

Classification:

QNX Neutrino, QNX 4

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

See also:

usbd_args_lookup(), usbd_configuration_descriptor(), usbd_device_lookup(), usbd_device_extra(), usbd_device_descriptor(), usbd_endpoint_descriptor(), usbd_hcd_info(), usbd_hub_descriptor(), usbd_interface_descriptor(), usbd_languages_descriptor(), usbd_parse_descriptors(), usbd_urb_status()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 144

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_string.html on line 144