From: Jonathan Cameron <jic23@cam.ac.uk>
To: Prashant Shah <pshah.mumbai@gmail.com>
Cc: linux-iio@vger.kernel.org, "Getz, Robin" <Robin.Getz@analog.com>
Subject: Re: drivers for usb daq card
Date: Sat, 30 Apr 2011 11:09:43 +0100 [thread overview]
Message-ID: <4DBBDFE7.5060207@cam.ac.uk> (raw)
In-Reply-To: <BANLkTikjnjSRtDRBHjXeMfHAOEsVzkkwag@mail.gmail.com>
On 04/30/11 08:33, Prashant Shah wrote:
> Hi,
>
> I am total newbie and this is my first device drivers. I am trying to
> write drivers for National Instruments USB 6008 USB based data
> acquisition card.
>
> I was initially trying to do that with the comedi based system but I
> was suggest to try working with the IIO sub system.
That's curious. I was going to suggest you looked at comedi!
Out of interest, what was the reason given?
> I was reading
> through the IIO docs and IIO seems to be more targeted to SPI and I2C
> systems. I am not sure about how good is the support for USB based
> systems.
Everything is bus independent. It just happens that our current parts
are all spi or i2c.
> I am newbie so I dont want to do something that will be hard
> for me to work with :)
Two initial questions. Do you have the full docs? NI haven't been
helpful to my requests in the past (which has put me off ever using
their kit again). Secondly, why does this want to be in kernel space?
Limitations of the usb bus often mean you can do almost as well
with a userspace driver and they tend to be easier to write / debug.
Based on a quick look at NI's website, I'd suggest doing a userspace
driver first for this part anyway to make sure you understand the
underlying interface to the device. libusb is great for this sort of
thing!
>
> Also, we already have user space applications that interface with
> comedi like scilab and xoscope, etc. Will these applications that use
> the comedi based interface work with IIO ?
Not directly. The issue of sharing interfaces has been raised before
but I don't think any firm proposals have been made. Robin, are
you aware of any progress on this? It would probably be possible to
do this as a userspace library (I think all comedi calls go through
a library?).
Good luck!
Jonathan
>
> Regards.
> --
> 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
>
next prev parent reply other threads:[~2011-04-30 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-30 7:33 drivers for usb daq card Prashant Shah
2011-04-30 10:09 ` Jonathan Cameron [this message]
2011-04-30 15:53 ` Prashant Shah
2011-05-12 14:07 ` Jonathan Cameron
2011-05-14 9:59 ` Prashant Shah
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=4DBBDFE7.5060207@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=Robin.Getz@analog.com \
--cc=linux-iio@vger.kernel.org \
--cc=pshah.mumbai@gmail.com \
/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.