This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// ReSharper disable CheckNamespace
namespace DTS.Common.Base
{
public interface IBaseModel : IBasePropertyChanged
{
/// <summary>
/// Gets the IsSaved status.
/// </summary>
bool IsSaved { get; }
}
}

View File

@@ -0,0 +1,62 @@
using DTS.Common.Enums;
namespace DTS.Common.Constant.DASSpecific
{
public class SLICE6AIRBR
{
public const int MIN_PROTOCOL_VER = 1;
public const uint MaxAAFilterRateHz = 50000;
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.MultipleEventHybridRecorder:
case RecordingModes.ContinuousRecorder:
case RecordingModes.S6A_DeviceStreamingOnly:
return true;
default:
return false;
}
}
public static bool IsStreamingProfileSupported(UDPStreamProfile profile, int protocolVersion)
{
switch (profile)
{
case UDPStreamProfile.RTCStreaming:
case UDPStreamProfile.DTS_UDP:
case UDPStreamProfile.CH10_MANUAL_CONFIG:
case UDPStreamProfile.CH10_PCM128_MM:
case UDPStreamProfile.CH10_ANALOG:
case UDPStreamProfile.CH10_PCM_STANDARD:
case UDPStreamProfile.CH10_PCM_SUPERCOM:
case UDPStreamProfile.CH10_PCM_128BIT_2HDR:
case UDPStreamProfile.CH10_ANALOG_2HDR:
case UDPStreamProfile.CH10_PCM_STANDARD_2HDR:
case UDPStreamProfile.CH10_PCM_SUPERCOM_2HDR:
case UDPStreamProfile.TMNS_PCM_STANDARD:
case UDPStreamProfile.TMNS_PCM_SUPERCOM:
case UDPStreamProfile.IENA_PTYPE_STREAM:
return true;
default: return false;
}
}
public static bool IsClockSyncProfileSupported(ClockSyncProfile profile, int protocolVersion)
{
switch (profile)
{
case ClockSyncProfile.None:
case ClockSyncProfile.Master_E2E:
case ClockSyncProfile.Slave_E2E:
return true;
default: return false;
}
}
}
}

View File

@@ -0,0 +1,28 @@
using System.ComponentModel;
using DTS.Common.Converters;
namespace DTS.Common.Enums
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum IsoViewMode
{
[Description("ISOOnly")]
ISOOnly,
[Description("ISOAndUserCode")]
ISOAndUserCode,
[Description("UserCodeOnly")]
UserCodeOnly,
[Description("ChannelNameOnly")]
ChannelNameOnly
}
/// <summary>
/// provides access to the iso view mode across modules
/// note that it doesn't retrieve the value, just holds it,
/// the db value must be retrieved and set separately
/// </summary>
public abstract class IsoViewModeStatic
{
public static IsoViewMode ViewMode { get; set; }
}
}