License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
+ </para>
</legalnotice>
</artheader>
<section id="comedisubdevice">
<title>
<function>comedi_subdevice</function>
+</title>
<para>
The subdevice is the smallest &comedi; entity that can be used for
<quote>stand-alone</quote> DAQ, so it is no surprise that it is
int n_chan;
int subdev_flags;
int len_chanlist; /* maximum length of channel/gain list */
-
+
void *private;
-
+
<link linkend="comediasync">comedi_async</link> *async;
-
+
void *lock;
void *busy;
unsigned int runflags;
-
+
int io_bits;
-
+
<link linkend="ref-type-lsampl-t">lsampl_t</link> maxdata; /* if maxdata==0, use list */
<link linkend="ref-type-lsampl-t">lsampl_t</link> *maxdata_list; /* list is channel specific */
</listitem>
</itemizedlist>
-
+</para>
</section>
<section id="integratingdriver">
<screen>
comedi_config /dev/comedi0 ni_atmio
</screen>
+</para>
<para>
For the <literal>Data Translation</literal> board, you need to have a
integers that indicate which subdevice and channel is used in the
acquisition. The integer <parameter class=function>bit</parameter>
contains the value of the acquired bit.
+</para>
<para>
The direction of bidirectional lines can be configured using
the function
data[4]: secondary analog level.
</member>
</simplelist>
-
+</para>
<para>
Analog triggering is described by a digital combining machine that
has two sensitive digital inputs. The sensitive digital inputs are
<filename>comedi0</filename> device file is configured to point to a
valid &comedi; driver. <xref linkend="cardconfiguration"> explains
how this driver is linked to the <quote>device file</quote>.
+</para>
<para>
The code above is basically the guts of
<filename>demo/inp.c</filename>, without error checking or fancy