LibUsbDotNet 2.2.8
FillInterrupt Method (devHandle, endpoint, buffer, length, callback, userData, timeout)
Library Reference ► MonoLibUsb.Transfer ► MonoUsbTransfer ► FillInterrupt(MonoUsbDeviceHandle, Byte, IntPtr, Int32, Delegate, IntPtr, Int32)
|
Helper function to populate the required MonoUsbTransfer properties for an interrupt transfer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void FillInterrupt( MonoUsbDeviceHandle devHandle, byte endpoint, IntPtr buffer, int length, Delegate callback, IntPtr userData, int timeout )
Public Sub FillInterrupt ( _ devHandle As MonoUsbDeviceHandle, _ endpoint As Byte, _ buffer As IntPtr, _ length As Integer, _ callback As Delegate, _ userData As IntPtr, _ timeout As Integer _ )
public: void FillInterrupt( MonoUsbDeviceHandle^ devHandle, unsigned char endpoint, IntPtr buffer, int length, Delegate^ callback, IntPtr userData, int timeout )
Parameters
- devHandle (MonoUsbDeviceHandle)
- handle of the device that will handle the transfer
- endpoint (Byte)
- address of the endpoint where this transfer will be sent
- buffer (IntPtr)
- data buffer
- length (Int32)
- length of data buffer
- callback (Delegate)
- callback function to be invoked on transfer completion
- userData (IntPtr)
- user data to pass to callback function
- timeout (Int32)
- timeout for the transfer in milliseconds
Remarks
Note:FillInterrupt(MonoUsbDeviceHandle, Byte, IntPtr, Int32, Delegate, IntPtr, Int32) is roughly equivalent to
libusb_fill_interrupt_transfer().