C# Класс LibUsbDotNet.DeviceNotify.Linux.LinuxDeviceNotifier

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
PollingInterval int

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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').

Приватные методы

Метод Описание
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

Описание методов

LinuxDeviceNotifier() публичный Метод

Creates a new instance of the LinuxDeviceNotifier using '/dev' as the root device path.
public LinuxDeviceNotifier ( ) : System
Результат System

LinuxDeviceNotifier() публичный Метод

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'.
Результат System

Описание свойств

PollingInterval публичное статическое свойство

The interval (milliseconds) in which the device list is queried for changes when using the LinuxDeviceNotifierMode.PollDeviceList mode.
public static int PollingInterval
Результат int