linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IIO_LIGHT vs IIO_INTENSITY
@ 2015-01-08 15:19 Daniel Baluta
  2015-01-08 19:23 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2015-01-08 15:19 UTC (permalink / raw)
  To: Peter Meerwald, Jonathan Cameron; +Cc: linux-iio@vger.kernel.org

Hi,

I'm not sure I understand the difference between
IIO_LIGHT vs IIO_INTENSITY as seen by the IIO.

As far as i know:

* IIO_LIGHT channels are used to measure illuminance
  [1] and the units after application of scale and offset
  are lux.
* IIO_INTENSITY channels are used to measure luminous
intensity [2]? I guess that units after application of scale (?)
are candela (although, not documented in the ABI file [3]).

Anyhow, reading the code for drivers with IIO_INTENSITY channels
it is not very clear what is the unit for in_intensityY_input or
in_intensityY_raw
after application of scale.

e.g for isl29125 the unit is lux [4]

thanks,
Daniel.

[1] http://en.wikipedia.org/wiki/Illuminance
[2] http://en.wikipedia.org/wiki/Luminous_intensity
[3] http://lxr.free-electrons.com/source/Documentation/ABI/testing/sysfs-bus-iio#L992
[4] http://lxr.free-electrons.com/source/drivers/iio/light/isl29125.c#L122

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

end of thread, other threads:[~2015-01-08 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08 15:19 IIO_LIGHT vs IIO_INTENSITY Daniel Baluta
2015-01-08 19:23 ` 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).