24 lines
884 B
C#
24 lines
884 B
C#
using System.ComponentModel;
|
|
using DTS.Common.Base.Classes;
|
|
using DTS.Common.Converters;
|
|
|
|
namespace DTS.Common.Enums
|
|
{
|
|
/// <summary>
|
|
/// these are the different input modes for the data
|
|
/// </summary>
|
|
[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
|
|
}
|
|
}
|