LibUsbDotNet 2.2.8
WinUsbDevice Class
Library Reference ► LibUsbDotNet.WinUsb ► WinUsbDevice
|
Contains members specific to Microsofts WinUSB driver.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class WinUsbDevice : UsbDevice, IUsbInterface
Public Class WinUsbDevice _ Inherits UsbDevice _ Implements IUsbInterface
public ref class WinUsbDevice : public UsbDevice, IUsbInterface
Members
All Members | Methods | Properties | |||
|
|
|
Icon | Member | Description |
---|---|---|
Close()()()() |
Closes the UsbDevice and disposes any ActiveEndpoints.
(Overrides UsbDevice.Close()()()().) |
|
DevicePath |
Gets the device path used to open this WinUsbDevice.
|
|
DriverMode |
Returns the DriverMode this USB device is using.
(Overrides UsbDevice.DriverMode.) |
|
EndpointPolicies(ReadEndpointID) |
Gets endpoint policies for the specified endpoint id.
|
|
EndpointPolicies(WriteEndpointID) |
Gets endpoint policies for the specified endpoint id.
|
|
GetAssociatedInterface(Byte, WinUsbDevice%) |
Gets an interface associated with this WinUsbDevice.
|
|
GetCurrentAlternateSetting(Byte%) |
Gets the currently selected alternate settings number for the selected inteface.
|
|
GetDevicePathList(Guid, List<(Of <<'(String>)>>)%) |
Gets a list a valid, connected WinUSB device inteface paths for the a given WinUSB device interface guid.
|
|
Open()()()() |
Opens the USB device handle.
(Overrides UsbDevice.Open()()()().) |
|
Open(String, WinUsbDevice%) |
Opens a WinUsb directly from the user supplied device path.
|
|
PowerPolicy |
Gets the power policies for this WinUsbDevice.
|
|
QueryDeviceSpeed(DeviceSpeedTypes%) |
Gets the device speed.
|
|
QueryInterfaceSettings(Byte, UsbInterfaceDescriptor%) |
Gets a UsbInterfaceDescriptor for the specified AlternateInterfaceNumber,
|
Remarks
A WinUsbDevice should be thought of as a part of, or an interface of a USB device.
The WinUsbDevice class does not have members for selecting configurations and
intefaces. This is done at a lower level by the winusb driver depending on which interface the
WinUsbDevice belongs to.