LibUsbDotNet 2.2.8
MonoUsbControlSetupHandle Constructor (requestType, request, value, index, data, length)
Library ReferenceMonoLibUsb.TransferMonoUsbControlSetupHandleMonoUsbControlSetupHandle(Byte, Byte, Int16, Int16, Object, Int32)
LibUsbDotNet on SourceForge
Allocates memory and sets up a control setup packet. Copies control data into the control data buffer
Declaration Syntax
C#Visual BasicVisual C++
public MonoUsbControlSetupHandle(
	byte requestType,
	byte request,
	short value,
	short index,
	Object data,
	int length
Public Sub New ( _
	requestType As Byte, _
	request As Byte, _
	value As Short, _
	index As Short, _
	data As Object, _
	length As Integer _
	unsigned char requestType, 
	unsigned char request, 
	short value, 
	short index, 
	Object^ data, 
	int length
requestType (Byte)
The request type field for the setup packet.
request (Byte)
The request field for the setup packet.
value (Int16)
The value field for the setup packet
index (Int16)
The index field for the setup packet.
data (Object)
The control data buffer to copy into the setup packet.
length (Int32)
Size of data in bytes. This value is also used for the wLength field of the setup packet.

This constructor is used when requestType has the Direction_In flag and this request will contain control data (more than just the setup packet).

Allocates SETUP_PACKET_SIZE + data.Length for the setup packet. The setup packet is stored first then the control data.

The data array is copied into the setup packet starting at SETUP_PACKET_SIZE.

Note: This contructor is similar to libusb_fill_control_setup().

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (