All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Analogy simultaneous read write commands
@ 2011-05-25  0:35 Jules Warsh
  2011-06-02 20:00 ` Alexis Berlemont
  0 siblings, 1 reply; 2+ messages in thread
From: Jules Warsh @ 2011-05-25  0:35 UTC (permalink / raw)
  To: xenomai@xenomai.org

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

Hello,

Is it possible to:
- Set a command (a4l_snd_command) to read data from an Analogy subdevice,
- Set a command (a4l_snd_command) to write data to a different Analogy subdevice,
- Trigger both commands, and

- Collect/write data from/to buffers ?


Or whatever other actions to implement the same functionality above?

Thank you.

[-- Attachment #2: Type: text/html, Size: 621 bytes --]

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

* Re: [Xenomai-help] Analogy simultaneous read write commands
  2011-05-25  0:35 [Xenomai-help] Analogy simultaneous read write commands Jules Warsh
@ 2011-06-02 20:00 ` Alexis Berlemont
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Berlemont @ 2011-06-02 20:00 UTC (permalink / raw)
  To: Jules Warsh; +Cc: xenomai@xenomai.org

Hi,

Once more, sorry for the late reply.

Jules Warsh wrote:
> Hello,
> 
> Is it possible to:
> - Set a command (a4l_snd_command) to read data from an Analogy subdevice,
> - Set a command (a4l_snd_command) to write data to a different Analogy subdevice,
> - Trigger both commands, and

Yes. It is possible

With one file descriptor (an a4l_desc_t to be more precise):
 - you can launch many synchronous acquisitions (instruction) on many
   subdevices.
 - you can launch only one asynchronous acquisition (command) on any
   subdevice (the asynchronous buffer is instanciated with the
   creation of the file descriptor)

So, all you have to do is open as many file descriptor on the same
analogy device (let's say analogy0) as the number of simultaneous
acquisitions you want to trigger.

> 
> - Collect/write data from/to buffers ?

Yes. If you have opened two file descriptors, you will read on one fd
(with a4l_async_read()) and write on the other one (with
a4l_async_write()).

> 
> 
> Or whatever other actions to implement the same functionality above?
> 
> Thank you.

> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Alexis.


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

end of thread, other threads:[~2011-06-02 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25  0:35 [Xenomai-help] Analogy simultaneous read write commands Jules Warsh
2011-06-02 20:00 ` Alexis Berlemont

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.