Transmits control data over a default control endpoint.
|C#||Visual Basic||Visual C++|
public virtual bool ControlTransfer( ref UsbSetupPacket setupPacket, IntPtr buffer, int bufferLength, out int lengthTransferred )
Public Overridable Function ControlTransfer ( _ ByRef setupPacket As UsbSetupPacket, _ buffer As IntPtr, _ bufferLength As Integer, _ <OutAttribute> ByRef lengthTransferred As Integer _ ) As Boolean
- setupPacket (UsbSetupPacket%)
- An 8-byte setup packet which contains parameters for the control request. See section 9.3 USB Device Requests of the Universal Serial Bus Specification Revision 2.0 for more information.
- buffer (IntPtr)
- Data to be sent/received from the device.
- bufferLength (Int32)
- Length of the buffer param.
- lengthTransferred (Int32%)
- Number of bytes sent or received (depends on the direction of the control transfer).
Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 184.108.40.206 (220.127.116.11)
True on success.