]> sigrok.org Git - libsigrok.git/log
libsigrok.git
9 years agoMakefile.am: Fix doxygen invocation in out-of-tree build
Marcus Comstedt [Fri, 15 Aug 2014 12:42:18 +0000 (14:42 +0200)]
Makefile.am: Fix doxygen invocation in out-of-tree build

9 years agoFix include paths for out-of-tree builds
Marcus Comstedt [Thu, 14 Aug 2014 21:04:06 +0000 (23:04 +0200)]
Fix include paths for out-of-tree builds

9 years agobindings: update for sr_output_options_{get,free} API change.
Martin Ling [Sun, 17 Aug 2014 10:44:05 +0000 (11:44 +0100)]
bindings: update for sr_output_options_{get,free} API change.

9 years agooutput: Constify module options.
Bert Vermeulen [Fri, 15 Aug 2014 18:21:50 +0000 (20:21 +0200)]
output: Constify module options.

9 years agooutput: Actually return a NULL-terminated array.
Bert Vermeulen [Fri, 15 Aug 2014 18:16:31 +0000 (20:16 +0200)]
output: Actually return a NULL-terminated array.

This returned an array of structs with an NULL-ed element at the end.
The drivers still do this, but the wrappers now make and free a NULL-
terminated array around it.

sr_output_options_free() now takes the pointer returned by
sr_output_options_get(), instead of the module owning it.

9 years agohameg-hmo: Make sure the enabled_channels list is empty before populating it
Soeren Apel [Wed, 13 Aug 2014 14:33:38 +0000 (16:33 +0200)]
hameg-hmo: Make sure the enabled_channels list is empty before populating it

Previous runs of dev_acquisition_start() keep the enabled_channels list
populated if they fail. This means that once an invalid channel
configuration was detected, it will be detected again even if the channel
configuration was changed. With this change, the list will be cleared
before being populated so that any stale entries are removed.

9 years agosession: Remove irrelevant logging.
Bert Vermeulen [Wed, 13 Aug 2014 12:34:24 +0000 (14:34 +0200)]
session: Remove irrelevant logging.

9 years agooutput/wav: Minor code cleanup.
Bert Vermeulen [Wed, 13 Aug 2014 12:30:30 +0000 (14:30 +0200)]
output/wav: Minor code cleanup.

9 years agooutput: Deal properly with NULL (no) options on a new output instance.
Bert Vermeulen [Wed, 13 Aug 2014 12:22:41 +0000 (14:22 +0200)]
output: Deal properly with NULL (no) options on a new output instance.

9 years agotests: Factor out srtest_setup() and srtest_teardown().
Uwe Hermann [Mon, 11 Aug 2014 11:20:50 +0000 (13:20 +0200)]
tests: Factor out srtest_setup() and srtest_teardown().

9 years agosr_session_new(): Return SR_ERR_ARG upon invalid argument.
Uwe Hermann [Mon, 11 Aug 2014 11:15:43 +0000 (13:15 +0200)]
sr_session_new(): Return SR_ERR_ARG upon invalid argument.

(instead of segfaulting)

9 years agoAdd a small set of unit tests for session handling.
Uwe Hermann [Mon, 11 Aug 2014 10:37:54 +0000 (12:37 +0200)]
Add a small set of unit tests for session handling.

9 years agosession_file.c: Drop left-over extern.
Uwe Hermann [Mon, 11 Aug 2014 10:31:01 +0000 (12:31 +0200)]
session_file.c: Drop left-over extern.

9 years agoDoxygen: Exclude more non-public files and directories.
Uwe Hermann [Sun, 10 Aug 2014 16:56:54 +0000 (18:56 +0200)]
Doxygen: Exclude more non-public files and directories.

9 years agotrigger.c: Add Doxygen @file and @defgroup tags.
Uwe Hermann [Sun, 10 Aug 2014 16:56:24 +0000 (18:56 +0200)]
trigger.c: Add Doxygen @file and @defgroup tags.

9 years agoMakefile.am: Silence some more Doxygen output.
Uwe Hermann [Sun, 10 Aug 2014 16:18:30 +0000 (18:18 +0200)]
Makefile.am: Silence some more Doxygen output.

