LibUsbDotNet 2.2.8
GetDescriptor Method (deviceHandle, descType, descIndex, data, length)
Library ReferenceMonoLibUsbMonoUsbApiGetDescriptor(MonoUsbDeviceHandle, Byte, Byte, Object, Int32)
LibUsbDotNet on SourceForge
Retrieve a descriptor from the default control pipe.
Declaration Syntax
C#Visual BasicVisual C++
public static int GetDescriptor(
	MonoUsbDeviceHandle deviceHandle,
	byte descType,
	byte descIndex,
	Object data,
	int length
Public Shared Function GetDescriptor ( _
	deviceHandle As MonoUsbDeviceHandle, _
	descType As Byte, _
	descIndex As Byte, _
	data As Object, _
	length As Integer _
) As Integer
static int GetDescriptor(
	MonoUsbDeviceHandle^ deviceHandle, 
	unsigned char descType, 
	unsigned char descIndex, 
	Object^ data, 
	int length
deviceHandle (MonoUsbDeviceHandle)
Retrieve a descriptor from the default control pipe.
descType (Byte)
The descriptor type, DescriptorType
descIndex (Byte)
The index of the descriptor to retrieve.
data (Object)
Output buffer for descriptor. This object is pinned using PinnedHandle.
length (Int32)
Size of data buffer.
Return Value
Number of bytes returned in data, or MonoUsbError code on failure.

This is a convenience function which formulates the appropriate control message to retrieve the descriptor.

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: USB descriptors

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (