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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 63
usbd feature() 2006, QNX Software Systems GmbH & Co. KG.
Control a feature for a USB device.
Synopsis:
#include <sys/usbdi.h>
int usbd
feature( struct usbd device *device,
int set,
uint16 feature,
uint16 rtype, uint16 index );
Description:
The usbd feature() function lets you control a specific feature on a
USB device.
device An opaque handle used to identify the USB device.
set Set or clear a feature on the USB device.
feature A specific feature on the 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.
Returns:
EOK Success.
ENOMEM No memory for URB.
ENODEV Device was removed.
EIO I/O error on USB device.
52 Chapter 4 USB Library Reference November 2, 2006
Zobrazit stránku 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 113 114

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

Žádné komentáře