comedilib.git
11 years agodoc: add missing -lm option to command line for compiling tut1 master
Ian Abbott [Mon, 15 Apr 2013 11:26:05 +0000 (12:26 +0100)]
doc: add missing -lm option to command line for compiling tut1

11 years agodoc: Bump to version 0.10.2.
Ian Abbott [Thu, 21 Mar 2013 16:36:42 +0000 (16:36 +0000)]
doc: Bump to version 0.10.2.

11 years agoconfigure.ac: Bump to 0.10.2
Ian Abbott [Thu, 21 Mar 2013 16:33:08 +0000 (16:33 +0000)]
configure.ac: Bump to 0.10.2

Bump the comedilib libtool version code to 10:2:10, so the comedilib
version becomes 0.10.2.

11 years agoinclude/comedi.h: synced with comedi
Ian Abbott [Thu, 21 Mar 2013 16:27:56 +0000 (16:27 +0000)]
include/comedi.h: synced with comedi

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
11 years agolib/calib_lex.l: Add #define YY_NO_INPUT to C pre-amble
Ian Abbott [Thu, 21 Mar 2013 15:49:18 +0000 (15:49 +0000)]
lib/calib_lex.l: Add #define YY_NO_INPUT to C pre-amble

This suppresses a compiler warning about 'input' defined but not used.

11 years agolib/calib_yacc.y: Move comedi_parse_calibration_file()
Ian Abbott [Thu, 21 Mar 2013 15:36:14 +0000 (15:36 +0000)]
lib/calib_yacc.y: Move comedi_parse_calibration_file()

Move the comedi_parse_calibration_file() function definition to the
bottom of the file.  It calls calib_yyparse() and the declaration might
not be in scope since we removed the declaration from
"lib/libinternal.h", but we know it will be declared somewhere above the
bottom of the generated "lib/calib_yacc.c" above the new location of
comedi_parse_calibration_file().

11 years agolib: fix calib_yyparse() conflict
Ian Abbott [Thu, 21 Mar 2013 15:12:35 +0000 (15:12 +0000)]
lib: fix calib_yyparse() conflict

For newer versions of Bison, the declaration of our calib_yyparse()
function in "lib/libinternal.h" clashes with that in the generated
"lib/calib_yacc.h".

Remove the declarations of calib_yyerror() and calib_yyparse() from
"lib/libinternal.h" and declare them in "lib/calib_yacc.c".

11 years agoconfigure.ac: Replaced AM_CONFIG_HEADER() with AC_CONFIG_HEADERS()
Ian Abbott [Mon, 21 Jan 2013 16:15:30 +0000 (16:15 +0000)]
configure.ac: Replaced AM_CONFIG_HEADER() with AC_CONFIG_HEADERS()

AM_CONFIG_HEADER is obsolete and doesn't work with Automake 1.13.  Use
AC_CONFIG_HEADERS instead.

11 years agoconfigure.ac: Move AS_LIBTOOL() and SCXI_SO_VERSION
Ian Abbott [Mon, 21 Jan 2013 16:06:40 +0000 (16:06 +0000)]
configure.ac: Move AS_LIBTOOL() and SCXI_SO_VERSION

Move the call to AS_LIBTOOL() to avoid warnings from automake 1.12.6.
Move SCXI_SO_VERSION as it is nearby!

On Gentoo Linux:
$ WANT_AUTOMAKE=1.12 ./autogen.sh
configure.ac:101: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.12/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:101: the top level
configure.ac:101: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.12/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:101: the top level
configure.ac:101: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:8669: AM_PROG_AR is expanded from...
configure.ac:101: the top level
configure.ac:101: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:8669: AM_PROG_AR is expanded from...
configure.ac:101: the top level

11 years agoconfigure.ac: Add AM_PROG_AR for automake-1.12
W. Trevor King [Sat, 19 Jan 2013 02:32:00 +0000 (02:32 +0000)]
configure.ac: Add AM_PROG_AR for automake-1.12

This is what automake told me to do:

  $ ./autogen.sh
  ...
  automake: warnings are treated as errors
  /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libcomedi.la': linking libtool libraries using a non-POSIX
  /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
  lib/Makefile.am:2:   while processing Libtool library 'libcomedi.la'
  ...
  autoreconf-2.69: automake failed with exit status: 1

