linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Spectral ID sensor + floating point questions
@ 2018-05-20 14:21 Matt Ranostay
  2018-05-20 16:11 ` Jonathan Cameron
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Ranostay @ 2018-05-20 14:21 UTC (permalink / raw)
  To: linux-iio, Jonathan Cameron

Jonathan et all,

Currently looking at ams AS7262 Spectral ID sensor, and thinking about
adding support to enable a project I'm working on.

But I noticed it is a bit odd in that outputs data for the 6 color
channels in either a) raw 16-bit ADC values b) or calibration adjusted
values (factory calibration) but are presented as 32-bit single
precision floats.

Clearly the latter data is  much more useful but of course it is a
floating point which isn't exactly the ideal in the kernel and there
isn't a precedent in iio (that I know of) for such values.

Datasheet: https://www.mouser.com/ds/2/588/AS7262_DS000486_2-00-1082195.pdf

Any thoughts, or suggestions?

Thanks,

Matt

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

end of thread, other threads:[~2018-05-25 15:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-20 14:21 [RFC] Spectral ID sensor + floating point questions Matt Ranostay
2018-05-20 16:11 ` Jonathan Cameron
2018-05-21  5:56   ` Matt Ranostay
2018-05-22 17:12     ` Jonathan Cameron
2018-05-24  5:31       ` Matt Ranostay
2018-05-25 15:16         ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).