Belkin F8E211 Guia do Utilizador Página 98

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 114
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 113 114

Comentários a estes Manuais

Sem comentários