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_io.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_io.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_io.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_io.html on line 8
Submit a previously set up URB to the USB stack
#include <sys/usbdi.h>
int usbd_io( struct usbd_urb *urb,
struct usbd_pipe *pipe,
void (*func)(struct usbd_urb *,
struct usbd_pipe *, void *),
void *handle,
_uint32 timeout );
- urb
- A pointer to a USB Request Block.
- pipe
- An opaque handle returned by usbd_open_pipe().
- func
- Callback at I/O completion, given URB, pipe, plus handle.
- handle
- User data.
- timeout
- A value (in milliseconds) or USBD_TIME_DEFAULT or USBD_TIME_INFINITY.
libusbdi
This routine submits a previously set up URB to the USB
stack. The URB would have been set up from one of these
functions:
|
For this release of the USB DDK, vendor requests are
synchronous only. Therefore, the func
parameter in usbd_io() must be NULL. |
The usbd_io() function is the one that actually
makes the data transfer happen; the setup functions simply
set up the URB for the data transfer.
- EBADF
- Improper usbd_connect() call.
- EINVAL
- Improper usbd_connect() call.
- ENODEV
- Device was removed.
QNX Neutrino, QNX 4
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
usbd_descriptor(),
usbd_feature(),
usbd_setup_control(),
usbd_setup_bulk(),
usbd_setup_interrupt(),
usbd_setup_isochronous(),
usbd_setup_vendor(),
usbd_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_io.html on line 175
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_io.html on line 175