Files
DP44/DataPRO/SLICECommands/DownloadCommands/EventDataCommands.cs
2026-04-17 14:55:32 -04:00

43 lines
1.5 KiB
C#

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());
}
}
}