Get a USB configuration descriptor based on its index.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int GetConfigDescriptor( MonoUsbProfileHandle deviceProfileHandle, byte configIndex, out MonoUsbConfigHandle configHandle )
Public Shared Function GetConfigDescriptor ( _ deviceProfileHandle As MonoUsbProfileHandle, _ configIndex As Byte, _ <OutAttribute> ByRef configHandle As MonoUsbConfigHandle _ ) As Integer
public: static int GetConfigDescriptor( [InAttribute] MonoUsbProfileHandle^ deviceProfileHandle, unsigned char configIndex, [OutAttribute] MonoUsbConfigHandle^% configHandle )
Parameters
- deviceProfileHandle (MonoUsbProfileHandle)
- A device profile handle.
- configIndex (Byte)
- The index of the configuration you wish to retrieve.
- configHandle (MonoUsbConfigHandle%)
- A config handle.
Return Value
- 0 on success
- ErrorNotFound if the device is in unconfigured state
- another MonoUsbError code on error
Remarks
Note:This is a non-blocking function which does not involve any requests being sent to the device.
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
USB descriptors