Belkin F8E211 Uživatelská příručka Strana 94

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 107
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 93
usbd
_
status() © 2007, 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 )
Arguments:
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.
Library:
libusbdi
Description:
You use the usbd
_
status() function to get specific device status.
Returns:
EOK Success.
EMSGSIZE Buffer too small for descriptor.
ENOMEM No memory for URB.
ENODEV Device was removed.
Classification:
QNX Neutrino, QNX 4
80 Chapter 4 USB Library Reference September 10, 2007
Zobrazit stránku 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 106 107

Komentáře k této Příručce

Žádné komentáře