init
This commit is contained in:
23
Common/DTS.CommonCore/Enums/DigitalInputs.cs
Normal file
23
Common/DTS.CommonCore/Enums/DigitalInputs.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user