LibUsbDotNet 2.2.8
IUsbInterface Interface
Library ReferenceLibUsbDotNetIUsbInterface
LibUsbDotNet on SourceForge
The IUsbInterface interface contains members needed communicate with an interface of a usb device.
Declaration Syntax
C#Visual BasicVisual C++
public interface IUsbInterface
Public Interface IUsbInterface
public interface class IUsbInterface
Members
All MembersMethodsProperties



IconMemberDescription
ActiveEndpoints
A list of endpoints that have beened opened by this UsbDevice class.

Close()()()()
Closes and frees device resources. Once closed the device cannot be reopened. A new UsbDevice class must be obtained using the UsbGlobals class.

Configs
Gets the available configurations for this UsbDevice

ControlTransfer(UsbSetupPacket%, IntPtr, Int32, Int32%)
Sends/Receives an IO control message to endpoint 0.

ControlTransfer(UsbSetupPacket%, Object, Int32, Int32%)
Transmits io control message to endpoint 0.

DriverMode
Returns the DriverMode this USB device is using.

GetDescriptor(Byte, Byte, Int16, IntPtr, Int32, Int32%)
Gets a specific descriptor from the device. See DescriptorType for more information.

GetDescriptor(Byte, Byte, Int16, Object, Int32, Int32%)
Gets a specific descriptor from the device. See DescriptorType for more information.

GetLangIDs(array<Int16>[]()[][]%)
Asking for the zero'th index is special - it returns a string descriptor that contains all the language IDs supported by the device. Typically there aren't many - often only one. The language IDs are 16 bit numbers, and they start at the third byte in the descriptor. See USB 2.0 specification, section 9.6.7, for more information on this.

GetString(String%, Int16, Byte)
Gets a string descriptor from the device.

Info
Gets the actual device descriptor the the current UsbDevice.

IsOpen
Gets a value indication if the device handle is valid.

Open()()()()
Opens/re-opens this USB device instance for communication.

OpenEndpointReader(ReadEndpointID, Int32)
Opens a Bulk endpoint for reading

OpenEndpointReader(ReadEndpointID, Int32, EndpointType)
Opens an endpoint for reading

OpenEndpointReader(ReadEndpointID)
Opens a Bulk endpoint for reading

OpenEndpointWriter(WriteEndpointID)
Opens a Bulk endpoint for writing

OpenEndpointWriter(WriteEndpointID, EndpointType)
Opens an endpoint for writing

UsbRegistryInfo
Gets the UsbRegistry class that opened the device, or null if the device was not opened by the UsbRegistry class.

Remarks
All USB device classes implement these members.

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