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,48 @@
namespace DTS.Common.Interface.DASFactory.ARM
{
/// <summary>
/// Arm interface for a DAS unit.
/// </summary>
public interface IArmStatus
{
/// <summary>
/// marks the unit as being in arm
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
/// </summary>
void SetInArm(bool WriteToDb);
/// <summary>
/// marks the unit as being in realtime
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
/// </summary>
void SetInRealtime(bool WriteToDb, bool ExitRealtimeIfPossible);
/// <summary>
/// returns true if the unit is in known to be in Arm
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsInArm();
/// <summary>
/// returns true if unit is known to be in realtime
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsInRealtime();
/// <summary>
/// returns true if the unit is known to be streaming
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsStreaming();
IArmStatusData DASArmStatus { get; set; }
/// <summary>
/// sets DASArmStatus and optionally stores in the db
/// </summary>
/// <param name="status"></param>
/// <param name="bSetInDb"></param>
void SetDASArmStatus(IArmStatusData status, bool bSetInDb);
/// <summary>
/// sets to the db (if connected) the current DASArmStatus
/// </summary>
void SetDASArmStatus();
}
}

View File

@@ -0,0 +1,126 @@
namespace DTS.Common.Interface.DASFactory.ARM
{
public interface IArmStatusData
{
/// <summary>
/// returns true if unit received InvalidMode to query commands during initial setup
/// 15932 Error when performing test when S6A is streaming
/// this is used in some places currently to detect when a unit is streaming
/// </summary>
bool ReceivedInvalidModeDuringSetup { get; set; }
/// <summary>
/// clears any flags set or needed for triggercheck
/// </summary>
void ClearTriggerCheckStatus();
/// <summary>
/// Is the DAS currently armed?
/// </summary>
bool IsArmed { get; set; }
/// <summary>
/// Has the DAS sensed a trigger?
/// </summary>
bool IsTriggered { get; set; }
/// <summary>
/// a little bit distinct from IsTriggered
/// in that IsTriggerShorted is only set during TriggerCheck
/// while IsTriggered is set in many places
/// </summary>
bool IsTriggerShorted { get; set; }
/// <summary>
/// indicates that trigger was shorted
/// is only set during triggercheck
/// </summary>
bool IsStartShorted { get; set; }
/// <summary>
/// Is the DAS currently recording sample data?
/// </summary>
bool IsRecording { get; set; }
/// <summary>
/// Has the DAS faulted?
/// </summary>
bool IsFaulted { get; set; }
/// <summary>
/// Is the DAS in real time mode?
/// </summary>
bool IsInRealtime { get; set; }
/// <summary>
/// is the DAS in flash write (G5)
/// </summary>
bool IsInFlashWrite { get; set; }
/// <summary>
/// used for the times when TDAS ARM STAT READ just doesn't return anything
/// </summary>
bool IsUndefined { get; set; }
/// <summary>
/// Is the DAS in post test diagnostics
/// </summary>
bool IsInPostTestDiagnostics { get; set; }
/// <summary>
/// How many seconds are left of recording?
/// </summary>
double TimeRemainingSeconds { get; set; }
/// <summary>
/// what percentage is complete [flashwrite]
/// </summary>
double PercentComplete { get; set; }
/// <summary>
/// How many samples total will the DAS be recording this test?
/// </summary>
ulong TotalSamples { get; set; }
/// <summary>
/// What sample are we currently recording?
/// </summary>
ulong CurrentSample { get; set; }
/// <summary>
/// At what sample rate are we currently recording?
/// </summary>
uint SampleRate { get; set; }
/// <summary>
/// What's the current input voltage?
/// </summary>
double? InputMilliVolts { get; set; }
/// <summary>
/// What's the current battery voltage (null if no battery)?
/// </summary>
double? BatteryMilliVolts { get; set; }
/// <summary>
/// Which event number is currently being recorded?
/// </summary>
int? EventNumber { get; set; }
//FB 26817
/// <summary>
/// The Max number of events supported by a device
/// </summary>
ushort? MaxEventsPossible { get; set; }
int RecordingMode { get; set; }
/// <summary>
/// optional fault message if there is a fault
/// (software will flag some faults and when we do we know what caused it)
/// </summary>
string FaultMessage { get; set; }
bool IsRearming { get; set; }
bool HasBeenRecording { get; set; }
double? TimeLeftInArm { get; set; }
}
}