LibUsbDotNet 2.2.8
GetMaxPacketSize Method (deviceProfileHandle, endpoint)
Library Reference ► MonoLibUsb ► MonoUsbApi ► GetMaxPacketSize(MonoUsbProfileHandle, Byte)
|
![]() |
Convenience function to retrieve the wMaxPacketSize value for a particular endpoint in the active device configuration.

C# | Visual Basic | Visual 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 )

- deviceProfileHandle (MonoUsbProfileHandle)
- A device profile handle.
- endpoint (Byte)
- Endpoint address to retrieve the max packet size for.

The wMaxPacketSize


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.