C# 클래스 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.
상속: LibUsbDotNet.Main.SafeContextHandle
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
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().

보호된 메소드들

메소드 설명
ReleaseHandle ( ) : bool

Closes the MonoUsbDeviceHandle.

비공개 메소드들

메소드 설명
MonoUsbDeviceHandle ( IntPtr pDeviceHandle ) : System

메소드 상세

Close() 공개 메소드

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
리턴 void

MonoUsbDeviceHandle() 공개 메소드

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.
리턴 System

ReleaseHandle() 보호된 메소드

Closes the MonoUsbDeviceHandle.
protected ReleaseHandle ( ) : bool
리턴 bool