Belkin F8E211 Guía de usuario Pagina 76

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 75
usbd io() 2006, QNX Software Systems GmbH & Co. KG.
Submit a previously set up URB to the USB stack
Synopsis:
#include <sys/usbdi.h>
int usbd
io( struct usbd urb *urb,
struct usbd
pipe *pipe,
void (*func)(struct usbd
urb *,
struct usbd
pipe *, void *),
void *handle,
uint32 timeout );
Description:
This routine submits a previously set up URB to the USB stack. The
URB would have been set up from one of these functions:
usbd setup bulk()
usbd setup control()
usbd setup interrupt()
usbd setup isochronous()
usbd setup vendor()
For this release of the USB SDK, vendor requests are synchronous
only. Therefore, the func parameter in usbd
io() must be NULL.
The usbd io() function is the one that actually makes the data transfer
happen; the setup functions simply set up the URB for the data
transfer.
pipe An opaque handle returned by usbd
open pipe().
func Callback at I/O completion, given URB, pipe, plus
handle.
handle User data.
timeout A value (in milliseconds) or
USBD TIME DEFAULT or
USBD TIME INFINITY.
64 Chapter 4 USB Library Reference November 2, 2006
Vista de pagina 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 113 114

Comentarios a estos manuales

Sin comentarios