All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about pressure sensor driver data processing
@ 2020-02-18 15:59 Jean-Baptiste Maneyrol
  2020-02-19 18:38 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Baptiste Maneyrol @ 2020-02-18 15:59 UTC (permalink / raw)
  To: linux-iio

Hello,

I have a question concerning a pressure sensor driver I am currently writing.

The formula to get the real pressure in Pa for this sensor is quite complex. It depends on the measured temperature and would be far better done in floats rather than in integers.

The formula is too complex to be expressed with only scale and offset factors. And the factors are not fixed since it depends on the temperature.

Would it be acceptable to have a driver than returns the raw data without processing? Meaning data that have no unit and require a processing done in userspace? That would be much more efficient for sure, but it would not output really useful data without the processing.

Or a driver that return an input processed data and a raw data that have no unit and requires the processing? If we can return raw data, we should be able also to add buffer/trigger support to the driver. Otherwise that would be quite tricky to return the processed data in the buffer.

Thanks for your feedback.
JB

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-21  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-18 15:59 Question about pressure sensor driver data processing Jean-Baptiste Maneyrol
2020-02-19 18:38 ` Jonathan Cameron
2020-02-20 15:51   ` Jean-Baptiste Maneyrol
2020-02-21  0:06   ` Matt Ranostay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.