Language
|
Description
|
C/C++
|
BOOL UsbSetFeature(IN USB_DEVICE_HANDLE hUsb,
| IN RDUSB_REQUEST_RECIPIENT RequestRecipient,
|
| IN USHORT FeatureSelector,
|
|
Delphi
|
function UsbSetFeature(hUsb : USB_DEVICE_HANDLE;
RequestRecipient : RDUSB_Request_Recipient;
FeatureSelector : USHORT;
Index : USHORT) : BOOL; stdcall;
|
VB
|
Function UsbSetFeature (ByVal hUsb As Long, _
ByVal Recepient As Byte, _
ByVal FeatSelector As Byte, _
ByVal FeatIndex As Byte) As Boolean
|
Parameters
| Specifies device handle. This handle can be obtained with OpenRapidUsb.
|
| Specifies recipient of feature request.
|
| Specifies the USB-defined feature code that should be set on the target specified by RequestRecipient.
|
| For a feature request for an endpoint or interface, specifies the index of the endpoint or interface within the configuration descriptor. For the device, this must be zero.
|
Return Value
| If function fails it return FALSE. To detect error call GetLastError function.
|
Description
| UsbSetFeature sends request to set specified feature of USB device.
|
|