Class LibraryOptions
Configurable Library settings for compatibility with non-standard configurations.
Inheritance
Namespace: PTIRelianceLib
Assembly: PTIRelianceLib.dll
Syntax
public class LibraryOptions : object
Properties
| Improve this Doc View SourceDefault
Returns the default library options for this library.
Declaration
public static LibraryOptions Default { get; }
Property Value
Type | Description |
---|---|
LibraryOptions | Default library options |
DockerLinuxStretch
Returns the library options that work well for Debian Stretch Docker images
Declaration
public static LibraryOptions DockerLinuxStretch { get; }
Property Value
Type | Description |
---|---|
LibraryOptions | Options comptaible with Linux Stretch Docker containers |
HidCleanupDelayMs
Gets or Sets the delay in milliseconds to block for after closing and cleaning up after an HID port. This primarily affects reboot calls during the flash update process. Default: 0 ms
Declaration
public int HidCleanupDelayMs { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Integer delay in milliseconds |
HidFlushStructuresOnEnumError
When true, if HID enumeration returns no results, flush the HID data structures (effectively forcing a device event loop poll) and delay HidCleanupDelayMs ms before returning. This does not fix the current enumeration but the next call to enumeration will have fresh device data. This primarily affects reboot calls during the flash update process. Default: false
Declaration
public bool HidFlushStructuresOnEnumError { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Flag controls if Hid structures are cleaned on error |
HidReconnectDelayMs
Gets or Sets the delay in millisecond that is used during Hid reconnection attempts. For devices with slow/no device event loops this has no effect. Instead, set HidFlushStructuresOnEnumError to make sure that fresh HID devices are getting discovered on enumeration. Default: 1000
Declaration
public int HidReconnectDelayMs { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Hid reconnect delay is ms |