
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
Comentarios a estos manuales