using System.ComponentModel; using DTS.Common.Base.Classes; using DTS.Common.Converters; namespace DTS.Common.Enums { /// /// these are the different input modes for the data /// [TypeConverter(typeof(EnumDescriptionTypeConverter))] public enum DigitalInputModes { NONE = 1 << 0, //DI's input mode not set [DescriptionResource("DigitalInputMode_TLH")] TLH = 1 << 1, //Transition Low to High [DescriptionResource("DigitalInputMode_THL")] THL = 1 << 2, //Transition High to Low [DescriptionResource("DigitalInputMode_CCNO")] CCNO = 1 << 3, //set to contact closure normally open [DescriptionResource("DigitalInputMode_CCNC")] CCNC = 1 << 4 //set to contact closure normally closed } }