Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
value = (intValue + ref) / (10^scale)
min = ref / 10^scale
max = (2^width - 2 + ref) / (10^scale)
intValue = (10^scale) * value - ref
precision = 10^-scale

Here Where scale=scale factor, ref=reference value (or bias) and width = bit width of the descriptor.
And "intValue" is an integer of N "width" bits from the Data Section (N=bit width of descriptor).

Example:
For "pressure" we have:
code=007004,  type=long (integer), scale=-1, reference=0, bitwidth=14

...