Request arbitrary data from a USB device on the default control port.
'Declaration
Function ControlIn( _
ByVal As Short, _
ByVal As Short, _
ByVal As Short, _
ByVal As Short, _
ByVal As Short _
) As Byte()
'Usage
Dim instance As IUsbSession
Dim requestType As Short
Dim request As Short
Dim value As Short
Dim index As Short
Dim length As Short
Dim value() As Byte
value = instance.ControlIn(requestType, request, value, index, length)
Parameters
- requestType
- A bitmap field for defining the USB control port request. The
bitmap fields are defined by the USB specification. The direction bit must be
device-to-host.
- request
- Request ID for this transfer. The meaning of this value depends on .
- value
- The requested value for this transfer.
- index
- The interface or endpoint index number, depending on .
- length
- The length of the data in bytes to send to the device during the Data
stage. If this value is 0, then a zero-length byte array is returned from this method.
Return Value
The data received from the device.
Current with Keysight IO Libraries Suite 18