This silences stuff like this (among others), depending on the
Doxygen version used:

  Warning: Tag `XML_SCHEMA' at line 1814 of file `Doxyfile' has become
  obsolete. To avoid this warning please remove this line from your
  configuration file or upgrade it using "doxygen -u"

9 years agoDoxygen: Silence Doxygen warnings by default.
Uwe Hermann [Sun, 10 Aug 2014 15:59:34 +0000 (17:59 +0200)]
Doxygen: Silence Doxygen warnings by default.

This allows for a clean build per default. Developers can enable
those switches while writing documentation to get a few useful
warnings.

9 years agoDoxygen: Add a few missing @param lines for sessions.
Uwe Hermann [Sun, 10 Aug 2014 15:27:43 +0000 (17:27 +0200)]
Doxygen: Add a few missing @param lines for sessions.

This fixes a bunch of Doxygen warnings.

9 years agobindings: Transfer C++ method parameter documentation to Python/Java bindings.
Martin Ling [Fri, 1 Aug 2014 19:08:44 +0000 (20:08 +0100)]
bindings: Transfer C++ method parameter documentation to Python/Java bindings.

9 years agoC++: Add parameter documentation and additional method descriptions.
Martin Ling [Sun, 27 Jul 2014 11:05:44 +0000 (12:05 +0100)]
C++: Add parameter documentation and additional method descriptions.

9 years agojava: Add documentation generation.
Martin Ling [Fri, 1 Aug 2014 18:29:48 +0000 (19:29 +0100)]
java: Add documentation generation.

9 years agopython: Add documentation generation.
Martin Ling [Fri, 1 Aug 2014 18:22:24 +0000 (19:22 +0100)]
python: Add documentation generation.

9 years agobindings: Transfer C++ documentation strings to Python and Java wrappers.
Martin Ling [Fri, 1 Aug 2014 17:17:33 +0000 (18:17 +0100)]
bindings: Transfer C++ documentation strings to Python and Java wrappers.

9 years agoC++ bindings: Attach documentation to enum wrapper classes.
Martin Ling [Fri, 1 Aug 2014 16:40:56 +0000 (17:40 +0100)]
C++ bindings: Attach documentation to enum wrapper classes.

9 years agoC++ bindings: Reimplement enums.py using doxygen XML output instead of gccxml.
Martin Ling [Fri, 1 Aug 2014 16:18:09 +0000 (17:18 +0100)]
C++ bindings: Reimplement enums.py using doxygen XML output instead of gccxml.

9 years agoFix typo in the Hameg HMO driver and add some error message for when the float compar...
Soeren Apel [Wed, 6 Aug 2014 14:06:09 +0000 (16:06 +0200)]
Fix typo in the Hameg HMO driver and add some error message for when the float comparison breaks

9 years agoconfigure.ac: Don't build BeagleLogic where a build would fail.
Uwe Hermann [Mon, 4 Aug 2014 20:00:17 +0000 (22:00 +0200)]
configure.ac: Don't build BeagleLogic where a build would fail.

The BeagleLogic driver needs sys/mman.h and sys/ioctl.h in order to
build, so disable the driver if those headers aren't available.

This is the case (for example) on MinGW.

9 years agooutput/vcd: Drop obsolete string.
Bert Vermeulen [Sun, 3 Aug 2014 12:09:04 +0000 (14:09 +0200)]
output/vcd: Drop obsolete string.

9 years agohameg-hmo: Implement SR_CONF_SCAN_OPTIONS.
Bert Vermeulen [Sun, 3 Aug 2014 12:00:07 +0000 (14:00 +0200)]
hameg-hmo: Implement SR_CONF_SCAN_OPTIONS.

9 years agooutput: Check options hash before destroying.
Bert Vermeulen [Sat, 2 Aug 2014 23:24:30 +0000 (01:24 +0200)]
output: Check options hash before destroying.

9 years agooutput: Move option checks to the wrapper.
Bert Vermeulen [Sat, 2 Aug 2014 23:16:03 +0000 (01:16 +0200)]
output: Move option checks to the wrapper.

