linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iio: Non multiplexed ADC Data
@ 2015-11-23  8:31 Phil Reid
  2015-11-23  9:15 ` Lars-Peter Clausen
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Reid @ 2015-11-23  8:31 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org

I'm in th eprocess of writing a driver for a custom ADC controller.
It's an FPGA based ADC controller with multiple ADC channels with a built in DMA master.
All channels share some attributes, eg Sample rate, with other per channel attributes, eg Gain.
The DMA controller de-multiplexes the ADC data by having a separate target buffer for each channel.
Look at the libiio interface this configuration doesn't seem to be catered for.
eg: iio_device_create_buffer creates a single buffer for all enabled channels to share.

The best way I can see is to create an iio device per channel and have them share a common data block.
Not sure what interesting behaviour this may cause.

Or have I missed something obvious..

-- 
Regards
Phil Reid


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

end of thread, other threads:[~2015-11-24  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23  8:31 iio: Non multiplexed ADC Data Phil Reid
2015-11-23  9:15 ` Lars-Peter Clausen
2015-11-24  0:17   ` Phil Reid

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).