C# Class LibUsbDotNet.DeviceNotify.Linux.LinuxDeviceNotifier

Datei anzeigen Open project: arvydas/BlinkStickDotNet

Public Properties

Property Type Description
PollingInterval int

Private Properties

Property Type Description
BuildDevList void
FileAdded void
FileRemoved void
IsDeviceEnterface bool
OnAddRemoveEvent void
PollTimer_Elapsed void
ReadFileDescriptor bool
Start void
StartDevDirectoryMonitor void
StartDeviceListPolling void
Stop void
StopDevDirectoryMonitor void
StopDeviceListPolling void

Public Methods

Method Description
LinuxDeviceNotifier ( ) : System

Creates a new instance of the LinuxDeviceNotifier using '/dev' as the root device path.

LinuxDeviceNotifier ( string devDir ) : System

Creates a new instance of the LinuxDeviceNotifier using 'devDir' as the root device path. (IE. '/dev').

Private Methods

Method Description
BuildDevList ( ) : void
FileAdded ( object sender, FileSystemEventArgs e ) : void
FileRemoved ( object sender, FileSystemEventArgs e ) : void
IsDeviceEnterface ( string name, byte &busNumber, byte &deviceAddress ) : bool
OnAddRemoveEvent ( object sender, AddRemoveEventArgs e ) : void
PollTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
ReadFileDescriptor ( string fullPath, byte &deviceDescriptorBytes ) : bool
Start ( ) : void
StartDevDirectoryMonitor ( ) : void
StartDeviceListPolling ( ) : void
Stop ( ) : void
StopDevDirectoryMonitor ( ) : void
StopDeviceListPolling ( ) : void

Method Details

LinuxDeviceNotifier() public method

Creates a new instance of the LinuxDeviceNotifier using '/dev' as the root device path.
public LinuxDeviceNotifier ( ) : System
return System

LinuxDeviceNotifier() public method

Creates a new instance of the LinuxDeviceNotifier using 'devDir' as the root device path. (IE. '/dev').
public LinuxDeviceNotifier ( string devDir ) : System
devDir string The directory to monitor; usually '/dev'.
return System

Property Details

PollingInterval public_oe static_oe property

The interval (milliseconds) in which the device list is queried for changes when using the LinuxDeviceNotifierMode.PollDeviceList mode.
public static int PollingInterval
return int