Output modules are now guaranteed:
  - Every option is always given, with the default value if not supplied
    by the user, and is the right GVariantType.
  - No invalid options are ever passed.

9 years agooutput: Modules can keep track of option resources without wrapper help.
Bert Vermeulen [Sat, 2 Aug 2014 17:20:00 +0000 (19:20 +0200)]
output: Modules can keep track of option resources without wrapper help.

9 years agooutput/wav: Add 'scale' option.
Bert Vermeulen [Sat, 2 Aug 2014 01:48:55 +0000 (03:48 +0200)]
output/wav: Add 'scale' option.

Audio tools processing WAV failes generally need the samples to be in
the range -1 to +1. The scale option adds postprocessing to any samples
going into a WAV file, by dividing the sample values by the given factor.

9 years agoImplement Brymen BM25x series as a serial DMM.
Janne Huttunen [Wed, 30 Jul 2014 07:28:58 +0000 (10:28 +0300)]
Implement Brymen BM25x series as a serial DMM.

The Brymen BM25x series supports the BC-20X that is an opto-isolated
serial cable. The link seems to be unidirectional i.e. when activated
the DMM periodically sends updates to the host while the host cannot
control the DMM in any way.

The protocol is documented in "6000-count-digital-multimeters-r1.pdf"
that is available from the manufacturer. Every 15 byte packet consists
of a bitmap where the bits correspond to segments or symbols on the
LCD display i.e. the DMM essentially sends the contents of its screen
to the host in every update. This driver then decodes the measured
quantity, unit and its value from the bitmap.

9 years agoDoxygen: Update paths.
Bert Vermeulen [Fri, 1 Aug 2014 14:31:13 +0000 (16:31 +0200)]
Doxygen: Update paths.

9 years agoinput/vcd: Make less noise in format match failure.
Bert Vermeulen [Fri, 1 Aug 2014 10:04:20 +0000 (12:04 +0200)]
input/vcd: Make less noise in format match failure.

9 years agoinput/csv: Match format on .csv extension in filename.
Bert Vermeulen [Fri, 1 Aug 2014 10:03:42 +0000 (12:03 +0200)]
input/csv: Match format on .csv extension in filename.

9 years agoinput/wav: Deal with IEEE float samples in WAV files.
Bert Vermeulen [Fri, 1 Aug 2014 10:02:09 +0000 (12:02 +0200)]
input/wav: Deal with IEEE float samples in WAV files.

This also skips chunks before the 'data' chunk in WAV files, as
this is quite common.

9 years agooutput/wav: Fix channel deinterleaving.
Bert Vermeulen [Fri, 1 Aug 2014 10:00:51 +0000 (12:00 +0200)]
output/wav: Fix channel deinterleaving.

9 years agooutput/analog: Fix channel deinterleaving.
Bert Vermeulen [Fri, 1 Aug 2014 09:57:59 +0000 (11:57 +0200)]
output/analog: Fix channel deinterleaving.

9 years agooutput/wav: Initial module implementation.
Bert Vermeulen [Sat, 26 Jul 2014 15:19:52 +0000 (17:19 +0200)]
output/wav: Initial module implementation.

9 years agooutput/wav: Initial module skeleton.
Bert Vermeulen [Sat, 26 Jul 2014 09:00:51 +0000 (11:00 +0200)]
output/wav: Initial module skeleton.

9 years agodemo: Attach analog generator to channel, not channel group.
Bert Vermeulen [Mon, 28 Jul 2014 23:56:19 +0000 (01:56 +0200)]
demo: Attach analog generator to channel, not channel group.

This also adds a new channel group "Analog", which has all analog
channels in it.

9 years agooutput: Rename instance private storage pointer to priv.
Bert Vermeulen [Mon, 28 Jul 2014 13:56:17 +0000 (15:56 +0200)]
output: Rename instance private storage pointer to priv.

This makes it consistent with other libsigrok fields used for this purpose.

9 years agodemo: Support changing the amplitude of analog channels.
Bert Vermeulen [Sun, 27 Jul 2014 22:01:03 +0000 (00:01 +0200)]
demo: Support changing the amplitude of analog channels.

