* Use buffer without trigger
[not found] <CAEE_umrLpNJo1kMbLtktK0RH6WCKCEYR+yiTiyPJu_8G3coE7A@mail.gmail.com>
@ 2013-05-14 16:18 ` Denis Ciocca
2013-05-14 17:57 ` Lars-Peter Clausen
0 siblings, 1 reply; 9+ messages in thread
From: Denis Ciocca @ 2013-05-14 16:18 UTC (permalink / raw)
To: linux-iio, Jonathan Cameron, Lars-Peter Clausen
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
Hi all,
I have one question about iio device. I want create with only one physical
device a lot of iio devices because I want to activate each 'sensor'
without stop the buffer and reactivate with more channels.
But, I want to use only one trigger, for example of the major iio device.
It is possible to register only a buffer of one device and use the trigger
of another one?
Thanks
Denis
[-- Attachment #2: Type: text/html, Size: 466 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-14 16:18 ` Use buffer without trigger Denis Ciocca
@ 2013-05-14 17:57 ` Lars-Peter Clausen
2013-05-17 11:28 ` Denis CIOCCA
0 siblings, 1 reply; 9+ messages in thread
From: Lars-Peter Clausen @ 2013-05-14 17:57 UTC (permalink / raw)
To: Denis Ciocca; +Cc: linux-iio, Jonathan Cameron
On 05/14/2013 06:18 PM, Denis Ciocca wrote:
> Hi all,
>
> I have one question about iio device. I want create with only one physical
> device a lot of iio devices because I want to activate each 'sensor'
> without stop the buffer and reactivate with more channels.
> But, I want to use only one trigger, for example of the major iio device.
> It is possible to register only a buffer of one device and use the trigger
> of another one?
Simple answer: yes.
- Lars
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-14 17:57 ` Lars-Peter Clausen
@ 2013-05-17 11:28 ` Denis CIOCCA
2013-05-17 11:30 ` Lars-Peter Clausen
0 siblings, 1 reply; 9+ messages in thread
From: Denis CIOCCA @ 2013-05-17 11:28 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: Denis Ciocca, linux-iio@vger.kernel.org, Jonathan Cameron
I've tried to register a buffer on one iio device, but when I try to enable=
it=20
the error massage is about the no trigger available.
I don't want a trigger for this device, I want use only one trigger of anot=
her=20
iio device for all. It is possible?
Thanks,
Denis
On Tuesday, May 14, 2013 07:57:03 PM Lars-Peter Clausen wrote:
> On 05/14/2013 06:18 PM, Denis Ciocca wrote:
> > Hi all,
> >=20
> > I have one question about iio device. I want create with only one physi=
cal
> > device a lot of iio devices because I want to activate each 'sensor'
> > without stop the buffer and reactivate with more channels.
> > But, I want to use only one trigger, for example of the major iio devic=
e.
> > It is possible to register only a buffer of one device and use the trig=
ger
> > of another one?
>=20
> Simple answer: yes.
>=20
> - Lars
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html=
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-17 11:28 ` Denis CIOCCA
@ 2013-05-17 11:30 ` Lars-Peter Clausen
2013-05-17 12:34 ` Denis CIOCCA
0 siblings, 1 reply; 9+ messages in thread
From: Lars-Peter Clausen @ 2013-05-17 11:30 UTC (permalink / raw)
To: Denis CIOCCA; +Cc: Denis Ciocca, linux-iio@vger.kernel.org, Jonathan Cameron
On 05/17/2013 01:28 PM, Denis CIOCCA wrote:
> I've tried to register a buffer on one iio device, but when I try to enable it
> the error massage is about the no trigger available.
> I don't want a trigger for this device, I want use only one trigger of another
> iio device for all. It is possible?
> Thanks,
>
> Denis
Yes, but you still have to assign the trigger to the device in sysfs.
- Lars
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-17 11:30 ` Lars-Peter Clausen
@ 2013-05-17 12:34 ` Denis CIOCCA
2013-05-17 12:52 ` Lars-Peter Clausen
0 siblings, 1 reply; 9+ messages in thread
From: Denis CIOCCA @ 2013-05-17 12:34 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: Denis Ciocca, linux-iio@vger.kernel.org, Jonathan Cameron
> Yes, but you still have to assign the trigger to the device in sysfs.
Ok but I have to use a dummy trigger for every device?
Denis=
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-17 12:34 ` Denis CIOCCA
@ 2013-05-17 12:52 ` Lars-Peter Clausen
2013-05-18 10:20 ` Jonathan Cameron
0 siblings, 1 reply; 9+ messages in thread
From: Lars-Peter Clausen @ 2013-05-17 12:52 UTC (permalink / raw)
To: Denis CIOCCA; +Cc: Denis Ciocca, linux-iio@vger.kernel.org, Jonathan Cameron
On 05/17/2013 02:34 PM, Denis CIOCCA wrote:
>> Yes, but you still have to assign the trigger to the device in sysfs.
>
> Ok but I have to use a dummy trigger for every device?
>
> Denis
No. Allocate your buffers and allocate your one trigger. Before you can
enable your buffer you need to assign the trigger to the buffer in sysfs (By
writing to trigger/current_trigger).
- Lars
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-17 12:52 ` Lars-Peter Clausen
@ 2013-05-18 10:20 ` Jonathan Cameron
2013-05-20 7:54 ` Denis CIOCCA
2013-05-20 12:45 ` Denis CIOCCA
0 siblings, 2 replies; 9+ messages in thread
From: Jonathan Cameron @ 2013-05-18 10:20 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: Denis CIOCCA, Denis Ciocca, linux-iio@vger.kernel.org
On 05/17/2013 01:52 PM, Lars-Peter Clausen wrote:
> On 05/17/2013 02:34 PM, Denis CIOCCA wrote:
>>> Yes, but you still have to assign the trigger to the device in sysfs.
>>
>> Ok but I have to use a dummy trigger for every device?
>>
>> Denis
>
> No. Allocate your buffers and allocate your one trigger. Before you can
> enable your buffer you need to assign the trigger to the buffer in sysfs (By
> writing to trigger/current_trigger).
>
Lots of the ADC drivers do this. See max1363 for example. No sign a trigger
but it definitely has a buffer. Often these parts convert on demand but can
do it at very high rates.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-18 10:20 ` Jonathan Cameron
@ 2013-05-20 7:54 ` Denis CIOCCA
2013-05-20 12:45 ` Denis CIOCCA
1 sibling, 0 replies; 9+ messages in thread
From: Denis CIOCCA @ 2013-05-20 7:54 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Lars-Peter Clausen, Denis Ciocca, linux-iio@vger.kernel.org
On Saturday, May 18, 2013 12:20:06 PM Jonathan Cameron wrote:
> On 05/17/2013 01:52 PM, Lars-Peter Clausen wrote:
> > On 05/17/2013 02:34 PM, Denis CIOCCA wrote:
> >>> Yes, but you still have to assign the trigger to the device in sysfs.
> >>=20
> >> Ok but I have to use a dummy trigger for every device?
> >>=20
> >> Denis
> >=20
> > No. Allocate your buffers and allocate your one trigger. Before you can
> > enable your buffer you need to assign the trigger to the buffer in sysf=
s
> > (By writing to trigger/current_trigger).
>=20
> Lots of the ADC drivers do this. See max1363 for example. No sign a trig=
ger
> but it definitely has a buffer. Often these parts convert on demand but
> can do it at very high rates.
Ok, I will look!
Thanks Jonathan & Lars,
Denis=
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use buffer without trigger
2013-05-18 10:20 ` Jonathan Cameron
2013-05-20 7:54 ` Denis CIOCCA
@ 2013-05-20 12:45 ` Denis CIOCCA
1 sibling, 0 replies; 9+ messages in thread
From: Denis CIOCCA @ 2013-05-20 12:45 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Lars-Peter Clausen, Denis Ciocca, linux-iio@vger.kernel.org
> Lots of the ADC drivers do this. See max1363 for example. No sign a trigger
> but it definitely has a buffer. Often these parts convert on demand but
> can do it at very high rates.
I Jonathan,
I'm seeing the max1363 driver but I don't understand the caller of
max1363_trigger_handler function.
Usually, the iio_trigger_generic_data_rdy_poll function inside the
request_threaded_irq, call iio_trigger_poll function and I suppose that this
function is the caller of handler declarated inside iio_triggered_buffer_setup.
Many thanks,
Denis
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-05-20 12:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAEE_umrLpNJo1kMbLtktK0RH6WCKCEYR+yiTiyPJu_8G3coE7A@mail.gmail.com>
2013-05-14 16:18 ` Use buffer without trigger Denis Ciocca
2013-05-14 17:57 ` Lars-Peter Clausen
2013-05-17 11:28 ` Denis CIOCCA
2013-05-17 11:30 ` Lars-Peter Clausen
2013-05-17 12:34 ` Denis CIOCCA
2013-05-17 12:52 ` Lars-Peter Clausen
2013-05-18 10:20 ` Jonathan Cameron
2013-05-20 7:54 ` Denis CIOCCA
2013-05-20 12:45 ` Denis CIOCCA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox