GetMaxIsoPacketSize Method (deviceProfileHandle, endpoint)

LibUsbDotNet

LibUsbDotNet 2.2.8 GetMaxIsoPacketSize Method (deviceProfileHandle, endpoint)
Library ReferenceMonoLibUsbMonoUsbApiGetMaxIsoPacketSize(MonoUsbProfileHandle, Byte)
LibUsbDotNet on SourceForge
Calculate the maximum packet size which a specific endpoint is capable is sending or receiving in the duration of 1 microframe.
Declaration Syntax
C# Visual Basic Visual C++
public static int GetMaxIsoPacketSize(
	MonoUsbProfileHandle deviceProfileHandle,
	byte endpoint
)
Public Shared Function GetMaxIsoPacketSize ( _
	deviceProfileHandle As MonoUsbProfileHandle, _
	endpoint As Byte _
) As Integer
public:
static int GetMaxIsoPacketSize(
	[InAttribute] MonoUsbProfileHandle^ deviceProfileHandle, 
	unsigned char endpoint
)
Parameters
deviceProfileHandle (MonoUsbProfileHandle)
A device profile handle.
endpoint (Byte)
Endpoint address to retrieve the max packet size for.
Return Value
The maximum packet size which can be sent/received on this endpoint.
Remarks

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.

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: Device handling and enumeration

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