LibUsbDotNet 2.2.8
MonoUsbDevice Class
Library Reference ► LibUsbDotNet.LudnMonoLibUsb ► MonoUsbDevice
|
This is the LibUsbDotNet Libusb-1.0 implementation of a UsbDevice.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class MonoUsbDevice : UsbDevice, IUsbDevice, IUsbInterface
Public Class MonoUsbDevice _ Inherits UsbDevice _ Implements IUsbDevice, IUsbInterface
public ref class MonoUsbDevice : public UsbDevice, IUsbDevice, IUsbInterface
Members
All Members | Methods | Properties | |||
|
|
|
Icon | Member | Description |
---|---|---|
BusNumber |
Gets the bus number the device is connected to.
|
|
ClaimInterface(Int32) |
Claims the specified interface of the device.
|
|
Close()()()() |
Closes the UsbDevice and disposes any ActiveEndpoints.
(Overrides UsbDevice.Close()()()().) |
|
Configs |
Gets the available configurations for this UsbDevice (Overrides UsbDevice.Configs.) |
|
ControlTransfer(UsbSetupPacket%, IntPtr, Int32, Int32%) |
Transmits control data over a default control endpoint.
(Overrides UsbDevice.ControlTransfer(UsbSetupPacket%, IntPtr, Int32, Int32%).) |
|
DeviceAddress |
Gets the instance address the device is using.
|
|
DriverMode |
Returns the DriverMode this USB device is using.
(Overrides UsbDevice.DriverMode.) |
|
GetConfiguration(Byte%) |
Gets the USB devices active configuration value.
(Overrides UsbDevice.GetConfiguration(Byte%).) |
|
GetDescriptor(Byte, Byte, Int16, IntPtr, Int32, Int32%) |
Gets a descriptor from the device. See DescriptorType for more information.
(Overrides UsbDevice.GetDescriptor(Byte, Byte, Int16, IntPtr, Int32, Int32%).) |
|
Info |
Gets the actual device descriptor the the current UsbDevice.
(Overrides UsbDevice.Info.) |
|
Init()()()() |
Initializes the SessionHandle with Init()()()() and starts the static handle events thread with Start()()()().
|
|
MonoUsbDeviceList |
Gets a MonoUsbDevice list of Libusb-1.0 devices.
|
|
Open()()()() |
Opens the USB device handle.
(Overrides UsbDevice.Open()()()().) |
|
OpenEndpointReader(ReadEndpointID, Int32, EndpointType) |
Opens an endpoint for reading
(Overrides UsbDevice.OpenEndpointReader(ReadEndpointID, Int32, EndpointType).) |
|
OpenEndpointWriter(WriteEndpointID, EndpointType) |
Opens an endpoint for writing
(Overrides UsbDevice.OpenEndpointWriter(WriteEndpointID, EndpointType).) |
|
Profile |
Gets the MonoUsbProfile for this usb device.
|
|
ReleaseInterface(Int32) |
Releases an interface that was previously claimed with ClaimInterface(Int32).
|
|
ResetDevice()()()() |
Sends a usb device reset command.
|
|
SetAltInterface(Int32) |
Sets an alternate interface for the most recent claimed interface.
|
|
SetConfiguration(Byte) |
Sets the USB devices active configuration value.
|
|
UsbRegistryInfo |
Gets the UsbRegistry class that opened the device, or null if the device was not opened by the UsbRegistry class.
(Overrides UsbDevice.UsbRegistryInfo.) |
Remarks
This class is used for perform I/O and other operations on Libusb-1.0 devices using with LibUsbDotNet.
This class is not a part of the low-level MonLibUsb API. This is UsbDevice class LibUsbDotNet uses to implement the low-level MonoLibUsb API.