using System.ComponentModel; namespace DatabaseImport { [TypeConverter(typeof(EnumDescriptionTypeConverter))] public enum DigitalOutputModes { [DescriptionAttribute("Off")] NONE = 0, //digital channel's mode not set [DescriptionAttribute("Five volt low to high")] FVLH = 1 << 0, //set for 5 volt, low-to-high transition [DescriptionAttribute("Five volt high to low")] FVHL = 1 << 1, //set for 5 volt, high-to-low transition [DescriptionAttribute("Contact closure normally open")] CCNO = 1 << 2, //set to contact closure normally open [DescriptionAttribute("Contact closure normally closed")] CCNC = 1 << 3 //set to contact closure normally closed } }