AM_PROG_AR is new in automake-1.11.2.  For further details, see:

  http://lists.gnu.org/archive/html/bug-automake/2012-05/msg00009.html

11 years agodoc: Add Éric Piel to comedilib manual authors and copyright
Ian Abbott [Mon, 29 Oct 2012 17:22:29 +0000 (17:22 +0000)]
doc: Add Éric Piel to comedilib manual authors and copyright

11 years agoAUTHORS: Add Éric Piel
Ian Abbott [Mon, 29 Oct 2012 17:11:20 +0000 (17:11 +0000)]
AUTHORS: Add Éric Piel

Éric started a section on language bindings (for Python in particular)
to the Comedilib manual.

11 years agodoc: add a section about Python bindings
Éric Piel [Mon, 29 Oct 2012 17:08:09 +0000 (17:08 +0000)]
doc: add a section about Python bindings

This section goes into a "Language bindings" section where description
for Perl and Ruby could also go.

11 years agocomedi_board_info: improve display of external ranges.
Ian Abbott [Mon, 15 Oct 2012 15:18:47 +0000 (16:18 +0100)]
comedi_board_info: improve display of external ranges.

The units for a range with internal unit code `RF_EXTERNAL | UNIT_volt` is currently
displayed as " (unknown unit 256)", for example an external bipolar
voltage range -1 to 1 is displayed as:

[-1 (unknown unit 256),1 (unknown unit 256)]

Change it to be displayed as:

[-1*EXT V,1*EXT V]

11 years agocomedi_board_info: reset n_chans_for_generic_timed for each subdevice
Ian Abbott [Mon, 15 Oct 2012 14:52:47 +0000 (15:52 +0100)]
comedi_board_info: reset n_chans_for_generic_timed for each subdevice

Add variable `def_n_chans_for_generic_timed` to hold the preferred
number of channels to use in calls to `comedi_get_cmd_generic_timed()`.
Reset the `n_chans_for_generic_timed` variable to this value each time
around the loop for each subdevice before clipping the value to the
number of channels the subdevice has.

11 years agocomedi_board_info: increased length of strtmp[]
Ian Abbott [Mon, 15 Oct 2012 14:47:46 +0000 (15:47 +0100)]
comedi_board_info: increased length of strtmp[]

`strtmp` is currently declared as `char strtmp[16]`, but that may be too
short for the calls to `unit_to_desc()` when the type of unit is
unknown.  Increase its length to 32.

11 years agodoc/Makefile.am: fix maintainer-clean-local rule.
Ian Abbott [Tue, 28 Aug 2012 13:19:09 +0000 (14:19 +0100)]
doc/Makefile.am: fix maintainer-clean-local rule.

The maintainer-clean-local rule was removing the wrong file for
comedilib.pdf.

11 years agodoc: Bump to version 0.10.1.
Ian Abbott [Tue, 28 Aug 2012 11:08:47 +0000 (12:08 +0100)]
doc: Bump to version 0.10.1.

11 years agodoc/install.xml: Describe comedi_num_legacy_minors.
Ian Abbott [Tue, 28 Aug 2012 10:54:39 +0000 (11:54 +0100)]
doc/install.xml: Describe comedi_num_legacy_minors.

Add some info to the Install section about reserving devices for manual
configuration using the comedi_num_legacy_minors module parameter.

11 years agoetc/udev: Add z99_comedi.rules to EXTRA_DIST
Ian Abbott [Tue, 28 Aug 2012 10:52:42 +0000 (11:52 +0100)]
etc/udev: Add z99_comedi.rules to EXTRA_DIST

Mark z99_comedi.rules to be added to the released sources, but don't
install it.

11 years agoudev: Add commented out rule to set group owner to "iocard".
Ian Abbott [Tue, 28 Aug 2012 09:41:34 +0000 (10:41 +0100)]
udev: Add commented out rule to set group owner to "iocard".

There is already a commented out rule in the example udev rules file
"z99_comedi.rules" to set the mode to 0660 and set the group owner to
"comedi".  Add an almost identical commented out rule to set the group
owner to "iocard" as this is favoured by Debian.

