Language
|
Description
|
C/C++
|
BOOL UsbSelectInterface(IN USB_DEVICE_HANDLE hUsb,
| IN ULONG MaximumTransfer = 0);
|
|
Delphi
|
function UsbSelectInterface(hUsb : USB_DEVICE_HANDLE;
InterfaceIndex : UCHAR;
AlternateIndex : UCHAR;
MaximumTransfer : ULONG {= 0}) : BOOL; stdcall;
|
VB
|
Function UsbSelectInterface (ByVal hUsb As Long, _
ByVal InterfaceIndex As Byte, _
ByVal AlternateIndex As Byte, _
ByVal MaximumTransfer As Long) As Boolean
|
Parameters
| Specifies device handle. This handle can be obtained with OpenRapidUsb.
|
| Device defined index of interface.
|
| Device defined alternate interface index.
|
| Optional parameter. Maximum pipe transfer request size in bytes for newly selected interface.
|
Return Value
| If function fails it return FALSE. To detect error call GetLastError function.
|
Description
| Use this function to select interface if device have more than one interface or interface alternate setting. Before calling this function stop all transfers and close all opened pipes with UsbPipeClose function. All opened pipe handles became invalid after interface selection.
|
|