From: Jonathan Cameron <jic23@kernel.org>
To: balbi@ti.com, Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Subject: Re: [RFC/PATCH] iio: light: add support for TI's opt3001 ligth sensor
Date: Thu, 07 Aug 2014 11:13:12 +0100 [thread overview]
Message-ID: <53E35138.2040601@kernel.org> (raw)
In-Reply-To: <20140806223842.GG3556@saruman.home>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/08/14 23:38, Felipe Balbi wrote:
> On Thu, Aug 07, 2014 at 12:35:11AM +0200, Peter Meerwald wrote:
>>
>>>>> ok... but then that brings up a doubt. What would I use triggered buffer for ? I already setup High/Low
>>>>> limits (thresholds) through .write_event_value(). Isn't that, pretty much, a triggered buffer ?
>>>>
>>>> a triggered buffer reads data from the device and stores it into a buffer whenever the trigger goes off (you
>>>> are interested to capture all samples)
>>>
>>> Alright, so something like a contious capture starting after a GPIO goes off, or something ?
>>
>> right, one capture whenever the GPIO becomes active typically
Or if I am conjecturing correctly on what the hystersis mode here does, it
would be applicable for that. The interrupts indicating a change would provide
the iio_trigger and that would result in the buffer being filled.
This allows you to poll/select on the data arriving.
The BMC100 driver currently under review does something very similar with
a motion detector interrupt so that data is only captured if significant
motion is going on.
>>
>>>> events are created on certain conditions (you are not interested in all samples)
>>>
>>> And this would be more like e.g. "tell me once I have 100 lux or more" ?
>>
>> yes
>
> cool thanks. I'll wait for some more review comments before sending a new version. Latest is kept at [1]
>
> [1] https://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=opt3001
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJT41E4AAoJEFSFNJnE9BaIqogQAJdlZ3uq6Nf6BDYazpn8YfPZ
E4t7FocO6DtZHYgUp+MLOadB4cQv5VKT+K/D3RSsc3C10JhC7la3b3Rxh0+ia1wq
iu8HPTNccYkkcexamw+JSPR5TjirC4uVnajFzmtaiZ7vGD/cexP9phBHrGZsts1b
VcK44VVxi59smFi+P+6LPYqm9cc5NwjUjCErfEf73x+NzOOA6myNwoBLrH6uGRHj
kIVp4icBA3ajN5FntBEbVCKHyqeLvFUQKCznKLb+wIn7nf5yjGiHCMntlAYF9O5+
m5seoOdp0znUMkp1hAhfceyVQvyPKEV1nNZYXnH7fnYrshtcy1P/hZuhen+wIooM
+WWVUQBRVRH6Jan1lwPhz8TkXvwFwPGd1+5BTq/wk4J0s6YEUpn+Vee1Q7m2e4u1
Rm4JSA2Kx/WppBuF9kTG+tjBBm9D0MVhN0qoNT/Q4qXTop24pY4Vxmf8ZyvkB8CH
fSrj+p/wkinNJksKjuu8VfCr3WH/Fni+I8comLfIo1AHl63ADR+3z1U/tMndTMdS
TBoAgYOnhWQHVoL1IL5qbDv//wBGqJdwZL9DoctYnwNaY2mtbmUdsciY1T4htmJe
M/1PGl1h5yjCMxiT54jp35XfWgtUav2MvVkdKguh6KlDt0RqSjvP4ZKkyOHJxvsG
3QlQTvxr+tupJzfYH+4v
=cUWM
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-08-07 10:13 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 16:10 [RFC/PATCH] iio: light: add support for TI's opt3001 ligth sensor Felipe Balbi
2014-08-06 21:11 ` Peter Meerwald
2014-08-06 21:42 ` Felipe Balbi
2014-08-06 22:09 ` Peter Meerwald
2014-08-06 22:18 ` Felipe Balbi
2014-08-06 22:25 ` Peter Meerwald
2014-08-06 22:30 ` Felipe Balbi
2014-08-06 22:35 ` Peter Meerwald
2014-08-06 22:38 ` Felipe Balbi
2014-08-07 10:13 ` Jonathan Cameron [this message]
2014-08-07 10:08 ` Jonathan Cameron
2014-08-07 14:39 ` Felipe Balbi
2014-08-07 16:27 ` Jonathan Cameron
2014-08-07 16:36 ` Felipe Balbi
2014-08-07 17:00 ` Jonathan Cameron
2014-08-07 10:01 ` Jonathan Cameron
2014-08-07 14:28 ` Felipe Balbi
2014-08-07 16:26 ` Jonathan Cameron
2014-08-07 16:30 ` Jonathan Cameron
2014-08-07 16:35 ` Felipe Balbi
2014-08-07 16:58 ` Jonathan Cameron
2014-08-07 17:54 ` Felipe Balbi
2014-08-11 14:34 ` [RFC/PATCH v2] " Felipe Balbi
2014-08-11 14:46 ` Peter Meerwald
2014-08-11 14:58 ` Felipe Balbi
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=53E35138.2040601@kernel.org \
--to=jic23@kernel.org \
--cc=balbi@ti.com \
--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 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.