32 lines
904 B
C#
32 lines
904 B
C#
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace DTS.DASLib.Command.SLICE.RealtimeCommands
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// ported from FWTU, appears almost verbatim to there
|
|||
|
|
/// </summary>
|
|||
|
|
public class UDPStreamPacket
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// first array channels, second array sample index
|
|||
|
|
/// </summary>
|
|||
|
|
public short[][] ChannelData { get; set; }
|
|||
|
|
|
|||
|
|
public long TimeStamp { get; set; }
|
|||
|
|
public ulong SampleNumber { get; set; }
|
|||
|
|
public ulong SequenceNumber { get; set; }
|
|||
|
|
|
|||
|
|
public uint PTPTimesec { get; set; }
|
|||
|
|
public uint PTPTimeNsec { get; set; }
|
|||
|
|
|
|||
|
|
public bool PTPSyncStatusError { get; set; }
|
|||
|
|
public bool ADCOverflowStatus { get; set; }
|
|||
|
|
|
|||
|
|
public string PTPTimeString => string.Concat(PTPTimesec, ":", PTPTimeNsec.ToString("000000000"));
|
|||
|
|
|
|||
|
|
public UDPStreamPacket()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|