11 years agoREADME.Git: Add dblatex to optional dependencies
Ian Abbott [Tue, 28 Aug 2012 09:12:50 +0000 (10:12 +0100)]
README.Git: Add dblatex to optional dependencies

11 years agoconfigure.ac: Minor correction to example package version sequence.
Ian Abbott [Wed, 22 Aug 2012 11:48:53 +0000 (12:48 +0100)]
configure.ac: Minor correction to example package version sequence.

Removed a stray '.'.

11 years agoconfigure.ac: Expand rules for setting package/library version.
Ian Abbott [Wed, 22 Aug 2012 11:20:03 +0000 (12:20 +0100)]
configure.ac: Expand rules for setting package/library version.

The comedilib manual version is usually only updated if the manual has
changed since the previous release (although it ought to change anyway
if any library interfaces have changed).  Allow a lower-case letter (or
sequence of letters) to be appended to the comedilib package version if
the only changes are outside the library sources and language bindings.

11 years agoconfigure.ac: Bump to 0.10.1
Ian Abbott [Wed, 22 Aug 2012 09:09:58 +0000 (10:09 +0100)]
configure.ac: Bump to 0.10.1

Bump the comedilib libtool version code to 10:1:10, so the comedilib
version becomes 0.10.1.

The comedilib manual version hasn't been updated.

11 years agocomedi_open has file descriptor leak
Anders Blomdell [Wed, 22 Aug 2012 07:21:56 +0000 (08:21 +0100)]
comedi_open has file descriptor leak

If something fails after a succesful open, cleanup fails to close the file.

The code

   cleanup:
         if(it)
                 free(it);

