]> sigrok.org Git - libsigrok.git/log
libsigrok.git
9 years agoyokogawa-dlm: Integrate driver skeleton
Soeren Apel [Mon, 25 Aug 2014 11:09:42 +0000 (13:09 +0200)]
yokogawa-dlm: Integrate driver skeleton

9 years agoinput/csv: Use uint64 for samplerate option.
Bert Vermeulen [Sat, 30 Aug 2014 18:16:45 +0000 (20:16 +0200)]
input/csv: Use uint64 for samplerate option.

9 years agoinput/chronovu_la8: Use uint64 for samplerate option.
Bert Vermeulen [Sat, 30 Aug 2014 18:15:30 +0000 (20:15 +0200)]
input/chronovu_la8: Use uint64 for samplerate option.

9 years agoinput/binary: Use uint64 for samplerate option.
Bert Vermeulen [Sat, 30 Aug 2014 18:13:13 +0000 (20:13 +0200)]
input/binary: Use uint64 for samplerate option.

9 years agoagilent-dmm: Add U124xx device IDs.
Bert Vermeulen [Sat, 30 Aug 2014 17:32:15 +0000 (19:32 +0200)]
agilent-dmm: Add U124xx device IDs.

9 years agoagilent-dmm: Add provisional support for the U124xx.
Bert Vermeulen [Fri, 29 Aug 2014 21:41:41 +0000 (23:41 +0200)]
agilent-dmm: Add provisional support for the U124xx.

9 years agoagilent-dmm: Assume all A and B models are identical on the wire.
Bert Vermeulen [Fri, 29 Aug 2014 21:39:00 +0000 (23:39 +0200)]
agilent-dmm: Assume all A and B models are identical on the wire.

9 years agoagilent-dmm: Add RMS flag to AC voltage modes.
Bert Vermeulen [Fri, 29 Aug 2014 19:35:07 +0000 (21:35 +0200)]
agilent-dmm: Add RMS flag to AC voltage modes.

9 years agoagilent-dmm: Correctly parse negative overload.
Bert Vermeulen [Fri, 29 Aug 2014 17:35:01 +0000 (19:35 +0200)]
agilent-dmm: Correctly parse negative overload.

9 years agoRemove unneeded subdriver debug messages.
Uwe Hermann [Fri, 29 Aug 2014 21:02:22 +0000 (23:02 +0200)]
Remove unneeded subdriver debug messages.

9 years agoC++: Fix shared pointer handling for PacketPayload base class.
Martin Ling [Fri, 29 Aug 2014 19:06:49 +0000 (20:06 +0100)]
C++: Fix shared pointer handling for PacketPayload base class.

9 years agoC++: Fix hash table initialisation in map_to_hash_variant.
Martin Ling [Fri, 29 Aug 2014 16:35:46 +0000 (17:35 +0100)]
C++: Fix hash table initialisation in map_to_hash_variant.

9 years agoC++: Fix shared pointer handling for Device base class.
Martin Ling [Fri, 29 Aug 2014 13:01:51 +0000 (14:01 +0100)]
C++: Fix shared pointer handling for Device base class.

9 years agoClean Java files on any change that needs re-running SWIG.
Martin Ling [Fri, 29 Aug 2014 12:56:40 +0000 (13:56 +0100)]
Clean Java files on any change that needs re-running SWIG.

9 years agoagilent-dmm: Fix value parser.
Bert Vermeulen [Thu, 28 Aug 2014 15:44:24 +0000 (17:44 +0200)]
agilent-dmm: Fix value parser.

This considered 0.0 to be an invalid result for no good reason.

9 years agoAdd support for mcupro Logic16, a Saleae Logic16 clone.
Peter Zotov [Fri, 22 Aug 2014 18:27:56 +0000 (22:27 +0400)]
Add support for mcupro Logic16, a Saleae Logic16 clone.

From sigrok's point of view, this analyzer has two differences:

  * It does not require uploading the firmware.
  * It returns garbage in some registers used for sanity checks.
    Saleae's software ignores that garbage; sigrok only does if it
    specifically detects the mcupro clone.

9 years agoC++: Use sr_input_scan_*() API changes.
Bert Vermeulen [Wed, 27 Aug 2014 23:49:48 +0000 (01:49 +0200)]
C++: Use sr_input_scan_*() API changes.

9 years agoinput: sr_input_scan_*() now return a status code.
Bert Vermeulen [Wed, 27 Aug 2014 22:22:13 +0000 (00:22 +0200)]
input: sr_input_scan_*() now return a status code.

