42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
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());
|
|
}
|
|
}
|
|
}
|