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_open_pipe.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_open_pipe.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_open_pipe.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_open_pipe.html on line 8

usbd_open_pipe()

Initialize the pipe described by the device or endpoint descriptor

Synopsis:

#include <sys/usbdi.h>

int usbd_open_pipe( struct usbd_device *device, 
                    usbd_descriptors_t *desc, 
                    struct usbd_pipe **pipe ); 

Arguments:

device
An opaque handle used to identify the USB device.
desc
A pointer to the device or endpoint descriptor that was returned from usbd_parse_descriptors().
pipe
An opaque handle returned by usbd_open_pipe().

Library:

libusbdi

Description:

You use the usbd_open_pipe() function to initialize the pipe described by the endpoint descriptor.

Returns:

EOK
Success.
EINVAL
The descriptor isn't a device or endpoint.
ENOMEM
No memory for internal pipe structures.

Classification:

QNX Neutrino, QNX 4

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

See also:

usbd_abort_pipe(), usbd_close_pipe(), usbd_pipe_endpoint(), usbd_reset_pipe()


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_open_pipe.html on line 129

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_open_pipe.html on line 129