MonoUsbTransfer Constructor (numIsoPackets)

LibUsbDotNet

LibUsbDotNet 2.2.8 MonoUsbTransfer Constructor (numIsoPackets)
Library ReferenceMonoLibUsb.TransferMonoUsbTransferMonoUsbTransfer(Int32)
LibUsbDotNet on SourceForge
Allocate a libusb transfer with a specified number of isochronous packet descriptors
Declaration Syntax
C# Visual Basic Visual C++
public MonoUsbTransfer(
	int numIsoPackets
)
Public Sub New ( _
	numIsoPackets As Integer _
)
public:
MonoUsbTransfer(
	int numIsoPackets
)
Parameters
numIsoPackets (Int32)
number of isochronous packet descriptors to allocate.
Remarks

The transfer is pre-initialized for you. When the new transfer is no longer needed, it should be freed with Free()()()().

Transfers intended for non-isochronous endpoints (e.g. control, bulk, interrupt) should specify an iso_packets count of zero.

For transfers intended for isochronous endpoints, specify an appropriate number of packet descriptors to be allocated as part of the transfer. The returned transfer is not specially initialized for isochronous I/O; you are still required to set the NumIsoPackets and Type fields accordingly.

It is safe to allocate a transfer with some isochronous packets and then use it on a non-isochronous endpoint. If you do this, ensure that at time of submission, NumIsoPackets is 0 and that type is set appropriately.

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)