SR_OK: a match was found.
SR_ERR: no match.
SR_ERR_DATA: a match was found but the module cannot handle the input.
SR_OK_CONTINUE: some module didn't have enough data to be sure.

9 years agoAdd error string for SR_OK_CONTINUE.
Bert Vermeulen [Wed, 27 Aug 2014 22:19:36 +0000 (00:19 +0200)]
Add error string for SR_OK_CONTINUE.

9 years agoAdd SR_ERR_DATA.
Bert Vermeulen [Wed, 27 Aug 2014 22:18:29 +0000 (00:18 +0200)]
Add SR_ERR_DATA.

9 years agoinput/wav: Support for WAVE_FORMAT_EXTENSIBLE.
Bert Vermeulen [Wed, 27 Aug 2014 13:55:52 +0000 (15:55 +0200)]
input/wav: Support for WAVE_FORMAT_EXTENSIBLE.

This is needed for supporting > 16-bit PCM samples.

9 years agoinput/wav: use our own endian macros.
Bert Vermeulen [Tue, 26 Aug 2014 20:48:12 +0000 (22:48 +0200)]
input/wav: use our own endian macros.

These should work better on non-aligned memory locations.

9 years agoAdd RB16S and RB32S (signed) macros.
Bert Vermeulen [Tue, 26 Aug 2014 20:45:38 +0000 (22:45 +0200)]
Add RB16S and RB32S (signed) macros.

Also note signedness of all the endian macros.

9 years agoinput: Avoid warnings on all-zero static struct entries.
Bert Vermeulen [Tue, 26 Aug 2014 10:38:41 +0000 (12:38 +0200)]
input: Avoid warnings on all-zero static struct entries.

9 years agoC++: Update InputFormat::get_options for latest version of input API.
Martin Ling [Sun, 24 Aug 2014 19:11:35 +0000 (20:11 +0100)]
C++: Update InputFormat::get_options for latest version of input API.

9 years agoC++: Implement InputFormat::get_options()
Martin Ling [Sun, 24 Aug 2014 13:22:03 +0000 (14:22 +0100)]
C++: Implement InputFormat::get_options()

9 years agoC++: Correct ownership of InputDevice objects.
Martin Ling [Sun, 24 Aug 2014 01:00:14 +0000 (02:00 +0100)]
C++: Correct ownership of InputDevice objects.

9 years agoUpdate bindings for new input API.
Martin Ling [Sun, 24 Aug 2014 00:40:19 +0000 (01:40 +0100)]
Update bindings for new input API.

9 years agoinput: Convert binary module.
Bert Vermeulen [Tue, 19 Aug 2014 23:29:37 +0000 (01:29 +0200)]
input: Convert binary module.

9 years agoinput: format_match() is not required in an input module.
Bert Vermeulen [Tue, 19 Aug 2014 23:27:39 +0000 (01:27 +0200)]
input: format_match() is not required in an input module.

9 years agoinput: Convert chronovu-la8 module.
Bert Vermeulen [Tue, 19 Aug 2014 22:43:13 +0000 (00:43 +0200)]
input: Convert chronovu-la8 module.

9 years agoinput/vcd: Minor code cleanup.
Bert Vermeulen [Tue, 19 Aug 2014 22:42:16 +0000 (00:42 +0200)]
input/vcd: Minor code cleanup.

9 years agoinput: Only feed scanned header to streams, not scanned files.
Bert Vermeulen [Tue, 19 Aug 2014 22:41:22 +0000 (00:41 +0200)]
input: Only feed scanned header to streams, not scanned files.

9 years agoinput: Only use header buffer for modules that need it.
Bert Vermeulen [Tue, 19 Aug 2014 22:40:25 +0000 (00:40 +0200)]
input: Only use header buffer for modules that need it.

The buffer was leaking into modules that didn't ask for it.

9 years agoinput/wav: Send END packet on cleanup.
Bert Vermeulen [Tue, 19 Aug 2014 14:49:27 +0000 (16:49 +0200)]
input/wav: Send END packet on cleanup.

9 years agoinput/vcd: Send END packet on cleanup.
Bert Vermeulen [Tue, 19 Aug 2014 14:49:18 +0000 (16:49 +0200)]
input/vcd: Send END packet on cleanup.

9 years agoinput: Convert CSV module.
Bert Vermeulen [Mon, 18 Aug 2014 22:14:47 +0000 (00:14 +0200)]
input: Convert CSV module.