needs to be replaced with something like:

   cleanup:
         if (it) {
           if (it->fd >= 0) {
             close(it->fd);
           }
         free(it);

Regards

Anders Blomdell

11 years agoconfigure.ac: Add reminder comment for updating documentation version.
Ian Abbott [Tue, 15 May 2012 13:31:08 +0000 (14:31 +0100)]
configure.ac: Add reminder comment for updating documentation version.

The comedilib manual mentions the version of comedilib it applies to.
This is not done automatically; it is done by editing
"doc/comedilib.ent".  Add a comment to configure.ac as a reminder.

11 years agodoc: Add Comedilib version number
Ian Abbott [Mon, 14 May 2012 16:00:35 +0000 (17:00 +0100)]
doc: Add Comedilib version number

In "comedilib.ent", Add an XML entity 'comedilib_version' expanding to
the Comedilib version '0.10.0'.  This is hard-edited in rather than set
dynamically.  Setting it dynamically would be nice but producing it from
an AC_OUTPUT() file isn't all that nice as it would end up in the
'build' tree and we'd some ugly 'make' rule to copy it to the 'source'
tree.  For now, just edit it manually as required.  At least having it
as an entity means it only needs to be set in a single documentation
file!

In "comedilib.xml", change the subtitle to mention Comedilib and the
version number, using the comediliv_version entity.

11 years agodemo/tut3.c: memset options to 0 before modifying
Ian Abbott [Mon, 14 May 2012 14:04:10 +0000 (15:04 +0100)]
demo/tut3.c: memset options to 0 before modifying

options.verbose was used uninitialized.

11 years agodemo/tut3: Removed a couple of unused variables.
Ian Abbott [Mon, 14 May 2012 13:54:33 +0000 (14:54 +0100)]
demo/tut3: Removed a couple of unused variables.

11 years agodemo/pwm: Removed an unused variable.
Ian Abbott [Mon, 14 May 2012 13:53:13 +0000 (14:53 +0100)]
demo/pwm: Removed an unused variable.

11 years agodemo/pwm: Bug fix - should have called comedi_close()
Ian Abbott [Mon, 14 May 2012 13:51:06 +0000 (14:51 +0100)]
demo/pwm: Bug fix - should have called comedi_close()

The code called close(device) instead of comedi_close(device) where
device came from comedi_open.

11 years agodemo/choose_clock: Fix a printf.
Ian Abbott [Mon, 14 May 2012 13:45:37 +0000 (14:45 +0100)]
demo/choose_clock: Fix a printf.

"Selecting master clock %d for channel %d on subdevice %d.\n"

The %d after subdevice was missing although the corresponding parameter
in the argument list was present.

11 years agocomedi_board_info: Moved man page into ../man
Ian Abbott [Mon, 14 May 2012 13:35:23 +0000 (14:35 +0100)]
comedi_board_info: Moved man page into ../man

I'm not sure if all man pages should go in the general 'man'
subdirectory or a more specific subdirectory, but as the general 'man'
subdirectory already contained a man page for comedi_config (which has
its own source subdirectory), I moved the man page for comedi_board_info
there for consistency.

Also changed the EXTRA_DIST line in man/Makefile.am.

11 years agodoc/drivers.txt: Minor correction for USB-DUX-FAST.
Ian Abbott [Mon, 14 May 2012 13:10:13 +0000 (14:10 +0100)]
doc/drivers.txt: Minor correction for USB-DUX-FAST.

The Devices line still showed USB-DUX-FAST as USB-DUX.

11 years agoUpdated the drivers.txt
Bernd Porr [Sun, 13 May 2012 14:00:34 +0000 (15:00 +0100)]
Updated the drivers.txt

11 years agoChanged my e-mail address to the linux-usb-daq one to be
Bernd Porr [Sun, 13 May 2012 10:09:45 +0000 (11:09 +0100)]
Changed my e-mail address to the linux-usb-daq one to be
consistent with the driver e-mails which I also changed
to the company e-mails adress.

11 years agodoc/funcref: Fix "Returns:" for comedi_to_physical.
Ian Abbott [Fri, 11 May 2012 11:56:55 +0000 (12:56 +0100)]
doc/funcref: Fix "Returns:" for comedi_to_physical.

There was a stray space before the "Returns:" heading so it wasn't
processed as intended.  Also, there was an empty line above it leading
to an empty paragraph in the DocBook funcref.xml.

11 years agodoc/funcref: Add links between comedi_to_phys and comedi_set_global_oor_behavior.
Ian Abbott [Fri, 11 May 2012 11:45:29 +0000 (12:45 +0100)]
doc/funcref: Add links between comedi_to_phys and comedi_set_global_oor_behavior.

11 years agodoc/funcref: Moved in comedi_set_global_oor_behavior
Ian Abbott [Fri, 11 May 2012 11:34:31 +0000 (12:34 +0100)]
doc/funcref: Moved in comedi_set_global_oor_behavior

Moved function comedi_set_global_oor_behavior out of the deprecated
section as it is associated with the comedi_to_phys function.

11 years agoMoved comedi_to_phys and comedi_from_phys back to the main
Bernd Porr [Fri, 11 May 2012 10:15:45 +0000 (11:15 +0100)]
Moved comedi_to_phys and comedi_from_phys back to the main
section. Both comedi_to_phys and comedi_to_physical complement
each other. Comedi_to_phys is linear and very fast whereas
comedi_to_physical is more precise but requires polynomials
and calibration data.

11 years agodoc/comedilib_html_config.xsl: Use numbered sections.
Ian Abbott [Thu, 10 May 2012 13:33:33 +0000 (14:33 +0100)]
doc/comedilib_html_config.xsl: Use numbered sections.

Change DocBook XSL parameters for HTML output to use numbered sections
(like it was before we switched from SGML to XML) and to use just the
numbers in cross references, rather than number and/or title.

11 years agodoc/intro.xml: Replace a link to figure 1 with an xref.
Ian Abbott [Thu, 10 May 2012 13:14:56 +0000 (14:14 +0100)]
doc/intro.xml: Replace a link to figure 1 with an xref.

11 years agodemo/python/mmap.py: Fix buffer wraparound bug.
Ian Abbott [Thu, 10 May 2012 12:49:57 +0000 (13:49 +0100)]
demo/python/mmap.py: Fix buffer wraparound bug.

Fix bug reported by Ross Williamson where the code does not deal with
buffer wraparound within a chunk of data.

11 years agodoc/other.xml: Add extra details about range and aref.
Ian Abbott [Wed, 9 May 2012 17:41:51 +0000 (18:41 +0100)]
doc/other.xml: Add extra details about range and aref.

Add extra detail to the section on acquisition functions about the
range and aref parameters, and describe the comedi_range type.

The whole section is still a bit higgledy-piggledy and could do with
some rearrangement one day!

11 years agodoc/other.xml: Small DocBook mark-up fix.
Ian Abbott [Wed, 9 May 2012 16:40:34 +0000 (17:40 +0100)]
doc/other.xml: Small DocBook mark-up fix.

Use proper mark-up for sqrt function in slowly varying inputs section.

11 years agodoc/comedilib_dblatex_config.xsl: Set function.parens to "1".
Ian Abbott [Wed, 9 May 2012 16:28:58 +0000 (17:28 +0100)]
doc/comedilib_dblatex_config.xsl: Set function.parens to "1".

Persuades dblatex to output parentheses for all the <function> tags,
even those without <parameter> tags inside.

11 years agodoc/comedilib_html_config.xsl: Set function.parens to "1".
Ian Abbott [Wed, 9 May 2012 16:22:31 +0000 (17:22 +0100)]
doc/comedilib_html_config.xsl: Set function.parens to "1".

This makes sure the HTML output for
<function>foo<parameter>bar</parameter><parameter>baz</parameter></function>
includes parentheses, although it doesn't seem to add empty parentheses
after a plain <function>foo</function> which perhaps it should.

11 years agodoc/reference.xml: Added CR_PACK_FLAGS()
Ian Abbott [Wed, 9 May 2012 16:12:23 +0000 (17:12 +0100)]
doc/reference.xml: Added CR_PACK_FLAGS()

Added description of CR_PACK_FLAGS() macro and the various flag bits.

11 years agodoc/glossary.xml: A few DocBook mark-up changes.
Ian Abbott [Wed, 9 May 2012 15:05:02 +0000 (16:05 +0100)]
doc/glossary.xml: A few DocBook mark-up changes.

11 years agodoc/driverwriting.xml: Various changes.
Ian Abbott [Wed, 9 May 2012 14:50:17 +0000 (15:50 +0100)]
doc/driverwriting.xml: Various changes.

Some DocBook mark-up changes.  Also avoided absolute path-names for
sources as people tend to put them in different places!  Also changed
instructions for submitting drivers for review.

11 years agodoc/extensions_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Wed, 9 May 2012 13:45:18 +0000 (14:45 +0100)]
doc/extensions_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/error_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Wed, 9 May 2012 13:16:23 +0000 (14:16 +0100)]
doc/error_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/dio_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Wed, 9 May 2012 11:32:05 +0000 (12:32 +0100)]
doc/dio_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/deprecated_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 17:44:48 +0000 (18:44 +0100)]
doc/deprecated_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/calibration_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 17:08:56 +0000 (18:08 +0100)]
doc/calibration_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/command_funcref.txt: Some DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 16:08:16 +0000 (17:08 +0100)]
doc/command_funcref.txt: Some DocBook mark-up changes.

