using System; namespace DatabaseExport { /// /// Base class for all DAS channels. /// [Serializable] public class DASChannel //: IXmlSerializable // (subset of sensor class) { } /// /// Base class for SQUIB channels. /// [Serializable] public class OutputTOMDigitalChannel : DigitalOutputDASChannel { public enum DigitalOutputMode { NONE = 0, //digital channel's mode not set FVLH = 1 << 0, //set for 5 volt, low-to-high transition FVHL = 1 << 1, //set for 5 volt, high-to-low transition CCNO = 1 << 2, //set to contact closure normally open CCNC = 1 << 3 //set to contact closure normally closed } } /// /// Base class for SQUIB channels. /// [Serializable()] public class OutputSquibChannel //: AnalogOutputDASChannel, IComparable { public enum SquibFireMode { NONE = 1 << 0, //squib's fire mode not set CAP = 1 << 1, //use capacitor discharge CONSTANT = 1 << 2, //use constant current discharge AC = 1 << 3 //use AC discharge }; public enum SquibMeasurementType { NONE = 0, //the squib's measurement mode has not been set CURRENT = 1 << 0, //the squib's current will be recorded INIT_SIGNAL = 1 << 1, //the squib's initiation indicator will be recorded VOLTAGE = 1 << 2, //the squib's voltage will be recorded } } /// /// Base class for output channels. /// [Serializable] public class OutputDASChannel : DASChannel { } /// /// Digital output channel. /// [Serializable] public class DigitalOutputDASChannel : OutputDASChannel { } }