Belkin F8E211 Guía de usuario Pagina 104

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 114
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 103
usbd status() 2006, QNX Software Systems GmbH & Co. KG.
Get specific device status
Synopsis:
#include <sys/usbdi.h>
int usbd
status( struct usbd device *device,
uint16 rtype, uint16 index,
void *addr,
uint32 len )
Description:
You use the usbd status() function to get specific device status.
device An opaque handle used to identify the USB device.
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).
index This varies, depending on the request. It’s used for passing
a parameter to the device.
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.
EMSGSIZE Buffer too small for descriptor.
ENOMEM No memory for URB.
ENODEV Device was removed.
92 Chapter 4 USB Library Reference November 2, 2006
Vista de pagina 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 113 114

Comentarios a estos manuales

Sin comentarios