63 lines
2.4 KiB
C#
63 lines
2.4 KiB
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|