USBDeviceControlOut Method (Byte, Byte, Int32, Int32, Byte) |
Initiates a control transfer over the default control endpoint. The request should have an OUT direction (specified by the highest bit
of the requestType parameter).
Namespace:
MadWizard.WinUSBNet
Assembly:
WinUSBNet (in WinUSBNet.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public void ControlOut(
byte requestType,
byte request,
int value,
int index,
byte[] buffer
)
Public Sub ControlOut (
requestType As Byte,
request As Byte,
value As Integer,
index As Integer,
buffer As Byte()
)
public:
void ControlOut(
unsigned char requestType,
unsigned char request,
int value,
int index,
array<unsigned char>^ buffer
)
Parameters
- requestType
- Type: SystemByte
The setup packet request type. The request type must specify the OUT direction (highest bit cleared). - request
- Type: SystemByte
The setup packet device request. - value
- Type: SystemInt32
The value member in the setup packet. Its meaning depends on the request. Value should be between zero and 65535 (0xFFFF). - index
- Type: SystemInt32
The index member in the setup packet. Its meaning depends on the request. Index should be between zero and 65535 (0xFFFF). - buffer
- Type: SystemByte
A buffer containing the data to transfer in the data stage. The complete buffer is transfered. The setup packet's length
parameter is set to the length of this buffer.
See Also