/// <summary> /// Creates an initialized instance /// </summary> /// <param name="settings">Configuration</param> public PulseGenerator(PulseGeneratorSettings settings) { _signal = settings.Signal; _avgPeriod = settings.AvgPeriod; _mode = settings.Mode; Reset(); return; }
//Constructors /// <summary> /// Creates an initialized instance /// </summary> /// <param name="signal">Pulse signal value</param> /// <param name="avgPeriod">Pulse average leak</param> /// <param name="mode">Pulse timing mode</param> public PulseGenerator(double signal, double avgPeriod, PulseGeneratorSettings.TimingMode mode) { _signal = signal; _avgPeriod = Math.Abs(avgPeriod); _mode = mode; Reset(); return; }