Belkin F8E211 Guía de usuario Pagina 102

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 101
usbd setup vendor() 2006, QNX Software Systems GmbH & Co. KG.
Set up a URB for a vendor-specific transfer
Synopsis:
#include <sys/usbdi.h>
int usbd
setup vendor( 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 vendor-specific transfer.
For this release of the USB SDK, vendor requests are synchronous
only. Therefore, the func parameter in usbd
io() must be NULL.
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.
90 Chapter 4 USB Library Reference November 2, 2006
Vista de pagina 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 113 114

Comentarios a estos manuales

Sin comentarios