- From: Frank Mori Hess <fmhess_at_users.sourceforge.net>
- Date: Sun, 12 Sep 2004 20:10:07 -0400
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 12 September 2004 10:25 am, Bernd Porr wrote: > I'm just now developing a board which has two completely different A/D > converters with different timing, different ranges, etc. > > Can I have two AI subdevices registered in comedi? Yes, but as you noticed there can only be one subdevice that supports commands. > > The reason why I'm asking is because of the back reference to the comedi > dev structure: > > dev->read_subdev = s; > > The other option would be to separate the two devices so that they get > two different /dev/comedi. That is what you would have to do if you want to support commands on both ai subdevices. Maybe some day we'll have a one-to-one relationship between device files and subdevices, and this limitation will go away. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBROVq5vihyNWuA4URAoq8AKCFdpFvffmVG4m+7u8PbfahIoDh8wCgilM/ abUwaBCzn0t0SE/67iptAUM= =EvMM -----END PGP SIGNATURE-----
Received on 2004-09-12Z23:10:07