11 years agodoc/funcref: Some DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 15:51:49 +0000 (16:51 +0100)]
doc/funcref: Some DocBook mark-up changes.

11 years agodoc/install.xml: Fixed a link.
Ian Abbott [Tue, 8 May 2012 13:12:11 +0000 (14:12 +0100)]
doc/install.xml: Fixed a link.

11 years agodoc/reference.xml: Minor change.
Ian Abbott [Tue, 8 May 2012 13:04:55 +0000 (14:04 +0100)]
doc/reference.xml: Minor change.

Used a proper cross reference to driver structures.

11 years agodoc/other.xml: More DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 12:58:27 +0000 (13:58 +0100)]
doc/other.xml: More DocBook mark-up changes.

More changes, mostly adding <structfield> tags.

11 years agodoc/comedilib.ent: Got rid of a couple of redundant entities.
Ian Abbott [Tue, 8 May 2012 11:25:28 +0000 (12:25 +0100)]
doc/comedilib.ent: Got rid of a couple of redundant entities.

Got rid of the 'hellip' and 'uuml' entities in favour of predefined
versions of these entities.

11 years agodoc/install.xml: A few DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 11:11:55 +0000 (12:11 +0100)]
doc/install.xml: A few DocBook mark-up changes.

11 years agodoc/tutorial.xml: A few DocBook mark-up changes.
Ian Abbott [Tue, 8 May 2012 10:35:22 +0000 (11:35 +0100)]
doc/tutorial.xml: A few DocBook mark-up changes.