9 years agoAdd second positive status code: SR_OK_CONTINUE.
Bert Vermeulen [Mon, 18 Aug 2014 22:12:32 +0000 (00:12 +0200)]
Add second positive status code: SR_OK_CONTINUE.

Errors are thus always < 0, SR_OK == 0, and "OK but..." status
codes are > 0.

9 years agoinput: sr_input_new() always allocates the instance buffer.
Bert Vermeulen [Mon, 18 Aug 2014 22:09:09 +0000 (00:09 +0200)]
input: sr_input_new() always allocates the instance buffer.

9 years agoinput: Fix option enumeration.
Bert Vermeulen [Mon, 18 Aug 2014 22:07:36 +0000 (00:07 +0200)]
input: Fix option enumeration.

9 years agoinput: Fix internal API docs.
Bert Vermeulen [Fri, 15 Aug 2014 21:31:39 +0000 (23:31 +0200)]
input: Fix internal API docs.

9 years agoinput: Actually return a NULL-terminated array.
Bert Vermeulen [Fri, 15 Aug 2014 21:31:20 +0000 (23:31 +0200)]
input: Actually return a NULL-terminated array.

9 years agoinput: Frontends don't need to see SR_INPUT_META_*.
Bert Vermeulen [Fri, 15 Aug 2014 17:59:38 +0000 (19:59 +0200)]
input: Frontends don't need to see SR_INPUT_META_*.

9 years agoinput: Fixes and VCD.
Bert Vermeulen [Wed, 13 Aug 2014 12:18:12 +0000 (14:18 +0200)]
input: Fixes and VCD.

9 years agoinput: Fix up API documentation.
Bert Vermeulen [Sun, 10 Aug 2014 16:44:39 +0000 (18:44 +0200)]
input: Fix up API documentation.

9 years agoinput: Introduce new input module API.
Bert Vermeulen [Sun, 10 Aug 2014 14:57:04 +0000 (16:57 +0200)]
input: Introduce new input module API.

This is a work in progress.

9 years agoinput: make sr_input{_module} opaque to clients.
Bert Vermeulen [Sun, 3 Aug 2014 13:12:49 +0000 (15:12 +0200)]
input: make sr_input{_module} opaque to clients.

9 years agoinput: s/format/module in all naming.
Bert Vermeulen [Sun, 3 Aug 2014 13:11:24 +0000 (15:11 +0200)]
input: s/format/module in all naming.

9 years agofx2lafw: Code cleanup.
Bert Vermeulen [Mon, 25 Aug 2014 23:49:00 +0000 (01:49 +0200)]
fx2lafw: Code cleanup.

9 years agoAvoid warnings on all-zero static struct entries.
Bert Vermeulen [Mon, 25 Aug 2014 23:48:27 +0000 (01:48 +0200)]
Avoid warnings on all-zero static struct entries.

9 years agopipistrello-ols: Disable unused trigger stages.
Bert Vermeulen [Sun, 24 Aug 2014 23:00:00 +0000 (01:00 +0200)]
pipistrello-ols: Disable unused trigger stages.

Thanks to Magnus Karlsson for this fix.

9 years agopipistrello-ols: Preliminary port to current API.
Bert Vermeulen [Fri, 22 Aug 2014 12:59:04 +0000 (14:59 +0200)]
pipistrello-ols: Preliminary port to current API.

9 years agoDEMUX and RLE fixes
magnuskarlsson [Thu, 5 Jun 2014 21:28:50 +0000 (14:28 -0700)]
DEMUX and RLE fixes

9 years agoadded edge triggers
magnuskarlsson [Thu, 29 May 2014 01:53:22 +0000 (18:53 -0700)]
added edge triggers

9 years agofixed typos
magnuskarlsson [Sat, 10 May 2014 23:15:19 +0000 (16:15 -0700)]
fixed typos

9 years agofixed a problem with USB defines
magnuskarlsson [Sat, 10 May 2014 23:04:58 +0000 (16:04 -0700)]
fixed a problem with USB defines

9 years agoadded pipistrello-ols
magnuskarlsson [Sat, 10 May 2014 22:44:13 +0000 (15:44 -0700)]
added pipistrello-ols

Conflicts:
configure.ac
src/hwdriver.c

9 years agohameg-hmo / rigol-ds: Restore compatibility with std_dev_clear()
Soeren Apel [Sun, 24 Aug 2014 14:54:38 +0000 (16:54 +0200)]
hameg-hmo / rigol-ds: Restore compatibility with std_dev_clear()

