Belkin F8E211 Guida Utente Pagina 100

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 107
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 99
usbd
_
urb
_
status() © 2007, QNX Software Systems GmbH & Co. KG.
Return status information on a URB
Synopsis:
#include <sys/usbdi.h>
int usbd_urb_status( struct usbd_urb *urb,
_uint32 *status,
_uint32 *len )
Arguments:
urb An opaque handle (from usbd
_
alloc
_
urb()).
status Completion status (see below).
len The actual length (in bytes) of the data transfer.
Library:
libusbdi
Description:
You use the usbd
_
urb
_
status() function to extract completion status and data-transfer
length from a URB.
Completion status
The status field contains the completion status information, which includes the
following flags:
USBD_STATUS_INPROG
The operation is in progress.
USBD_STATUS_CMP
The operation is complete.
USBD_STATUS_CMP_ERR
The operation is complete, but an error occurred.
USBD_STATUS_TIMEOUT
The operation timed out.
USBD_STATUS_ABORTED
The operation aborted.
USBD_STATUS_CRC_ERR
The last packet from the endpoint contained a CRC error.
86 Chapter 4 USB Library Reference September 10, 2007
Vedere la pagina 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 106 107

Commenti su questo manuale

Nessun commento