Added reference entries for new configuration instruction wrappers.
This commit is contained in:
parent
1979b2f2cc
commit
b3627840ac
5 changed files with 149 additions and 8 deletions
|
@ -1,21 +1,23 @@
|
|||
|
||||
SGML = calibration_funcref.sgml command_funcref.sgml dio_funcref.sgml \
|
||||
deprecated_funcref.sgml error_funcref.sgml \
|
||||
deprecated_funcref.sgml error_funcref.sgml extensions_funcref.sgml \
|
||||
drivers.sgml funcref.sgml glossary.sgml \
|
||||
install.sgml intro.sgml other.sgml reference.sgml tutorial.sgml \
|
||||
driverwriting.sgml comedilib.sgml
|
||||
|
||||
EXTRA_DIST = $(SGML) calibration_funcref.txt command_funcref.txt dio_funcref.txt \
|
||||
deprecated_funcref.txt error_funcref.txt funcref mkref drivers.txt mkdr FAQ \
|
||||
comedilib.pdf acq-seq.gif doc_html man
|
||||
deprecated_funcref.txt error_funcref.txt extensions_funcref.txt \
|
||||
funcref mkref drivers.txt mkdr FAQ \
|
||||
acq-seq.gif doc_html man
|
||||
|
||||
BUILT_SOURCES = calibration_funcref.sgml command_funcref.sgml dio_funcref.sgml \
|
||||
deprecated_funcref.sgml error_funcref.sgml funcref.sgml drivers.sgml
|
||||
deprecated_funcref.sgml error_funcref.sgml extensions_funcref.sgml \
|
||||
funcref.sgml drivers.sgml
|
||||
|
||||
if HAVE_DOCBOOK2PDF
|
||||
pdf_DATA = $(srcdir)/comedilib.pdf
|
||||
dist_pdf_DATA = comedilib.pdf
|
||||
else
|
||||
pdf_DATA =
|
||||
dist_pdf_DATA =
|
||||
endif
|
||||
|
||||
if HAVE_DOCBOOK2HTML
|
||||
|
@ -70,7 +72,7 @@ install_man:
|
|||
uninstall_man:
|
||||
for each in `find $(srcdir)/man/ -name '*.3'`; do $(RM) $(DESTDIR)$(mandir)/man3/`basename $$each` ; done
|
||||
|
||||
$(srcdir)/comedilib.pdf: $(SGML)
|
||||
comedilib.pdf: $(SGML)
|
||||
$(DOCBOOK2PDF) -o $(srcdir) $(srcdir)/comedilib.sgml
|
||||
|
||||
funcref.sgml: funcref mkref
|
||||
|
@ -91,6 +93,9 @@ deprecated_funcref.sgml: deprecated_funcref.txt mkref
|
|||
error_funcref.sgml: error_funcref.txt mkref
|
||||
$(srcdir)/mkref $(srcdir)/error_funcref.txt >$(srcdir)/error_funcref.sgml
|
||||
|
||||
extensions_funcref.sgml: extensions_funcref.txt mkref
|
||||
$(srcdir)/mkref $(srcdir)/extensions_funcref.txt >$(srcdir)/extensions_funcref.sgml
|
||||
|
||||
drivers.sgml: drivers.txt mkdr
|
||||
$(srcdir)/mkdr $(srcdir)/drivers.txt >$(srcdir)/drivers.sgml
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<!ENTITY dio-funcref SYSTEM "dio_funcref.sgml">
|
||||
<!ENTITY deprecated-funcref SYSTEM "deprecated_funcref.sgml">
|
||||
<!ENTITY error-funcref SYSTEM "error_funcref.sgml">
|
||||
<!ENTITY extensions-funcref SYSTEM "extensions_funcref.sgml">
|
||||
<!ENTITY glossary SYSTEM "glossary.sgml">
|
||||
<!ENTITY comedi "<acronym>Comedi</acronym>">
|
||||
<!ENTITY uuml "ue">
|
||||
|
@ -160,6 +161,10 @@ USA.
|
|||
<title>Error Reporting</title>
|
||||
&error-funcref;
|
||||
</section>
|
||||
<section>
|
||||
<title>Extensions</title>
|
||||
&extensions-funcref;
|
||||
</section>
|
||||
<section>
|
||||
<title>Deprecated</title>
|
||||
&deprecated-funcref;
|
||||
|
|
115
doc/extensions_funcref.txt
Normal file
115
doc/extensions_funcref.txt
Normal file
|
@ -0,0 +1,115 @@
|
|||
Function: comedi_arm -- arm a subdevice
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Param: unsigned int source
|
||||
Status: alpha
|
||||
Description:
|
||||
This function arms a subdevice. It may, for example, arm a counter
|
||||
to begin counting. The <parameter>source</parameter> parameter specifies
|
||||
what source should trigger the subdevice to begin. The possible
|
||||
sources are driver-dependant. This function is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_ARM configuration
|
||||
instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
||||
|
||||
Function: comedi_reset -- reset a subdevice
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Status: alpha
|
||||
Description:
|
||||
This function resets a subdevice. It is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_RESET configuration
|
||||
instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
||||
|
||||
Function: comedi_set_clock_source -- set master clock for a subdevice
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Param: unsigned int clock
|
||||
Param: unsigned int period_ns
|
||||
Status: alpha
|
||||
Description:
|
||||
This function selects a master clock for a subdevice. The <parameter>clock</parameter>
|
||||
parameter selects the master clock, and is driver-dependant. The <parameter>period_ns</parameter>
|
||||
parameter specifies the clock's period in nanoseconds. It may left unspecified by using
|
||||
a value of zero. Drivers will ignore the clock period if they already
|
||||
know what the clock period should be for the specified clock (i.e. for an
|
||||
on-board 20MHz oscillator). Certain boards which use a phase-locked loop to
|
||||
synchronize to external clock sources must be told the frequency of the external
|
||||
clock. Specifying a clock period for an external clock may also allow
|
||||
the driver to support TRIG_TIMER sources in commands while
|
||||
using the external clock.
|
||||
|
||||
This function is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_SET_CLOCK_SOURCE
|
||||
configuration instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
||||
|
||||
Function: comedi_set_counter_mode -- change mode of a counter subdevice
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Param: unsigned int mode
|
||||
Status: alpha
|
||||
Description:
|
||||
This function configures a counter subdevice. The meaning of the
|
||||
<parameter>mode</parameter> parameter is driver-dependent. It is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_SET_COUNTER_MODE
|
||||
configuration instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
||||
|
||||
Function: comedi_set_gate_source -- select gate source for a subdevice
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int gate_index
|
||||
Param: unsigned int gate_source
|
||||
Status: alpha
|
||||
Description:
|
||||
This function selects a gate source for a subdevice. The <parameter>gate_index</parameter>
|
||||
parameter selects which gate is being configured, should the subdevice have
|
||||
multiple gates. It takes a value
|
||||
from 0 to N-1 for a subdevice with N different gates.
|
||||
The <parameter>gate_source</parameter> parameter selects which signal you wish to
|
||||
use as
|
||||
the gate, and is also driver-dependent.
|
||||
|
||||
This function is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_SET_GATE_SOURCE
|
||||
configuration instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
||||
|
||||
Function: comedi_set_other_source -- select source signal for something other than a gate or clock
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Param: unsigned int other
|
||||
Param: unsigned int source
|
||||
Status: alpha
|
||||
Description:
|
||||
This function allows selection of a source signal for something on a subdevice
|
||||
other than a gate (which uses comedi_set_gate_source()) or a clock (which uses
|
||||
comedi_set_clock_source()). The <parameter>other</parameter> parameter selects
|
||||
which "other" we are configuring, and is driver-dependent. The
|
||||
<parameter>source</parameter> selects the source we which to use for the
|
||||
"other".
|
||||
|
||||
As an example, this function is used to select which PFI digital input channels
|
||||
should be used as the A/B/Z signals when running a counter on an NI M-Series board as
|
||||
a quadrature encoder. The <parameter>other</parameter> parameter selects either the A, B,
|
||||
or Z signal, and the <parameter>source</parameter> parameter is used to specify
|
||||
which PFI digital input channel the external A, B, or Z signal is
|
||||
physically connected to.
|
||||
|
||||
This function is only useable
|
||||
on subdevices that provide support for the INSN_CONFIG_SET_OTHER_SOURCE
|
||||
configuration instruction.
|
||||
Returns:
|
||||
0 on success, -1 on error.
|
16
doc/funcref
16
doc/funcref
|
@ -459,6 +459,22 @@ Description:
|
|||
to know of the existence of a particular feature, an existence
|
||||
test function should be written and put in the Comedilib source.
|
||||
|
||||
Function: comedi_internal_trigger -- generate soft trigger
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
Param: unsigned int subdevice
|
||||
Param: unsigned int trig_num
|
||||
Description:
|
||||
This function sends an INSN_INTTRIG instruction to a subdevice, which causes an internal triggering event.
|
||||
This event can, for example, trigger a subdevice to start an asynchronous command.
|
||||
|
||||
The <parameter>trig_num</parameter> parameter is reserved for future use, and should be set to 0.
|
||||
It is likely it will be used in the future to support multiple independent internal triggers.
|
||||
For example, an asynchronous command might be specified for a subdevice
|
||||
with a start_src of TRIG_INT, and
|
||||
a start_arg of 5. Then the start event would only be triggered if comedi_internal_trigger() were
|
||||
called on the subdevice with a <parameter>trig_num</parameter> equal to the same value of 5.
|
||||
|
||||
Function: comedi_lock -- subdevice reservation
|
||||
Retval: int
|
||||
Param: comedi_t * device
|
||||
|
|
|
@ -273,7 +273,7 @@ lsampl_t comedi_from_physical(double data,
|
|||
|
||||
/* INSN_CONFIG wrappers */
|
||||
int comedi_reset(comedi_t *device, unsigned subdevice);
|
||||
int comedi_arm(comedi_t *device, unsigned subdevice, unsigned target);
|
||||
int comedi_arm(comedi_t *device, unsigned subdevice, unsigned source);
|
||||
int comedi_set_counter_mode(comedi_t *device, unsigned subdevice, unsigned mode_bits);
|
||||
int comedi_set_clock_source(comedi_t *device, unsigned subdevice, unsigned clock, unsigned period_ns);
|
||||
int comedi_set_gate_source(comedi_t *device, unsigned subdevice, unsigned gate_index, unsigned gate_source);
|
||||
|
|
Loading…
Add table
Reference in a new issue