9 years agorigol-ds: Fix duplicated vendor string for Agilent devices.
Martin Ling [Fri, 22 Aug 2014 19:15:32 +0000 (20:15 +0100)]
rigol-ds: Fix duplicated vendor string for Agilent devices.

9 years agobuild: Require libserialport version 0.2.0.
Bert Vermeulen [Wed, 20 Aug 2014 21:39:27 +0000 (23:39 +0200)]
build: Require libserialport version 0.2.0.

9 years agoserial: re-implement sr_serial_find_usb() using new libsp APIs
Aurelien Jacobs [Tue, 1 Jul 2014 20:33:03 +0000 (22:33 +0200)]
serial: re-implement sr_serial_find_usb() using new libsp APIs

9 years agooutput: Fix options enumeration. Again.
Bert Vermeulen [Wed, 20 Aug 2014 15:33:09 +0000 (17:33 +0200)]
output: Fix options enumeration. Again.

9 years agoClose zip file at end of sr_session_file_check.
Martin Ling [Wed, 20 Aug 2014 11:58:33 +0000 (12:58 +0100)]
Close zip file at end of sr_session_file_check.

From patch sent to sigrok-devel by jerryxjtu.

9 years agoconfigure.ac: Fix jni.h check when cross compiling
Marcus Comstedt [Wed, 20 Aug 2014 12:15:24 +0000 (14:15 +0200)]
configure.ac: Fix jni.h check when cross compiling

Since AX_JNI_INCLUDE_DIR does not work for cross compilation, don't
invoke it when cross compiling.  Also, add a configure option to
set the jni.h include path manually if needed.

9 years agooutput: Allocate additional memory for NULL terminator.
Marc Schink [Wed, 20 Aug 2014 11:54:53 +0000 (13:54 +0200)]
output: Allocate additional memory for NULL terminator.

Best regards,
Marc

>From a7228150fdea91a65b5d70359bf51b87d2572edf Mon Sep 17 00:00:00 2001
From: Marc Schink <redacted>
Date: Wed, 20 Aug 2014 05:34:57 -0400
Subject: [PATCH] output: Allocate additional memory for NULL terminator.

9 years agoikalogic-scanaplus: Free device context to fix memory leak.
Marc Schink [Wed, 20 Aug 2014 11:55:04 +0000 (13:55 +0200)]
ikalogic-scanaplus: Free device context to fix memory leak.

Best regards,
Marc

>From 779ef3a1150b3679ab357ceb0e2f50785ad90d28 Mon Sep 17 00:00:00 2001
From: Marc Schink <redacted>
Date: Wed, 20 Aug 2014 05:42:07 -0400
Subject: [PATCH] ikalogic-scanaplus: Free device context to fix memory leak.

9 years agooutput: Fix double free.
Bert Vermeulen [Mon, 18 Aug 2014 21:55:39 +0000 (23:55 +0200)]
output: Fix double free.

9 years agooutput: Fix output option enumeration.
Bert Vermeulen [Mon, 18 Aug 2014 21:54:46 +0000 (23:54 +0200)]
output: Fix output option enumeration.

9 years agounitests: Adapt to recent API changes.
Uwe Hermann [Sun, 17 Aug 2014 15:32:46 +0000 (17:32 +0200)]
unitests: Adapt to recent API changes.

9 years agosaleae-logic16: Recognize FPGA FIFO overflow status
Marcus Comstedt [Sun, 17 Aug 2014 12:20:01 +0000 (14:20 +0200)]
saleae-logic16: Recognize FPGA FIFO overflow status

9 years agoMakefile.am: Fix out-of-tree build for Python bindings
Marcus Comstedt [Sat, 16 Aug 2014 21:44:19 +0000 (23:44 +0200)]
Makefile.am: Fix out-of-tree build for Python bindings

9 years agoconfigure.ac: Look for python-2.7.pc as well when making bindings
Marcus Comstedt [Fri, 15 Aug 2014 13:55:22 +0000 (15:55 +0200)]
configure.ac: Look for python-2.7.pc as well when making bindings

9 years agoMakefile.am: Fix out-of-tree build for C++ and Java bindings
Marcus Comstedt [Thu, 14 Aug 2014 21:07:45 +0000 (23:07 +0200)]
Makefile.am: Fix out-of-tree build for C++ and Java bindings

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.