C# Class MonoLibUsb.MonoUsbDeviceHandle

Represents a Libusb-1.0 device handle.

To close a device, see the Close method.

A MonoUsbDeviceHandle is roughly equivalent to a libusb_device_handle.
Inheritance: LibUsbDotNet.Main.SafeContextHandle
Exibir arquivo Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes the MonoUsbDeviceHandle reference. When all references are no longer is use, the device is closed in the ReleaseHandle finalizer.

The Close method is roughly equivalent to libusb_close().

MonoUsbDeviceHandle ( MonoUsbProfileHandle profileHandle ) : System

Open a device handle from profileHandle.

A handle allows you to perform I/O on the device in question.

To close a device handle call its SafeHandle.Close method.

This is a non-blocking function; no requests are sent over the bus.

The MonoUsbDeviceHandle(MonoUsbProfileHandle) constructor is roughly equivalent to libusb_open().

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Closes the MonoUsbDeviceHandle.

Private Methods

Method Description
MonoUsbDeviceHandle ( IntPtr pDeviceHandle ) : System

Method Details

Close() public method

Closes the MonoUsbDeviceHandle reference. When all references are no longer is use, the device is closed in the ReleaseHandle finalizer.
The Close method is roughly equivalent to libusb_close().
public Close ( ) : void
return void

MonoUsbDeviceHandle() public method

Open a device handle from profileHandle.

A handle allows you to perform I/O on the device in question.

To close a device handle call its SafeHandle.Close method.

This is a non-blocking function; no requests are sent over the bus.

The MonoUsbDeviceHandle(MonoUsbProfileHandle) constructor is roughly equivalent to libusb_open().
public MonoUsbDeviceHandle ( MonoUsbProfileHandle profileHandle ) : System
profileHandle MonoLibUsb.Profile.MonoUsbProfileHandle A device profile handle.
return System

ReleaseHandle() protected method

Closes the MonoUsbDeviceHandle.
protected ReleaseHandle ( ) : bool
return bool