9 years agoAdd config key for amplitude.
Bert Vermeulen [Sun, 27 Jul 2014 21:59:49 +0000 (23:59 +0200)]
Add config key for amplitude.

This is intended for setting (or getting) the amplitude of a source
which doesn't really have an MQ associated with it, such as the demo
driver's analog channels.

9 years agoJava: correct input map type in create_output() wrapper.
Martin Ling [Sat, 26 Jul 2014 20:28:05 +0000 (21:28 +0100)]
Java: correct input map type in create_output() wrapper.

9 years agoJava: Move interfaces into org.sigrok.core.interfaces, tidy build system.
Martin Ling [Sat, 26 Jul 2014 18:11:11 +0000 (19:11 +0100)]
Java: Move interfaces into org.sigrok.core.interfaces, tidy build system.

9 years agoJava: ignore Meta::get_config() due to SWIG typemap issues.
Martin Ling [Sat, 26 Jul 2014 19:37:53 +0000 (20:37 +0100)]
Java: ignore Meta::get_config() due to SWIG typemap issues.

9 years agoAdd bindings/swig/classes.i to Python binding dependencies.
Martin Ling [Sat, 26 Jul 2014 17:34:40 +0000 (18:34 +0100)]
Add bindings/swig/classes.i to Python binding dependencies.

9 years agoFix python-quietclean Makefile target.
Martin Ling [Sat, 26 Jul 2014 17:34:20 +0000 (18:34 +0100)]
Fix python-quietclean Makefile target.

9 years agoUpdate bindings to use new output API.
Martin Ling [Sat, 26 Jul 2014 15:03:25 +0000 (16:03 +0100)]
Update bindings to use new output API.

9 years agooutput: Finish output module API wrappers.
Bert Vermeulen [Fri, 25 Jul 2014 03:56:52 +0000 (05:56 +0200)]
output: Finish output module API wrappers.

The sr_output and sr_output_module structs are now no longer accessible
from the client.

9 years agobindings: Add Channel::get_index() method.
Martin Ling [Thu, 24 Jul 2014 14:01:26 +0000 (15:01 +0100)]
bindings: Add Channel::get_index() method.

9 years agobindings: Add Device::get_description() method.
Martin Ling [Thu, 24 Jul 2014 13:45:58 +0000 (14:45 +0100)]
bindings: Add Device::get_description() method.

9 years agobindings: Change return type of config_list to Glib::VariantContainerBase.
Martin Ling [Thu, 24 Jul 2014 12:17:19 +0000 (13:17 +0100)]
bindings: Change return type of config_list to Glib::VariantContainerBase.

9 years agobindings: Revise Session::append() API.
Martin Ling [Thu, 24 Jul 2014 11:43:27 +0000 (12:43 +0100)]
bindings: Revise Session::append() API.

9 years agobindings: Support get_channel_groups() on base Device class.
Martin Ling [Thu, 24 Jul 2014 11:41:49 +0000 (12:41 +0100)]
bindings: Support get_channel_groups() on base Device class.

9 years agobindings: Overhaul packet & payload classes.
Martin Ling [Sun, 20 Jul 2014 01:20:13 +0000 (02:20 +0100)]
bindings: Overhaul packet & payload classes.

9 years agoC++: Fix leak of GVariant in ConfigKey::parse_string().
Martin Ling [Thu, 24 Jul 2014 17:26:19 +0000 (18:26 +0100)]
C++: Fix leak of GVariant in ConfigKey::parse_string().

9 years agoC++: Fix Packet destructor for packets without payload.
Martin Ling [Thu, 24 Jul 2014 17:10:33 +0000 (18:10 +0100)]
C++: Fix Packet destructor for packets without payload.

9 years agoC++: Add internal lookup to find Channel object from sr_channel *.
Martin Ling [Thu, 24 Jul 2014 02:22:44 +0000 (03:22 +0100)]
C++: Add internal lookup to find Channel object from sr_channel *.

9 years agoC++: Centralise code for preparing shared pointers.
Martin Ling [Thu, 24 Jul 2014 02:12:40 +0000 (03:12 +0100)]
C++: Centralise code for preparing shared pointers.

