namespace DTS.Common.Constant { public static class DigitalInputs { /// /// magic number from CPB /// a transition across 19005 flips the bit /// UPDATE: /// Currently the plan for the DIM thresholds is: ///1. Voltage input: 19661 (1.5V with sig- grounded) ///2. Contact Closure: 19005 (stays the same as what it used to be) ///VoltageInput should be used for digital modes THL and TLH /// public const double ConstantCurrentBreakPointDefault = 19005D; public const double VoltageInputBreakPointDefault = 19661D; /// /// the default value for whether to display SLICE PRO Digital ADC or not /// public const bool DisplaySPDADCDefault = false; /// /// the current constant current break point /// does not query value from storage, only holds value static and relies on value being set separately /// public static double ConstantCurrentBreakPoint { get; set; } = ConstantCurrentBreakPointDefault; /// /// the voltage input break point /// does not query value from storage, only holds value static and relies on value being set separately /// public static double VoltageInputBreakPoint { get; set; } = VoltageInputBreakPointDefault; /// /// controls whether to display SLICE Pro Digital analog ADC /// does not query value from storage, only holds value static and relies on value being set separately /// public static bool DisplaySPDADC { get; set; } = DisplaySPDADCDefault; } }