comedilib.git
13 years agoDefined SWIG_USE_OLD_TYPEMAPS as a temporary measure to work with SWIG 2.0.
Ian Abbott [Mon, 8 Nov 2010 10:42:42 +0000 (10:42 +0000)]
Defined SWIG_USE_OLD_TYPEMAPS as a temporary measure to work with SWIG 2.0.

14 years agoSpecify EXTRA_DIST files in subdirectories explicitly.
Ian Abbott [Wed, 24 Mar 2010 16:45:15 +0000 (16:45 +0000)]
Specify EXTRA_DIST files in subdirectories explicitly.

14 years agoAdded channel parameter to comedi_set_clock_source() and
Ian Abbott [Fri, 19 Mar 2010 13:44:56 +0000 (13:44 +0000)]
Added channel parameter to comedi_set_clock_source() and
comedi_get_clock_source().  Bumped library version to 0.10.0.

14 years agocomedi_find_range() should skip ranges that don't match specified units.
Ian Abbott [Wed, 17 Feb 2010 18:28:15 +0000 (18:28 +0000)]
comedi_find_range() should skip ranges that don't match specified units.

14 years agoCheck subdevice type.
Ian Abbott [Thu, 13 Aug 2009 11:16:04 +0000 (11:16 +0000)]
Check subdevice type.

14 years agoUse negative options.value to set up time as a duty cycle.
Ian Abbott [Thu, 13 Aug 2009 11:09:05 +0000 (11:09 +0000)]
Use negative options.value to set up time as a duty cycle.

15 years agoGenerates also binary format for the new comedi driver integrated into
Bernd Porr [Fri, 17 Apr 2009 20:41:45 +0000 (20:41 +0000)]
Generates also binary format for the new comedi driver integrated into
the mainstrain linux kernel

15 years agoGenerates also binary format for the new kernel comedi drivers
Bernd Porr [Fri, 17 Apr 2009 20:40:33 +0000 (20:40 +0000)]
Generates also binary format for the new kernel comedi drivers

15 years agoAdd brief note about dependencies for Python and Ruby bindings.
Ian Abbott [Tue, 31 Mar 2009 15:08:55 +0000 (15:08 +0000)]
Add brief note about dependencies for Python and Ruby bindings.

15 years agoAdded the installtion instructions from the Wiki and removed reference
Bernd Porr [Mon, 16 Mar 2009 19:30:39 +0000 (19:30 +0000)]
Added the installtion instructions from the Wiki and removed reference
to Debian woody packages. I had recently quite a lot of e-mails
asking about the permissions of the comedi files and every time the
the problem was that the udev rules were installed in /usr/local/etc.

15 years agocomedi_get_default_calibration_path(): Check result of asprintf() for error.
Ian Abbott [Wed, 18 Feb 2009 15:35:09 +0000 (15:35 +0000)]
comedi_get_default_calibration_path(): Check result of asprintf() for error.

15 years agoUpdate setup.rb using http://i.loveruby.net/archive/setup/setup-3.4.1.tar.gz
Ian Abbott [Wed, 18 Feb 2009 15:14:53 +0000 (15:14 +0000)]
Update setup.rb using i.loveruby.net/archive/setup/setup-3.4.1.tar.gz

15 years agoMove "comedi_errno.h" into "include/" and install it.
Ian Abbott [Wed, 18 Feb 2009 14:47:06 +0000 (14:47 +0000)]
Move "comedi_errno.h" into "include/" and install it.

15 years agoPut __comedi_errno variable into thread-local storage if the compiler
Ian Abbott [Wed, 18 Feb 2009 14:10:54 +0000 (14:10 +0000)]
Put __comedi_errno variable into thread-local storage if the compiler
supports it.  Configuration test uses Alan Woodland's 'ax_tls.m4' from
<http://autoconf-archive.cryp.to/ax_tls.html>.

15 years agoAllow swig to include comedi.h and comedilib.h from comedi.i to avoid
Ian Abbott [Fri, 30 Jan 2009 14:51:38 +0000 (14:51 +0000)]
Allow swig to include comedi.h and comedilib.h from comedi.i to avoid
duplication.

15 years agoAdded updates from comedi.h and comedilib.h.
Ian Abbott [Fri, 30 Jan 2009 14:21:52 +0000 (14:21 +0000)]
Added updates from comedi.h and comedilib.h.

