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,41 @@
using DTS.Common.ICommunication;
namespace DTS.DASLib.Command.SLICE.RealtimeCommands
{
public abstract class RealtimeCommandBase : CommandBase
{
protected enum Commands
{
Reserved = 0x00,
StartRealtimeMode = 0x01,
EndRealtimeMode = 0x02,
GetRealtimeSamples = 0x03,
RetrieveSingleSample = 0x04,
RetrieveSampleAverage = 0x05,
RetrieveInternalOffsetSampleAvg = 0x06,
StartRealtimeStreamingMode = 0x07,
GetRealtimeStreamSamples = 0x08,
StartTimeStampStreamMode = 0x09, // CMDRT_START_TIMESTAMPED_STREAM_MODE = 0x09: Start IRIG realtime stream with destination IP address from system attribute
GetTimeStampStreamSamples = 0x0A, // CMDRT_TIMESTAMPED_STREAM_SAMPLES = 0x0A: streaming data from cmd 0x09
ChannelTappedTest = 0x0B,
I106StreamConfigSet = 0x0C, // FB15313 add streaming config options
I106StreamConfigGet = 0x0D,
};
protected abstract Commands _Command { get; }
protected RealtimeCommandBase(DTS.Common.Interface.DASFactory.ICommunication sock)
: base(sock)
{
command.Type = CommandPacket.CommandType.Realtime;
command.SetCommand((byte)_Command, _Command.ToString());
}
protected RealtimeCommandBase(DTS.Common.Interface.DASFactory.ICommunication sock, int timeoutMillisec)
: base(sock, timeoutMillisec)
{
command.Type = CommandPacket.CommandType.Realtime;
command.SetCommand((byte)_Command, _Command.ToString());
}
}
}

View File

@@ -0,0 +1,42 @@
using DTS.Common.ICommunication;
namespace DTS.DASLib.Command.SLICE.DownloadCommands
{
public abstract class EventDataCommands : CommandBase
{
protected enum Commands
{
Reserved = 0x00,
ResetEventList = 0x01,
QueryTotalEventCount = 0x02,
QueryMatchingEvents = 0x03,
QueryEventData = 0x04,
SetEventData = 0x05,
StartDownloadStreamData = 0x06, // CMDEVD_STREAM_EVENT_DATA_START
GetNextDownloadStreamDataSamples = 0x07, // stream packet of data out to receiver.
QueryUartEventInfo = 0x09, // saved UART info
QueryUartEventData = 0x0A,
SetUartEventData = 0x0B,
GenerateEvent = 0x0C,
QueryEthernetEventInfo = 0x0D,
QueryEthernetEventData = 0x0E,
SetEthernetEventData = 0x0F
};
protected abstract Commands Command { get; }
protected EventDataCommands(DTS.Common.Interface.DASFactory.ICommunication sock)
: base(sock)
{
command.Type = CommandPacket.CommandType.EventData;
command.SetCommand((byte)Command, Command.ToString());
}
protected EventDataCommands(DTS.Common.Interface.DASFactory.ICommunication sock, int timeoutMillisec)
: base(sock, timeoutMillisec)
{
command.Type = CommandPacket.CommandType.EventData;
command.SetCommand((byte)Command, Command.ToString());
}
}
}