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()