init
This commit is contained in:
35
Common/DTS.CommonCore/Constant/DASSpecific/SLICE1_5.cs
Normal file
35
Common/DTS.CommonCore/Constant/DASSpecific/SLICE1_5.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using DTS.Common.Enums;
|
||||
|
||||
namespace DTS.Common.Constant.DASSpecific
|
||||
{
|
||||
public class SLICE1_5
|
||||
{
|
||||
public const uint MaxAAFilterRateHz = 40000;
|
||||
|
||||
public const byte MIN_PROTOCOL_VER = 1;
|
||||
public const int QUERY_ARM_AND_TRIGGER_STATUS_TIME_LEFT_IN_ARM = 2;
|
||||
public const int IGNORE_SHORTED_START_EVENT = 4;
|
||||
public const int START_REC_DELAY_IN_SECOND = 5;
|
||||
public const int MEASURE_INTERNAL_OFFSET = 6;
|
||||
public const int START_REALTIME_STREAM = 7;
|
||||
public const int BASE_PLUS_MIN_MULTIEVENT_HYBRID_PROTOCOL = 8;
|
||||
|
||||
public static bool IsRecordingModeSupported(RecordingModes mode, int protocolVersion)
|
||||
{
|
||||
switch (mode)
|
||||
{
|
||||
case RecordingModes.CircularBuffer:
|
||||
case RecordingModes.Recorder:
|
||||
case RecordingModes.MultipleEventCircularBuffer:
|
||||
case RecordingModes.MultipleEventRecorder:
|
||||
case RecordingModes.HybridRecorder:
|
||||
case RecordingModes.ContinuousRecorder:
|
||||
return true;
|
||||
case RecordingModes.MultipleEventHybridRecorder:
|
||||
return protocolVersion >= BASE_PLUS_MIN_MULTIEVENT_HYBRID_PROTOCOL;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user