LibUsbDotNet 2.2.8
GetMaxPacketSize Method (deviceProfileHandle, endpoint)
Library ReferenceMonoLibUsbMonoUsbApiGetMaxPacketSize(MonoUsbProfileHandle, Byte)
LibUsbDotNet on SourceForge
Convenience function to retrieve the wMaxPacketSize value for a particular endpoint in the active device configuration.
Declaration Syntax
C#Visual BasicVisual C++
public static int GetMaxPacketSize(
	MonoUsbProfileHandle deviceProfileHandle,
	byte endpoint
)
Public Shared Function GetMaxPacketSize ( _
	deviceProfileHandle As MonoUsbProfileHandle, _
	endpoint As Byte _
) As Integer
public:
static int GetMaxPacketSize(
	[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
Remarks
Note: Member documentation was originally generated using the Libusb-1.0 API documentation: Device handling and enumeration

This function was originally intended to be of assistance when setting up isochronous transfers, but a design mistake resulted in this function instead. It simply returns the wMaxPacketSize value without considering its contents. If you're dealing with isochronous transfers, you probably want GetMaxIsoPacketSize(MonoUsbProfileHandle, Byte) instead.

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