22 lines
861 B
C#
22 lines
861 B
C#
using System.ComponentModel;
|
|
using DTS.Common.Converters;
|
|
using DTS.Common.Base.Classes;
|
|
|
|
namespace DTS.Common.Enums
|
|
{
|
|
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
|
public enum DigitalOutputModes
|
|
{
|
|
[Description("Off")]
|
|
NONE = 0, //digital channel's mode not set
|
|
[DescriptionResource("DigitalOutputMode_FVLH")]
|
|
FVLH = 1 << 0, //set for 5 volt, low-to-high transition
|
|
[DescriptionResource("DigitalOutputMode_FVHL")]
|
|
FVHL = 1 << 1, //set for 5 volt, high-to-low transition
|
|
[DescriptionResource("DigitalOutputMode_CCNO")]
|
|
CCNO = 1 << 2, //set to contact closure normally open
|
|
[DescriptionResource("DigitalOutputMode_CCNC")]
|
|
CCNC = 1 << 3 //set to contact closure normally closed
|
|
}
|
|
}
|