9 years agodemo: Free analog channel groups when done with them.
Bert Vermeulen [Thu, 24 Jul 2014 19:01:39 +0000 (21:01 +0200)]
demo: Free analog channel groups when done with them.

This fixes a memory leak.

9 years agostd: Free channel groups from device instances as well.
Bert Vermeulen [Thu, 24 Jul 2014 19:01:08 +0000 (21:01 +0200)]
std: Free channel groups from device instances as well.

9 years agoAdd Doxyfile for C++ bindings and adaptations to C++ header file.
Martin Ling [Wed, 23 Jul 2014 21:40:17 +0000 (22:40 +0100)]
Add Doxyfile for C++ bindings and adaptations to C++ header file.

9 years agobindings: Add Packet.get_type() method.
Martin Ling [Sun, 20 Jul 2014 00:38:31 +0000 (01:38 +0100)]
bindings: Add Packet.get_type() method.

9 years agoAdd bindings for getting/setting session trigger.
Martin Ling [Sat, 19 Jul 2014 21:45:35 +0000 (22:45 +0100)]
Add bindings for getting/setting session trigger.

9 years agobuild: More dependency fixes.
Bert Vermeulen [Wed, 23 Jul 2014 14:33:42 +0000 (16:33 +0200)]
build: More dependency fixes.

9 years agobuild: If language binding dependency checks fail, summarize the reason.
Bert Vermeulen [Wed, 23 Jul 2014 12:36:11 +0000 (14:36 +0200)]
build: If language binding dependency checks fail, summarize the reason.

9 years agobuild: Add more dependency checks for building bindings.
Bert Vermeulen [Wed, 23 Jul 2014 10:57:37 +0000 (12:57 +0200)]
build: Add more dependency checks for building bindings.

9 years agobuild: We only need python 2.x for generating the bindings.
Bert Vermeulen [Wed, 23 Jul 2014 10:45:41 +0000 (12:45 +0200)]
build: We only need python 2.x for generating the bindings.

9 years agofx2lafw: Check for valid samplerate before setting.
Bert Vermeulen [Wed, 23 Jul 2014 10:32:35 +0000 (12:32 +0200)]
fx2lafw: Check for valid samplerate before setting.

9 years agodemo: Support continuous acquisition.
Bert Vermeulen [Wed, 23 Jul 2014 02:53:25 +0000 (04:53 +0200)]
demo: Support continuous acquisition.

9 years agofx2lafw: Fix continuous mode.
Bert Vermeulen [Tue, 22 Jul 2014 22:24:23 +0000 (00:24 +0200)]
fx2lafw: Fix continuous mode.

9 years agoDrop references to obsolete sigrok-commits mailing list.
Uwe Hermann [Tue, 22 Jul 2014 21:54:18 +0000 (23:54 +0200)]
Drop references to obsolete sigrok-commits mailing list.

9 years agosession*.c: Remove some unneeded lines.
Uwe Hermann [Tue, 22 Jul 2014 21:25:24 +0000 (23:25 +0200)]
session*.c: Remove some unneeded lines.

9 years agoconfigure: Show glibmm and gobject versions in the summary.
Uwe Hermann [Tue, 22 Jul 2014 21:15:11 +0000 (23:15 +0200)]
configure: Show glibmm and gobject versions in the summary.

9 years agoconfigure.ac: Add versioned dependency on pygobject.
Uwe Hermann [Tue, 22 Jul 2014 21:11:44 +0000 (23:11 +0200)]
configure.ac: Add versioned dependency on pygobject.

Roughly around 3.0.0 usage changed from "import gobject" to the new
"from gi.repository import GObject" etc. (which we use).

9 years agoMakefile.am: Add beaglelogic.h so it ends up in the tarball.
Uwe Hermann [Tue, 22 Jul 2014 20:50:06 +0000 (22:50 +0200)]
Makefile.am: Add beaglelogic.h so it ends up in the tarball.

9 years agoC++ bindings: Make enums.py work with newer versions of pygccxml.
Jens Steinhauser [Tue, 22 Jul 2014 10:40:57 +0000 (12:40 +0200)]
C++ bindings: Make enums.py work with newer versions of pygccxml.