15 years agoAdded dependencies flex and bison, and (optionally) swig, python, ruby and
Ian Abbott [Tue, 6 Jan 2009 12:19:31 +0000 (12:19 +0000)]
Added dependencies flex and bison, and (optionally) swig, python, ruby and
xmlto.

15 years agothe udev scripts are no longer needed because of autoconf in kernelspace
Bernd Porr [Sun, 21 Dec 2008 14:29:53 +0000 (14:29 +0000)]
the udev scripts are no longer needed because of autoconf in kernelspace
and the drivers request the firmware now via the standard udev firmware
helper.

15 years agoFixed do_test_for_insn_bits(), broken by validity checks added to
Ian Abbott [Thu, 18 Dec 2008 17:23:14 +0000 (17:23 +0000)]
Fixed do_test_for_insn_bits(), broken by validity checks added to
comedi_do_insnlist().  Call comedi_ioctl() instead of comedi_do_insnlist().

15 years agoRemoved unneeded comedi_insnlist from do_test_for_insn().
Ian Abbott [Thu, 18 Dec 2008 16:44:20 +0000 (16:44 +0000)]
Removed unneeded comedi_insnlist from do_test_for_insn().

15 years agoCorrected the 'BUG' message in do_test_for_insnlist() (it reported the
Ian Abbott [Thu, 18 Dec 2008 16:38:51 +0000 (16:38 +0000)]
Corrected the 'BUG' message in do_test_for_insnlist() (it reported the
wrong function).

15 years agoOops, I missed one of the info to board_info changes.
Ian Abbott [Thu, 18 Dec 2008 11:43:27 +0000 (11:43 +0000)]
Oops, I missed one of the info to board_info changes.

15 years agodemo/info is now demo/board_info. Thanks to JuanPi for pointing it out.
Ian Abbott [Thu, 18 Dec 2008 11:23:48 +0000 (11:23 +0000)]
demo/info is now demo/board_info.  Thanks to JuanPi for pointing it out.

15 years agoPersistent names by pci device path should be in by-path subdirectory,
Frank Mori Hess [Thu, 13 Nov 2008 14:40:48 +0000 (14:40 +0000)]
Persistent names by pci device path should be in by-path subdirectory,
not by-id.

15 years agoAdded C++ wrapper for comedi_get_buffer_contents().
Frank Mori Hess [Thu, 13 Nov 2008 14:17:15 +0000 (14:17 +0000)]
Added C++ wrapper for comedi_get_buffer_contents().

15 years agoSimplified the comedi rules for usbdux(fast). Also fixed the coldplug problem: the...
Bernd Porr [Sun, 9 Nov 2008 21:42:41 +0000 (21:42 +0000)]
Simplified the comedi rules for usbdux(fast). Also fixed the coldplug problem: the script was only called after a hotplug but not at boot time. This should work now.

15 years agoAdded some device and subdevice validity checks.
Ian Abbott [Wed, 5 Nov 2008 12:52:25 +0000 (12:52 +0000)]
Added some device and subdevice validity checks.

15 years agoHandle COMEDI_SUBD_PWM and check for future unknown subdevice types.
Ian Abbott [Wed, 5 Nov 2008 11:40:42 +0000 (11:40 +0000)]
Handle COMEDI_SUBD_PWM and check for future unknown subdevice types.

15 years agoMade suffix on persistent subdevice symlinks use underscore
Frank Mori Hess [Mon, 20 Oct 2008 19:49:02 +0000 (19:49 +0000)]
Made suffix on persistent subdevice symlinks use underscore
for consistency.

15 years agoAdded example udev rules file for new udev/sysfs in comedi for pci boards.
Frank Mori Hess [Mon, 20 Oct 2008 19:37:57 +0000 (19:37 +0000)]
Added example udev rules file for new udev/sysfs in comedi for pci boards.

15 years agoUpdated it to only run the (unreliable) do_test_for_insn_bits() if the
Frank Mori Hess [Tue, 16 Sep 2008 14:49:35 +0000 (14:49 +0000)]
Updated it to only run the (unreliable) do_test_for_insn_bits() if the
information was not available in the subdevice info.

15 years agoAdded subdevice::subdevice_type() wrapper.
Frank Mori Hess [Tue, 16 Sep 2008 14:48:14 +0000 (14:48 +0000)]
Added subdevice::subdevice_type() wrapper.

15 years agosynced with comedi.
Frank Mori Hess [Tue, 16 Sep 2008 14:01:38 +0000 (14:01 +0000)]
synced with comedi.

15 years agofixed typo in printf.
Frank Mori Hess [Thu, 4 Sep 2008 21:24:42 +0000 (21:24 +0000)]
fixed typo in printf.

15 years agoFixed memory leak in comedi_cleanup_calibration().
Frank Mori Hess [Fri, 29 Aug 2008 19:17:40 +0000 (19:17 +0000)]
Fixed memory leak in comedi_cleanup_calibration().

15 years agoAdded missing return type to member function declaration.
Frank Mori Hess [Fri, 29 Aug 2008 13:38:27 +0000 (13:38 +0000)]
Added missing return type to member function declaration.

15 years agoAdded binding for comedi_get/set_routing.
Frank Mori Hess [Wed, 20 Aug 2008 15:15:25 +0000 (15:15 +0000)]
Added binding for comedi_get/set_routing.

15 years agoAdded comment about using gpct_encoder demo with 660x boards.
Frank Mori Hess [Wed, 20 Aug 2008 00:27:16 +0000 (00:27 +0000)]
Added comment about using gpct_encoder demo with 660x boards.

15 years agoAdded C++ binding for comedi_get_clock_source. Fixed binding for
Frank Mori Hess [Wed, 6 Aug 2008 20:06:16 +0000 (20:06 +0000)]
Added C++ binding for comedi_get_clock_source.  Fixed binding for
comedi_find_subdevice_by_type.

15 years agoAdded AC_CONFIG_MACRO_DIR([m4]).
Ian Abbott [Thu, 31 Jul 2008 09:54:43 +0000 (09:54 +0000)]
Added AC_CONFIG_MACRO_DIR([m4]).

15 years agoAdded comedi::subdevice::set_clock_source, set_counter_mode, and
Frank Mori Hess [Wed, 25 Jun 2008 15:47:06 +0000 (15:47 +0000)]
Added comedi::subdevice::set_clock_source, set_counter_mode, and
set_gate_source.

15 years agoAdded comedi::subdevice::reset wrapper for comedi_reset().
Frank Mori Hess [Wed, 25 Jun 2008 15:14:23 +0000 (15:14 +0000)]
Added comedi::subdevice::reset wrapper for comedi_reset().

16 years agoAdded specification of return value for comedi_dio_bitfield2.
Frank Mori Hess [Thu, 1 May 2008 17:30:11 +0000 (17:30 +0000)]
Added specification of return value for comedi_dio_bitfield2.

16 years agoFix some 64-bit warnings.
Ian Abbott [Wed, 23 Apr 2008 18:53:09 +0000 (18:53 +0000)]
Fix some 64-bit warnings.

16 years agoAdded wrappers for comedi_get_hardware_buffer_size and comedi_find_range.
Frank Mori Hess [Mon, 31 Mar 2008 17:08:33 +0000 (17:08 +0000)]
Added wrappers for comedi_get_hardware_buffer_size and comedi_find_range.

16 years agoAdded description of return value from comedi_internal_trigger().
Frank Mori Hess [Fri, 28 Mar 2008 21:11:49 +0000 (21:11 +0000)]
Added description of return value from comedi_internal_trigger().

16 years agoAdded wrapper for comedi_internal_trigger().
Frank Mori Hess [Fri, 28 Mar 2008 21:10:56 +0000 (21:10 +0000)]
Added wrapper for comedi_internal_trigger().

16 years agoAdded reference entry for comedi_get_hardware_buffer_size().
Frank Mori Hess [Fri, 28 Mar 2008 18:16:45 +0000 (18:16 +0000)]
Added reference entry for comedi_get_hardware_buffer_size().

16 years agoAdded comedi_get_hardware_buffer_size() wrapper function, and made
Frank Mori Hess [Fri, 28 Mar 2008 15:56:35 +0000 (15:56 +0000)]
Added comedi_get_hardware_buffer_size() wrapper function, and made
comedi_strerror return a const char*.

16 years agoReplaced a perror with comedi_perror
Frank Mori Hess [Fri, 28 Mar 2008 15:55:03 +0000 (15:55 +0000)]
Replaced a perror with comedi_perror

16 years agosynced with comedi.
Frank Mori Hess [Fri, 28 Mar 2008 15:29:16 +0000 (15:29 +0000)]
synced with comedi.

16 years agoAdded default constructors to from_physical and to_physical. Added
Frank Mori Hess [Thu, 27 Mar 2008 20:44:15 +0000 (20:44 +0000)]
Added default constructors to from_physical and to_physical.  Added
missing const qualifier to hardcal_converter and softcal_converter
methods.

16 years agoFixed compile error.
Frank Mori Hess [Wed, 26 Mar 2008 19:52:05 +0000 (19:52 +0000)]
Fixed compile error.

16 years agoMade comedi::calibration default constructible. Added wrapper classes
Frank Mori Hess [Wed, 26 Mar 2008 19:22:38 +0000 (19:22 +0000)]
Made comedi::calibration default constructible.  Added wrapper classes
for comedi_to/from_physical.

16 years agoAdded wrappers for calibration functions. Fixed memory leak in
Frank Mori Hess [Fri, 14 Mar 2008 19:07:22 +0000 (19:07 +0000)]
Added wrappers for calibration functions.  Fixed memory leak in
default_calibration_path() method.

16 years agoMade it very slightly more clear that comedi_apply_calibration is only
Frank Mori Hess [Fri, 14 Mar 2008 18:22:24 +0000 (18:22 +0000)]
Made it very slightly more clear that comedi_apply_calibration is only
useful for hardware-calibrated boards.

16 years agoAllow comedi_cleanup_calibration to accept a NULL argument.
Frank Mori Hess [Fri, 14 Mar 2008 17:52:20 +0000 (17:52 +0000)]
Allow comedi_cleanup_calibration to accept a NULL argument.

16 years agoAdded perl to EXTRA_DIST
Frank Mori Hess [Tue, 11 Mar 2008 16:04:23 +0000 (16:04 +0000)]
Added perl to EXTRA_DIST

16 years agoSync with comedi
Ian Abbott [Thu, 21 Feb 2008 12:59:07 +0000 (12:59 +0000)]
Sync with comedi

16 years agoMade mkref script handle the case of a void parameter correctly. Allowed
Frank Mori Hess [Wed, 13 Feb 2008 20:14:38 +0000 (20:14 +0000)]
Made mkref script handle the case of a void parameter correctly.  Allowed
text lines to begin with any whitespace character (not just space).

16 years agoUpdated references for error reporting functions.
Frank Mori Hess [Wed, 13 Feb 2008 20:13:39 +0000 (20:13 +0000)]
Updated references for error reporting functions.

16 years agoUpdated the dio function reference
Frank Mori Hess [Tue, 12 Feb 2008 19:31:26 +0000 (19:31 +0000)]
Updated the dio function reference

16 years agoUpdated comedi_dio_config implementation to reflect logical split
Frank Mori Hess [Tue, 12 Feb 2008 18:27:00 +0000 (18:27 +0000)]
Updated comedi_dio_config implementation to reflect logical split
between COMEDI_INPUT/COMEDI_OUTPUT and corresponding config insn ids
(even though they still have the same value).  Made comedi_dio_config
return 0 on success for better consistency in API.

16 years agoUpdated and added some links to reference for asynchronous command
Frank Mori Hess [Tue, 12 Feb 2008 17:01:43 +0000 (17:01 +0000)]
Updated and added some links to reference for asynchronous command
functions.

16 years agoMade comedi_ioctl take its third argument as a void* instead of
Frank Mori Hess [Tue, 12 Feb 2008 01:12:46 +0000 (01:12 +0000)]
Made comedi_ioctl take its third argument as a void* instead of
and integer type, and got rid of a bunch of casts (and added a few).

16 years agoFixed return values from comedi_mark_buffer_read/written(). Removed
Frank Mori Hess [Mon, 11 Feb 2008 20:50:14 +0000 (20:50 +0000)]
Fixed return values from comedi_mark_buffer_read/written().  Removed
some redundant assignments of __comedi_errno

16 years agoAdded some "type" elements to docbook output, although they don't really
Frank Mori Hess [Mon, 11 Feb 2008 16:42:28 +0000 (16:42 +0000)]
Added some "type" elements to docbook output, although they don't really
have much effect.

16 years agoAdded a link and remove some wrong (obsolete?) bits in the description
Frank Mori Hess [Mon, 11 Feb 2008 16:25:15 +0000 (16:25 +0000)]
Added a link and remove some wrong (obsolete?) bits in the description
of comedi_cancel().

16 years agoRearranged section heirarchy. Made capitalization of section titles
Frank Mori Hess [Mon, 11 Feb 2008 15:50:36 +0000 (15:50 +0000)]
Rearranged section heirarchy.  Made capitalization of section titles
consistent.

16 years agoAdded section for comedi_subdevice_type enum.
Frank Mori Hess [Fri, 8 Feb 2008 21:42:25 +0000 (21:42 +0000)]
Added section for comedi_subdevice_type enum.

16 years agoAdded some links to core function references, and fixed some bitrot.
Frank Mori Hess [Fri, 8 Feb 2008 21:41:32 +0000 (21:41 +0000)]
Added some links to core function references, and fixed some bitrot.
Deprecated comedi_set_global_oor_behavior since it only affects
comedi_to_phys (which is already deprecated).

16 years agoFixed some spelling errors "sucess"->"success".
Frank Mori Hess [Fri, 8 Feb 2008 19:02:18 +0000 (19:02 +0000)]
Fixed some spelling errors "sucess"->"success".

16 years agoRemoved some wrong or obsolete information. Made it xinclude the
Frank Mori Hess [Fri, 8 Feb 2008 18:48:27 +0000 (18:48 +0000)]
Removed some wrong or obsolete information.  Made it xinclude the
tutorial programs tut1.c and tut2.c

16 years agoMinor tweak to comedi_get_softcal_converter description.
Frank Mori Hess [Fri, 8 Feb 2008 18:28:26 +0000 (18:28 +0000)]
Minor tweak to comedi_get_softcal_converter description.

16 years agotrivial change to a comment.
Frank Mori Hess [Fri, 8 Feb 2008 18:23:05 +0000 (18:23 +0000)]
trivial change to a comment.

16 years agoSwitched to use comedi_to_physical instead of deprecated comedi_to_phys.
Frank Mori Hess [Fri, 8 Feb 2008 16:23:36 +0000 (16:23 +0000)]
Switched to use comedi_to_physical instead of deprecated comedi_to_phys.

16 years agoAdded some checking of return values for errors
Frank Mori Hess [Fri, 8 Feb 2008 16:22:43 +0000 (16:22 +0000)]
Added some checking of return values for errors

16 years agoSome minor tweaks.
Frank Mori Hess [Thu, 7 Feb 2008 19:58:13 +0000 (19:58 +0000)]
Some minor tweaks.

16 years agoUpdated drivers.txt from comedi 0.7.76
Frank Mori Hess [Mon, 28 Jan 2008 21:34:06 +0000 (21:34 +0000)]
Updated drivers.txt from comedi 0.7.76

16 years agocomedi_internal_trigger is provided by comedilib now.
Frank Mori Hess [Mon, 28 Jan 2008 20:38:47 +0000 (20:38 +0000)]
comedi_internal_trigger is provided by comedilib now.

16 years agoFixed another problem with mmap test on subdevice using lsampl_t.
Frank Mori Hess [Mon, 28 Jan 2008 20:35:14 +0000 (20:35 +0000)]
Fixed another problem with mmap test on subdevice using lsampl_t.

16 years agoFixed bug in mmap test when run on subdevice with SDF_LSAMPL.
Frank Mori Hess [Mon, 28 Jan 2008 20:27:19 +0000 (20:27 +0000)]
Fixed bug in mmap test when run on subdevice with SDF_LSAMPL.

16 years agoAdded css stylesheet for html docs. At the momment, it just gives a
Frank Mori Hess [Mon, 28 Jan 2008 19:30:01 +0000 (19:30 +0000)]
Added css stylesheet for html docs.  At the momment, it just gives a
light gray background to display of "programlisting" elements.

16 years agoDon't use SDF_WRITEABLE flag to check if read (or write) command is
Ian Abbott [Mon, 28 Jan 2008 16:10:11 +0000 (16:10 +0000)]
Don't use SDF_WRITEABLE flag to check if read (or write) command is
applicable.  Instead, check that the specified subdevice matches the
read (or write) subdevice.

16 years agoAdded some links.
Frank Mori Hess [Fri, 25 Jan 2008 15:00:01 +0000 (15:00 +0000)]
Added some links.

16 years agoLinks to http://www.comedi.org everywhere.
Frank Mori Hess [Thu, 24 Jan 2008 21:35:24 +0000 (21:35 +0000)]
Links to http://www.comedi.org everywhere.

16 years agoDid a little editing and updating for bitrotten parts.
Frank Mori Hess [Thu, 24 Jan 2008 21:09:32 +0000 (21:09 +0000)]
Did a little editing and updating for bitrotten parts.

16 years agoUse "email" element.
Frank Mori Hess [Thu, 24 Jan 2008 21:09:05 +0000 (21:09 +0000)]
Use "email" element.

16 years agoFixed indentation, shouldn't have made any content changes.
Frank Mori Hess [Thu, 24 Jan 2008 19:30:00 +0000 (19:30 +0000)]
Fixed indentation, shouldn't have made any content changes.

16 years agoFixed indentation. Performed some editing of content. Removed some parts
Frank Mori Hess [Thu, 24 Jan 2008 19:11:18 +0000 (19:11 +0000)]
Fixed indentation.  Performed some editing of content.  Removed some parts
which were wrong, or made no sense to me.

16 years agoAdded some missing "para" elements in the legalnotice. Fixed up
Frank Mori Hess [Thu, 24 Jan 2008 15:08:47 +0000 (15:08 +0000)]
Added some missing "para" elements in the legalnotice.  Fixed up
indentation.

16 years agoForgot to add this new file, it's part of conversion to docbook-xml.
Frank Mori Hess [Thu, 24 Jan 2008 01:34:10 +0000 (01:34 +0000)]
Forgot to add this new file, it's part of conversion to docbook-xml.

16 years agoConverted comedilib docs to docbook-xml 4.4, fixing a bunch of
Frank Mori Hess [Thu, 24 Jan 2008 01:32:41 +0000 (01:32 +0000)]
Converted comedilib docs to docbook-xml 4.4, fixing a bunch of
parse errors along the way (mostly unclosed tags).

16 years agoAdded more INSN_CONFIG wrappers: comedi_get_clock_source(),
Frank Mori Hess [Wed, 23 Jan 2008 18:56:52 +0000 (18:56 +0000)]
Added more INSN_CONFIG wrappers: comedi_get_clock_source(),
comedi_get_gate_source(), and comedi_get_routing().  Added "channel"
parameter to some of the INSN_CONFIG wrappers.

16 years agoAdded comedi_set_filter() and comedi_set_routing() configuration
Frank Mori Hess [Fri, 18 Jan 2008 16:37:32 +0000 (16:37 +0000)]
Added comedi_set_filter() and comedi_set_routing() configuration
instruction wrappers.

16 years agoUpdated to use comedi_set_clock_source() wrapper.
Frank Mori Hess [Thu, 17 Jan 2008 17:10:07 +0000 (17:10 +0000)]
Updated to use comedi_set_clock_source() wrapper.

16 years agoAdded reference entries for new configuration instruction wrappers.
Frank Mori Hess [Thu, 17 Jan 2008 17:03:01 +0000 (17:03 +0000)]
Added reference entries for new configuration instruction wrappers.

16 years agoMore memory initialization, error detection and cleanup in get_subdevices()
Ian Abbott [Thu, 17 Jan 2008 13:52:02 +0000 (13:52 +0000)]
More memory initialization, error detection and cleanup in get_subdevices()
and get_rangeinfo().

16 years agoFree elements of rangeinfo_list on close.
Ian Abbott [Thu, 17 Jan 2008 13:50:32 +0000 (13:50 +0000)]
Free elements of rangeinfo_list on close.

16 years agoReturn 0 from the INSN_CONFIG wrappers on success.
Frank Mori Hess [Wed, 16 Jan 2008 20:09:38 +0000 (20:09 +0000)]
Return 0 from the INSN_CONFIG wrappers on success.