Machine-translated by Google. Questions are authored in English.
Top

Discussion

Comparing a driver that returns raw counts with one that returns engineering units, the raw version

  • A.cannot be used with a fixed point application
  • B.leaves the calibration to the caller, which may be right or wrong
  • C.is always the better choice for a reusable driver
  • D.removes the need for the caller to know anything about the device at all

Answer: B

Raw counts keep the driver ignorant of the sensor's calibration, which is sometimes right, since the calibration may be a product-level matter. Where the conversion is a property of the device it belongs in the driver, and the choice has to be made deliberately.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.