Allocates memory and sets up a control setup packet.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public MonoUsbControlSetupHandle( byte requestType, byte request, short value, short index, short length )
Public Sub New ( _ requestType As Byte, _ request As Byte, _ value As Short, _ index As Short, _ length As Short _ )
public: MonoUsbControlSetupHandle( unsigned char requestType, unsigned char request, short value, short index, short length )
Parameters
Remarks
This constructor is used when:
- requestType has the Direction_In flag and this request will not contain extra data (just the setup packet).
- requestType does not have the Direction_In flag.
Note:
This contructor is similar to
libusb_fill_control_setup().
Allocates SETUP_PACKET_SIZE + length for the setup packet. The setup packet is stored first then the control data.