C# Class HidLibrary.HidDevices

Datei anzeigen Open project: todbot/blink1 Class Usage Examples

Private Properties

Property Type Description
CreateDeviceInfoData NativeMethods.SP_DEVINFO_DATA
EnumerateHidDevices IEnumerable
GetDevicePath string

Public Methods

Method Description
Enumerate ( ) : IEnumerable
Enumerate ( int vendorId ) : IEnumerable
Enumerate ( string devicePath ) : IEnumerable
GetDevice ( string devicePath ) : HidDevice
IsConnected ( string devicePath ) : bool

Private Methods

Method Description
CreateDeviceInfoData ( ) : NativeMethods.SP_DEVINFO_DATA
EnumerateHidDevices ( ) : IEnumerable
GetDevicePath ( IntPtr deviceInfoSet, NativeMethods deviceInterfaceData ) : string

Method Details

Enumerate() public static method

public static Enumerate ( ) : IEnumerable
return IEnumerable

Enumerate() public static method

public static Enumerate ( int vendorId ) : IEnumerable
vendorId int
return IEnumerable

Enumerate() public static method

public static Enumerate ( string devicePath ) : IEnumerable
devicePath string
return IEnumerable

GetDevice() public static method

public static GetDevice ( string devicePath ) : HidDevice
devicePath string
return HidDevice

IsConnected() public static method

public static IsConnected ( string devicePath ) : bool
devicePath string
return bool