11 years agodoc/other.xml, reference.xml: Slowly varying inputs and comedi triggers
Ian Abbott [Fri, 4 May 2012 17:45:33 +0000 (18:45 +0100)]
doc/other.xml, reference.xml: Slowly varying inputs and comedi triggers

Mention that the stuff that relies on the COMEDI_TRIG ioctl, including
the slowly varying input (comedi_sv_...) functions no longer work with
current versions of the Comedi kernel layer.

11 years agodoc/reference.xml: Improve description of comedi_insnlist...
Ian Abbott [Fri, 4 May 2012 17:29:47 +0000 (18:29 +0100)]
doc/reference.xml: Improve description of comedi_insnlist...

... by adding a link to the comedi_do_insnlist function.

11 years agodoc/reference.xml: Removed some comedilib internals.
Ian Abbott [Fri, 4 May 2012 17:20:42 +0000 (18:20 +0100)]
doc/reference.xml: Removed some comedilib internals.

Removed subdevice_struct as it is internal to comedilib.  Removed
struct comedi_t_struct, leaving only the comedi_t typedef as
applications only see it as a pointer to an opaque, incomplete type.

11 years agodoc/reference.xml: More DocBook mark-up changes.
Ian Abbott [Fri, 4 May 2012 17:10:55 +0000 (18:10 +0100)]
doc/reference.xml: More DocBook mark-up changes.

11 years agodoc: Use a stylesheet for dblatex
Ian Abbott [Fri, 4 May 2012 15:32:35 +0000 (16:32 +0100)]
doc: Use a stylesheet for dblatex

Add comedilib_dblatex_config.xsl stylesheet and pass it to dblatex when
producing PDF output.  The current version of the stylesheet doesn't
make much difference to the output, but it's somewhere we can put stuff
later.

We probably want to do something similar for the other PDF backends, but
those are currently broken anyway.

11 years agodoc/other.xml: Moved a few tags around and minor changes.
Ian Abbott [Thu, 3 May 2012 18:56:59 +0000 (19:56 +0100)]
doc/other.xml: Moved a few tags around and minor changes.

Moved <link> tags inside <function>, <type>, <constant> etc. tags so
fonts stay a bit more consistent.

11 years agoMerge branch 'master' of git://comedi.org/git/comedi/comedilib
Ian Abbott [Thu, 3 May 2012 12:06:46 +0000 (13:06 +0100)]
Merge branch 'master' of git://comedi.org/git/comedi/comedilib

11 years agoRemoved a para from the section about proc which mentioned an NI
Bernd Porr [Thu, 3 May 2012 01:11:14 +0000 (02:11 +0100)]
Removed a para from the section about proc which mentioned an NI
card but that's now the dux board from above actually.

11 years agoJust spotted that the documentation also talks about board_info.
Bernd Porr [Thu, 3 May 2012 01:07:30 +0000 (02:07 +0100)]
Just spotted that the documentation also talks about board_info.
I've updated it as well: explained the new command comedi_board_info.

11 years agoAdded a couple of sentences about async acquisition and the
Bernd Porr [Thu, 3 May 2012 00:24:22 +0000 (01:24 +0100)]
Added a couple of sentences about async acquisition and the
two modes cards do it and then mentioned our new board_info.

11 years agoChanged some of the descriptions for the SDF flags which were
Bernd Porr [Thu, 3 May 2012 00:03:16 +0000 (01:03 +0100)]
Changed some of the descriptions for the SDF flags which were
a bit misleading.

11 years agoJust what I said in the git log is now also actually in the man page
Bernd Porr [Wed, 2 May 2012 23:52:13 +0000 (00:52 +0100)]
Just what I said in the git log is now also actually in the man page
namely that the frequency option is only there for debugging.

11 years agoAdded comedi_board_info which has been inspired by the original
Bernd Porr [Wed, 2 May 2012 23:39:04 +0000 (00:39 +0100)]
Added comedi_board_info which has been inspired by the original
info in the demo directory. I've made it a bit more verbose
and also took into account that now the generic_timed command
takes more than one channel so that a user can experiment which
sampling rates are possible with different channel numbers.
I've also added an option to set the sampling rate for the generic_timed
command. That sould actually not be needed but I'm sure there
are drivers out there which do not correct the sampling rate
downwards automatically.

