code: function (options) {
    return function (bytes) {
      var result = {
        min: options.min,
        max: options.max,
        range: options.max - options.min,
        raw: misc.bufferToInt(bytes)
      };
  
      result.magnitude = 1.0 * result.raw / result.range;
  
      return result;
    };
  }
docs: build a function that takes in some bytes, parses them as an unsigned int, and returns an object with useful data about the value's magnitude between some minimum and maximum.