9 years agoReorganize project tree.
Bert Vermeulen [Mon, 21 Jul 2014 19:27:33 +0000 (21:27 +0200)]
Reorganize project tree.

9 years agobuild: Portability fixes.
Bert Vermeulen [Tue, 22 Jul 2014 16:17:34 +0000 (18:17 +0200)]
build: Portability fixes.

This also defers reporting on enabled drivers until it's really decided.

9 years agopython: Fix build dependency.
Bert Vermeulen [Tue, 22 Jul 2014 02:31:54 +0000 (04:31 +0200)]
python: Fix build dependency.

This also makes it more portable, notably to non-bash shells.

9 years agobeaglelogic: Implementation with soft triggers
Kumar Abhishek [Mon, 21 Jul 2014 20:11:53 +0000 (01:41 +0530)]
beaglelogic: Implementation with soft triggers

Signed-off-by: Kumar Abhishek <redacted>
9 years agobeaglelogic: Initial driver skeleton.
Kumar Abhishek [Mon, 21 Jul 2014 20:11:52 +0000 (01:41 +0530)]
beaglelogic: Initial driver skeleton.

9 years agoRemove unnecessary level of indirection for source manipulation.
Bert Vermeulen [Mon, 21 Jul 2014 13:08:53 +0000 (15:08 +0200)]
Remove unnecessary level of indirection for source manipulation.

9 years agoGet rid of global session.
Bert Vermeulen [Mon, 21 Jul 2014 13:08:17 +0000 (15:08 +0200)]
Get rid of global session.

9 years agoAdd struct sr_session parameter to all session source backends.
Bert Vermeulen [Mon, 21 Jul 2014 12:35:27 +0000 (14:35 +0200)]
Add struct sr_session parameter to all session source backends.

9 years agoscpi: sr_scpi_scan_resource() never returns more than one sdi.
Bert Vermeulen [Sat, 19 Jul 2014 13:31:08 +0000 (15:31 +0200)]
scpi: sr_scpi_scan_resource() never returns more than one sdi.

No need to always make it a one-entry GSList.

9 years agopython: Silence irrelevant build warnings.
Bert Vermeulen [Sun, 20 Jul 2014 20:37:32 +0000 (22:37 +0200)]
python: Silence irrelevant build warnings.

9 years agomake check: Update to new session API.
Uwe Hermann [Sun, 20 Jul 2014 10:09:10 +0000 (12:09 +0200)]
make check: Update to new session API.

9 years agoFix 'make check' invocation wrt new libsigrok.h location.
Uwe Hermann [Sun, 20 Jul 2014 10:03:29 +0000 (12:03 +0200)]
Fix 'make check' invocation wrt new libsigrok.h location.

9 years agopython: Don't install as a zip file.
Bert Vermeulen [Sat, 19 Jul 2014 20:22:12 +0000 (22:22 +0200)]
python: Don't install as a zip file.

9 years agobuild: Silence language bindings building.
Bert Vermeulen [Sat, 19 Jul 2014 18:21:19 +0000 (20:21 +0200)]
build: Silence language bindings building.

9 years agoconfigure: Add --enable-bindings switch.
Bert Vermeulen [Sat, 19 Jul 2014 18:20:47 +0000 (20:20 +0200)]
configure: Add --enable-bindings switch.

9 years agobindings: Filter out various pygccxml noise.
Bert Vermeulen [Sat, 19 Jul 2014 17:48:01 +0000 (19:48 +0200)]
bindings: Filter out various pygccxml noise.

9 years agoAdditional build system fixes for C++/Python/Java bindings.
Martin Ling [Sat, 19 Jul 2014 16:05:29 +0000 (17:05 +0100)]
Additional build system fixes for C++/Python/Java bindings.

9 years agoAssorted build system fixes for C++/Python/Java bindings.
Martin Ling [Sat, 19 Jul 2014 15:23:45 +0000 (16:23 +0100)]
Assorted build system fixes for C++/Python/Java bindings.

9 years agoPass configured prefix to python setup.py install step.
Martin Ling [Sat, 19 Jul 2014 14:43:03 +0000 (15:43 +0100)]
Pass configured prefix to python setup.py install step.