logicanalyzer/Software/LogicAnalyzer/SharedDriver/CaptureModes.cs
Agustín Gimenez fc05977ad4 Version 4.0
2023-02-25 12:25:37 +01:00

34 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedDriver
{
internal static class CaptureModes
{
public static CaptureLimits[] Modes = new CaptureLimits[]
{
new CaptureLimits { MinPreSamples = 2, MaxPreSamples = 98303, MinPostSamples = 512, MaxPostSamples = 131069 },
new CaptureLimits { MinPreSamples = 2, MaxPreSamples = 49151, MinPostSamples = 512, MaxPostSamples = 65533 },
new CaptureLimits { MinPreSamples = 2, MaxPreSamples = 24576, MinPostSamples = 512, MaxPostSamples = 32765 }
};
}
internal static class TriggerDelays
{
public const double ComplexTriggerDelay = 50;
public const double FastTriggerDelay = 30;
}
public class CaptureLimits
{
public int MinPreSamples { get; set; }
public int MaxPreSamples { get; set; }
public int MinPostSamples { get; set; }
public int MaxPostSamples { get; set; }
public int MaxTotalSamples { get { return MinPreSamples + MaxPostSamples; } }
}
}