11 years agoAdded info that '-n' is used to select the waveform.
Bernd Porr [Wed, 2 May 2012 17:40:07 +0000 (18:40 +0100)]
Added info that '-n' is used to select the waveform.

11 years agoMerge branch 'master' of ssh://comedi.org/git/comedi/comedilib
Bernd Porr [Wed, 2 May 2012 16:59:46 +0000 (17:59 +0100)]
Merge branch 'master' of ssh://comedi.org/git/comedi/comedilib

11 years agoCreated a PWM demo using the newly introduced defines to
Bernd Porr [Wed, 2 May 2012 16:58:15 +0000 (17:58 +0100)]
Created a PWM demo using the newly introduced defines to
manipulate PWM frequency.

11 years agodoc/other.xml: More fiddling about.
Ian Abbott [Wed, 2 May 2012 14:47:59 +0000 (15:47 +0100)]
doc/other.xml: More fiddling about.

More documentation tidy-ups.  I'll probably get bored eventually!

11 years agodoc/comedilib.xml: Add myself (Ian Abbott) to list of authors.
Ian Abbott [Wed, 2 May 2012 12:04:24 +0000 (13:04 +0100)]
doc/comedilib.xml: Add myself (Ian Abbott) to list of authors.

11 years agodoc/tutorial.xml: Fix a broken link.
Ian Abbott [Wed, 2 May 2012 12:01:41 +0000 (13:01 +0100)]
doc/tutorial.xml: Fix a broken link.

11 years agodoc/other.xml: Use comedi_dio_bitfield2 instead of comedi_dio_bitfield.
Ian Abbott [Wed, 2 May 2012 11:54:46 +0000 (12:54 +0100)]
doc/other.xml: Use comedi_dio_bitfield2 instead of comedi_dio_bitfield.

Rework text to use comedi_dio_bitfield2 as comedi_dio_bitfield is marked
as deprecated elsewhere in the document.

11 years agoI've added a bit more "meat" to the asynchronous acquisition section
Bernd Porr [Tue, 1 May 2012 18:41:38 +0000 (19:41 +0100)]
I've added a bit more "meat" to the asynchronous acquisition section
and added myself to the authors section.

11 years agoconfigure: Avoid PDF generation by default if don't have dblatex
Ian Abbott [Tue, 1 May 2012 17:03:57 +0000 (18:03 +0100)]
configure: Avoid PDF generation by default if don't have dblatex

Changed handling of --with-pdf-backend[=yes] to avoid picking the default
xmlto backend for PDF generation because it's broken.

The default xmlto backend for PDF generation can still be selected using
--with-pdf-backend=default if you really want to try it.

11 years agodoc/funcref: Added missing comedi_data_read_n
Ian Abbott [Tue, 1 May 2012 16:42:15 +0000 (17:42 +0100)]
doc/funcref: Added missing comedi_data_read_n

There was a broken link to the comedi_data_read_n function from
elsewhere, so we'd better add a section for it.

11 years agodoc: Use ansi style funcsynopsis for html output.
Ian Abbott [Tue, 1 May 2012 16:14:27 +0000 (17:14 +0100)]
doc: Use ansi style funcsynopsis for html output.

Set XSL parameter "funcsynopsis.style" to "ansi" in the XSL stylesheet
used for HTML output (comedilib_html_config.xsl).

11 years agodoc/mkref: Add some refmiscinfo for man pages
Ian Abbott [Tue, 1 May 2012 15:54:39 +0000 (16:54 +0100)]
doc/mkref: Add some refmiscinfo for man pages

Make the man pages a bit neater.

11 years agodoc/other.xml: Some DocBook markup changes.
Ian Abbott [Tue, 1 May 2012 14:42:07 +0000 (15:42 +0100)]
doc/other.xml: Some DocBook markup changes.

11 years agodoc: A few whitespace tweaks in program listings
Ian Abbott [Tue, 1 May 2012 11:51:08 +0000 (12:51 +0100)]
doc: A few whitespace tweaks in program listings

