C# Class MonoLibUsb.Profile.MonoUsbProfile

Representing a USB device that can be opened and used by Libusb-1.0.
Show file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes the internal MonoUsbProfileHandle.

Equals ( MonoUsbProfile other ) : bool

Compares a MonoUsbProfile with this one.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

OpenDeviceHandle ( ) : MonoUsbDeviceHandle

Convenience function to open the device handle this profile handle represents.

operator ( ) : bool

true if the MonoUsbProfile types are equal.

MonoUsbProfile types are considered equal they have the same BusNumber and DeviceAddress.

Private Methods

Method Description
GetDeviceDescriptor ( MonoUsbDeviceDescriptor &monoUsbDeviceDescriptor ) : MonoUsbError
MonoUsbProfile ( MonoUsbProfileHandle monoUSBProfileHandle ) : LibUsbDotNet

Method Details

Close() public method

Closes the internal MonoUsbProfileHandle.
public Close ( ) : void
return void

Equals() public method

Compares a MonoUsbProfile with this one.
public Equals ( MonoUsbProfile other ) : bool
other MonoUsbProfile The other .
return bool

Equals() public method

Determines whether the specified T:System.Object is equal to the current T:System.Object.
The parameter is null.
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

OpenDeviceHandle() public method

Convenience function to open the device handle this profile handle represents.
public OpenDeviceHandle ( ) : MonoUsbDeviceHandle
return MonoUsbDeviceHandle

operator() public static method

true if the MonoUsbProfile types are equal.
MonoUsbProfile types are considered equal they have the same BusNumber and DeviceAddress.
public static operator ( ) : bool
return bool