Exemplo n.º 1
0
 public void WriteLogical(byte[] buffer, int bitOffset, int elementIndex, int logicalValue)
 {
     WriteRaw(buffer, bitOffset, elementIndex, IsLogicalSigned ? DataConvert.RawFromLogical(this, logicalValue) : (uint)logicalValue);
 }
Exemplo n.º 2
0
 public double GetPhysicalValue()
 {
     return(DataConvert.PhysicalFromLogical(DataItem, GetLogicalValue()));
 }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public double GetScaledValue(double minimum, double maximum)
 {
     return(DataConvert.CustomFromLogical(DataItem, GetLogicalValue(), minimum, maximum));
 }