Beispiel #1
0
 public T this[eSensorIndex index]
 {
     get
     {
         return(this.Find(x => x.Index == index));
     }
     set
     {
         throw new NotSupportedException();
     }
 }
Beispiel #2
0
        public static eSensorType[] ToSensorType(eSensorIndex index)
        {
            switch (index)
            {
            case eSensorIndex.Temperature:
                return(new eSensorType[] { eSensorType.DigitalTemperature, eSensorType.InternalNTC });

            case eSensorIndex.Humidity:
                return(new eSensorType[] { eSensorType.Humidity });

            case eSensorIndex.External1:
                return(new eSensorType[]
                {
                    eSensorType.Current4_20mA,
                    eSensorType.Voltage0_10V,
                    eSensorType.ExternalNTC,
                    eSensorType.PT100,
                });

            default:
                return(new eSensorType[] { });
            }
        }