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


Home
QNX Community Resources
QNX Documentation Library
usbd_setup_interrupt

usbd_setup_interrupt

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

usbd_setup_interrupt()

Set up a URB for an interrupt transfer

Synopsis:

#include <sys/usbdi.h>

int usbd_setup_interrupt( struct usbd_urb *urb,
                          _uint32 flags,
                          void *addr,
                          _uint32 len );

Arguments:

urb
An opaque handle (from usbd_alloc_urb()).
flags
One of the following:
  • URB_DIR_IN--specify incoming (device-to-PC) transfer.
  • URB_DIR_OUT--specify outgoing (PC-to-device) transfer.
  • URB_DIR_NONE--don't specify the direction.

You can optionally OR in the following:

  • URB_SHORT_XFER_OK--allow short transfers.
addr
The address for the start of the transfer. You must use the buffer allocated by usbd_alloc().
len
The length (in bytes) of the data transfer.

Library:

libusbdi

Description:

This routine sets up a URB for an interrupt transfer.

Returns:

EOK
Success.

Classification:

QNX Neutrino, QNX 4

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

See also:

usbd_setup_bulk(), usbd_setup_control(), usbd_setup_isochronous(), usbd_setup_vendor()