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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 97
usbd setup interrupt() 2006, 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 );
Description:
This routine sets up a URB for an interrupt transfer.
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 direction.
URB SHORT XFER OK—Allow short transfers.
addr Address for start of transfer — you must use the buffer
allocated by usbd
alloc().
len The length (in bytes) of the data transfer.
Returns:
EOK Success.
Classification:
QNX Neutrino, QNX 4
86 Chapter 4 USB Library Reference November 2, 2006
Zobrazit stránku 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 113 114

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

Žádné komentáře