|C#||Visual Basic||Visual C++|
Public Shared Function GetMaxIsoPacketSize ( _ deviceProfileHandle As MonoUsbProfileHandle, _ endpoint As Byte _ ) As Integer
Only the active configuration is examined. The calculation is based on the wMaxPacketSize field in the endpoint descriptor as described in section 9.6.6 in the USB 2.0 specifications.
If acting on an isochronous or interrupt endpoint, this function will multiply the value found in bits 0:10 by the number of transactions per microframe (determined by bits 11:12). Otherwise, this function just returns the numeric value found in bits 0:10.
This function is useful for setting up isochronous transfers, for example you might pass the return value from this function to libusb_set_iso_packet_lengths in order to set the length field of every isochronous packet in a transfer.