11 years agodoc/other.xml: Replaced simplelists
Ian Abbott [Tue, 1 May 2012 10:48:46 +0000 (11:48 +0100)]
doc/other.xml: Replaced simplelists

Replaced some simplelists with variablelists to fix some dblatex layout
problems.

11 years agoI've updated the manual in the section configuration and
Bernd Porr [Fri, 27 Apr 2012 00:37:33 +0000 (01:37 +0100)]
I've updated the manual in the section configuration and
also updated the tutorial. I've simplified the tut2.c
by using comedi2phys instead of comedi2physical. The use of
polynomials as a 2nd comedi program is a bit too difficult
for a novice and might deter the user to dig deeper into
the coding. Also, I've added tut3.c which is a stripped
down version of cmd.c and of that again the relevant lines
for the handbook to save space.

11 years agoRemoved old hotplug install which is no longer used at all and
Bernd Porr [Thu, 26 Apr 2012 22:24:50 +0000 (23:24 +0100)]
Removed old hotplug install which is no longer used at all and
just left udev as the only hotplug mechanism. I've also added
an option to disable the installation of the firmware. This
is useful for debian or ubuntu packages where the firmware
is now provided by a package accompanying the staging kernel.
All usbdux files are included in the kernel firmware packages.
Package maintainers should use the --disable-firmware option.

11 years agodoc/other.xml: Make table of configuration instructions less ugly.
Ian Abbott [Wed, 25 Apr 2012 17:34:54 +0000 (18:34 +0100)]
doc/other.xml: Make table of configuration instructions less ugly.

The PDF output of the table of configurations was awful.  Fiddled with
the column widths a bit and simplified the layout "Meanings of data[1],..."
column to allow it to wrap.

11 years agoconfigure: Allow choice of backend for PDF generation.
Ian Abbott [Wed, 25 Apr 2012 16:14:16 +0000 (17:14 +0100)]
configure: Allow choice of backend for PDF generation.

Add --with-pdf-backend=[yes|no|dblatex|fop|default] option which
defaults to "yes".  This controls the option passed to 'xmlto' to
generate PDFs.

If set to "yes" (the default) it looks for 'dblatex' and uses it as the
backend for 'xmlto' if found, otherwise 'xmlto' will use the default
backend.

If set to "no" (same as --without-pdf-backend), PDF generation is
disabled.

If set to "dblatex" it looks for 'dblatex' and uses it as the backend
for 'xmlto' if found, otherwise PDF generation is disabled.

If set to "fop" it looks for 'fop' and uses it as the backend
for 'xmlto' if found, otherwise PDF generation is disabled.

If set to "default", 'xmlto' will use the default backend.

11 years agodoc/drivers.txt: Rebuilt from comedi
Ian Abbott [Mon, 23 Apr 2012 17:12:41 +0000 (18:12 +0100)]
doc/drivers.txt: Rebuilt from comedi

Rebuilt "doc/drivers.txt" using "make Documentation/comedi/drivers.txt"
in the Comedi package.  Note: this scans the driver sources included
with the comedi.org Comedi package, not the Linux "staging" Comedi
sources, so some newer, staging-only drivers are missing.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
11 years agodoc/Makefile.am: Create directory for pdf output
Ian Abbott [Mon, 23 Apr 2012 16:52:06 +0000 (17:52 +0100)]
doc/Makefile.am: Create directory for pdf output

dblatex is passed the option `-o $(srcdir)/pdf`, but if this directory
does not exist, the PDF file is created with the name 'pdf' in
$(srcdir).  Make the directory so that the -o option treats the
specified name as an output directory instead of an output filename.

11 years agoetc/hotplug/usbduxsigma: Remove Makefile and Makefile.in ...
Ian Abbott [Mon, 23 Apr 2012 16:29:51 +0000 (17:29 +0100)]
etc/hotplug/usbduxsigma: Remove Makefile and Makefile.in ...

... but keep Makefile.am of course!

11 years agoUpdated usbdux firmware files. The udev hotplug mechanism
Bernd Porr [Mon, 23 Apr 2012 13:03:12 +0000 (14:03 +0100)]
Updated usbdux firmware files. The udev hotplug mechanism
now takes binary files and no longer hex files. Also
added the firmware for usbduxsigma.