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
Afficher le fichier Open project: arvydas/BlinkStickDotNet Class Usage Examples

Méthodes publiques

Méthode 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().

Méthodes protégées

Méthode Description
ReleaseHandle ( ) : bool

Closes the MonoUsbDeviceHandle.

Private Methods

Méthode Description
MonoUsbDeviceHandle ( IntPtr pDeviceHandle ) : System

Method Details

Close() public méthode

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
Résultat void

MonoUsbDeviceHandle() public méthode

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.
Résultat System

ReleaseHandle() protected méthode

Closes the MonoUsbDeviceHandle.
protected ReleaseHandle ( ) : bool
Résultat bool