From: Daniel Baluta <daniel.baluta@intel.com>
To: Peter Meerwald <pmeerw@pmeerw.net>, Jonathan Cameron <jic23@kernel.org>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: IIO_LIGHT vs IIO_INTENSITY
Date: Thu, 8 Jan 2015 17:19:23 +0200 [thread overview]
Message-ID: <CAEnQRZAY82eKVK6B0-s1c1UWbZthML9gNvk2-+_hyb-VnTO-jw@mail.gmail.com> (raw)
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
next reply other threads:[~2015-01-08 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 15:19 Daniel Baluta [this message]
2015-01-08 19:23 ` IIO_LIGHT vs IIO_INTENSITY Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEnQRZAY82eKVK6B0-s1c1UWbZthML9gNvk2-+_hyb-VnTO-jw@mail.gmail.com \
--to=daniel.baluta@intel.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).