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,10 @@
using Microsoft.Practices.Prism.Events;
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The selected Test Summary list changed event.
/// </summary>
public class ChannelSelectionCountNotification : CompositePresentationEvent<int> { }
}

View File

@@ -0,0 +1,76 @@
using DTS.Common.Interface.TestSetups;
using System.Data;
namespace DTS.Common.Classes.TestSetups
{
/// <summary>
/// implements a record for test setup hardware
/// <inheritdoc cref="ITestSetupHardwareRecord"/>
/// </summary>
public class TestSetupHardwareRecord : Base.BasePropertyChanged, ITestSetupHardwareRecord
{
private int _dasId = -1;
public int DASId
{
get => _dasId;
set => SetProperty(ref _dasId, value, "DASId");
}
private int _testSetupId;
public int TestSetupId
{
get => _testSetupId;
set => SetProperty(ref _testSetupId, value, "TestSetupId");
}
private bool _addDAS = true;
public bool AddDAS
{
get => _addDAS;
set => SetProperty(ref _addDAS, value, "AddDAS");
}
private int _samplesPerSecond;
public int SamplesPerSecond
{
get => _samplesPerSecond;
set => SetProperty(ref _samplesPerSecond, value, "SamplesPerSecond");
}
private bool _isClockMaster = false;
public bool IsClockMaster
{
get => _isClockMaster;
set => SetProperty(ref _isClockMaster, value, "IsClockMaster");
}
private byte _ptpDomainId = 0;
public byte PTPDomainId
{
get => _ptpDomainId;
set => SetProperty(ref _ptpDomainId, value, "PTPDomainId");
}
private int _antiAliasFilterRate;
public int AntiAliasFilterRate
{
get => _antiAliasFilterRate;
set => SetProperty(ref _antiAliasFilterRate, value, "AntiAliasFilterRate");
}
public TestSetupHardwareRecord() { }
public TestSetupHardwareRecord(IDataReader reader)
{
DASId = Utility.GetInt(reader, "DASId");
TestSetupId = Utility.GetInt(reader, "TestSetupId");
AddDAS = Utility.GetBool(reader, "AddOrRemove");
SamplesPerSecond = Utility.GetInt(reader, "SamplesPerSecond");
IsClockMaster = Utility.GetBool(reader, "IsClockMaster");
AntiAliasFilterRate = Utility.GetInt(reader, "AntiAliasFilterRate");
PTPDomainId = (byte)Utility.GetInt(reader, "PTPDomainID");
}
public TestSetupHardwareRecord(ITestSetupHardwareRecord copy)
{
DASId = copy.DASId;
TestSetupId = copy.TestSetupId;
AddDAS = copy.AddDAS;
SamplesPerSecond = copy.SamplesPerSecond;
IsClockMaster = copy.IsClockMaster;
AntiAliasFilterRate = copy.AntiAliasFilterRate;
PTPDomainId = copy.PTPDomainId;
}
}
}

View File

@@ -0,0 +1,43 @@
using System;
namespace DTS.Common.Interface.Communication
{
public interface ICommunication_DASInfo
{
/// <summary>
/// these are devices which are connected to the das
/// currently only used by SLICE6DB
/// </summary>
IDASConnectedDevice[] ConnectedDevices { get; }
/// <summary>
/// sets ConnectedDevices
/// </summary>
/// <param name="devices">devices connected to this das</param>
void SetConnectedDevices(IDASConnectedDevice[] devices);
string[] SerialNumbers { get; set; }
string[] FirmwareVersions { get; set; }
string StackSerialNumber(int devid);
/// <summary>
/// indicates date of first use
/// null indicates the hardware has not been used since calibration
/// only valid when IsFirstUseDateSupported is true
/// 15524 DAS "First Use Date"
/// </summary>
DateTime? FirstUseDate { get; set; }
/// <summary>
/// returns whether the hardware supports first use or not
/// for hardware to support first use the hardware must support
/// storage for user attributes in firmware and also have been
/// calibrated by software support hardware first use
/// 15524 DAS "First Use Date"
/// </summary>
bool IsFirstUseDateSupported { get; set; }
/// <summary>
/// indicates whether or not streaming is supported
/// 30429 TSR AIRs can enable/disable streaming via the DISABLE_STREAMING_FEATURE system attribute
/// </summary>
bool IsStreamingSupported { get; set; }
}
}