Belkin F8E211 Uživatelská příručka Strana 88

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 107
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 87
usbd
_
setup
_
interrupt() © 2007, QNX Software Systems GmbH & Co. KG.
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
continued. . .
74 Chapter 4 USB Library Reference September 10, 2007
Zobrazit stránku 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 106 107

Komentáře k této Příručce

Žádné komentáře