Example #1
0
 public void WriteLogical(byte[] buffer, int bitOffset, int elementIndex, int logicalValue)
 {
     WriteRaw(buffer, bitOffset, elementIndex, IsLogicalSigned ? DataConvert.RawFromLogical(this, logicalValue) : (uint)logicalValue);
 }
Example #2
0
 public double GetPhysicalValue()
 {
     return(DataConvert.PhysicalFromLogical(DataItem, GetLogicalValue()));
 }
Example #3
0
        public int ReadLogical(byte[] buffer, int bitOffset, int elementIndex)
        {
            uint rawValue = ReadRaw(buffer, bitOffset, elementIndex);

            return(IsLogicalSigned ? DataConvert.LogicalFromRaw(this, rawValue) : (int)rawValue);
        }
Example #4
0
 public double GetScaledValue(double minimum, double maximum)
 {
     return(DataConvert.CustomFromLogical(DataItem, GetLogicalValue(), minimum, maximum));
 }