LibUsbDotNet 2.2.8
GetConfigDescriptorByValue Method (deviceProfileHandle, bConfigurationValue, configHandle)
Library Reference ► MonoLibUsb ► MonoUsbApi ► GetConfigDescriptorByValue(MonoUsbProfileHandle, Byte, MonoUsbConfigHandle%)
|
Get a USB configuration descriptor with a specific bConfigurationValue.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int GetConfigDescriptorByValue( MonoUsbProfileHandle deviceProfileHandle, byte bConfigurationValue, out MonoUsbConfigHandle configHandle )
Public Shared Function GetConfigDescriptorByValue ( _ deviceProfileHandle As MonoUsbProfileHandle, _ bConfigurationValue As Byte, _ <OutAttribute> ByRef configHandle As MonoUsbConfigHandle _ ) As Integer
public: static int GetConfigDescriptorByValue( [InAttribute] MonoUsbProfileHandle^ deviceProfileHandle, unsigned char bConfigurationValue, [OutAttribute] MonoUsbConfigHandle^% configHandle )
Parameters
- deviceProfileHandle (MonoUsbProfileHandle)
- A device profile handle.
- bConfigurationValue (Byte)
- The bConfigurationValue 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