Belkin F8E211 Guía de usuario Pagina 96

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 95
usbd setup control() 2006, QNX Software Systems GmbH & Co. KG.
Set up a URB for a control transfer
Synopsis:
CAUTION: This function is still under development its synopsis
and other details shown here may change significantly!
!
#include <sys/usbdi.h>
usbd
setup control( struct usbd urb *urb, uint32 flags, uint16
request,
uint16 rtype, uint16 value, uint16 index, void *addr,
uint32 len );
Description:
This routine sets up a URB for a control 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.
request A device-specific request.
rtype Type of request (e.g.
USB RECIPIENT DEVICE,
USB RECIPIENT INTERFACE,
USB RECIPIENT ENDPOINT, USB RECIPIENT OTHER,
USB TYPE STANDARD, USB TYPE CLASS,
USB TYPE VENDOR).
value This varies, depending on the request. It’s used for
passing a parameter to the device.
index This varies, depending on the request. It’s used for
passing a parameter to the device.
84 Chapter 4 USB Library Reference November 2, 2006
Vista de pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 113 114

Comentarios a estos manuales

Sin comentarios