]>
sigrok.org Git - libsigrok.git/log
Bert Vermeulen [Tue, 29 Apr 2014 02:09:32 +0000 (19:09 -0700)]
output/csv: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 22:11:17 +0000 (15:11 -0700)]
output/ascii: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 22:06:36 +0000 (15:06 -0700)]
output/hex: Support getting samplerate from meta packets.
Bert Vermeulen [Mon, 28 Apr 2014 21:54:47 +0000 (14:54 -0700)]
output/bits: Support getting samplerate from meta packets.
Uwe Hermann [Fri, 25 Apr 2014 17:34:41 +0000 (19:34 +0200)]
session: Show unitsize of the received data.
Uwe Hermann [Fri, 25 Apr 2014 16:44:21 +0000 (18:44 +0200)]
Don't include NO_LOG_WRAPPERS in the Doxygen output.
Uwe Hermann [Fri, 25 Apr 2014 16:40:59 +0000 (18:40 +0200)]
Don't include LOG_PREFIX in the Doxygen output.
(files in hardware/, input/, and output/ don't need this since none of
those directories contain API stuff and are thus not included in the
list of input files for Doxygen at all).
Martin Ling [Fri, 18 Apr 2014 18:11:47 +0000 (19:11 +0100)]
configure.ac: Separate library flags from other CFLAGS.
Martin Ling [Fri, 18 Apr 2014 18:13:13 +0000 (19:13 +0100)]
Give type names to all enumerations.
Martin Ling [Mon, 21 Apr 2014 01:17:03 +0000 (02:17 +0100)]
Remove orphaned prototype for sr_filter_channels from proto.h.
Bert Vermeulen [Thu, 24 Apr 2014 19:04:23 +0000 (21:04 +0200)]
fx2lafw: Don't send more samples than requested.
It's the new law.
Bert Vermeulen [Tue, 22 Apr 2014 16:08:40 +0000 (18:08 +0200)]
WIP
Bert Vermeulen [Mon, 21 Apr 2014 21:35:26 +0000 (23:35 +0200)]
output/ascii/bits/hex: Remove stray g_free().
Bert Vermeulen [Mon, 21 Apr 2014 12:46:49 +0000 (14:46 +0200)]
ols: Allow disabling all channels.
This fixed bug 316.
Bert Vermeulen [Sun, 20 Apr 2014 20:51:09 +0000 (22:51 +0200)]
output: Introduce output module API wrappers.
Bert Vermeulen [Sat, 19 Apr 2014 11:37:53 +0000 (13:37 +0200)]
Removed ALSA driver.
This driver has been unmaintained for years, and was never good code
to begin with. It's also questionable whether it was ever useful,
particularly with the demo driver now supporting various analog
signalling.
Bert Vermeulen [Sat, 19 Apr 2014 11:34:46 +0000 (13:34 +0200)]
Removed obsolete sr_filter_channels().
Bert Vermeulen [Sat, 19 Apr 2014 11:28:17 +0000 (13:28 +0200)]
Remove obsolete output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:34:30 +0000 (12:34 +0200)]
output/ascii: Rewrite for new output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:31:50 +0000 (12:31 +0200)]
output/hex: Rewrite for new output API.
Bert Vermeulen [Sat, 19 Apr 2014 10:25:02 +0000 (12:25 +0200)]
output/bits: Rewrite for new output API.
This also fixes the performance problems in the old module.
Bert Vermeulen [Thu, 17 Apr 2014 12:40:47 +0000 (14:40 +0200)]
output/binary: Use new output API.
Bert Vermeulen [Thu, 17 Apr 2014 12:10:49 +0000 (14:10 +0200)]
output/chronovu_la8: Use new output API.
This somewhat naively copies whatever it gets into the output, regardless
of how many channels are in there, or which ones are enabled. Not sure
what the best way to deal with that is, but for now you have to feed it
a channel setup the Chronovu software can read.
Bert Vermeulen [Wed, 16 Apr 2014 18:02:39 +0000 (20:02 +0200)]
output/csv: Use the logic stream's unitsize.
This also fixes the channel index, instead of counting on the logic
data being arranged according to enabled channels only.
Bert Vermeulen [Wed, 16 Apr 2014 13:29:53 +0000 (15:29 +0200)]
output/vcd: Use the logic stream's unitsize.
Also code cleanup and some memory leaks fixed.
Bert Vermeulen [Wed, 16 Apr 2014 13:26:10 +0000 (15:26 +0200)]
output/gnuplot: Use new output API.
Uwe Hermann [Sun, 13 Apr 2014 16:59:08 +0000 (18:59 +0200)]
.gitignore: Add test-suite.log.
Uwe Hermann [Wed, 2 Apr 2014 16:29:36 +0000 (18:29 +0200)]
sr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.
Unify the whole code-base to use NULL there, not a mix of "" and NULL.
Uwe Hermann [Wed, 2 Apr 2014 16:23:23 +0000 (18:23 +0200)]
chronovu-la: Show errors other than "device not found".
This can be useful for the user to see, e.g. for permission related
issues (device is there, but cannot be accessed).
Uwe Hermann [Sat, 5 Apr 2014 11:35:49 +0000 (13:35 +0200)]
configure.ac: Clearly mark required and optional libs.
Aurelien Jacobs [Sun, 6 Apr 2014 20:47:44 +0000 (22:47 +0200)]
rigol-ds: fix long memory depth setting on DS1000
Aurelien Jacobs [Sun, 6 Apr 2014 20:47:44 +0000 (22:47 +0200)]
scpi_usbtmc_libusb: disable all clear_halt for Rigol DS1000
Aurelien Jacobs [Sat, 5 Apr 2014 23:31:12 +0000 (01:31 +0200)]
scpi_usbtmc_libusb: disable bulk_out clear_halt for Rigol DS1000
fix hangup issue with Rigol firmware version 00.02.02.02.00
Aurelien Jacobs [Sat, 5 Apr 2014 15:42:33 +0000 (17:42 +0200)]
fx2lafw: fix possible use of uninitialized variable (gcc-4.9 warning fix)
hardware/fx2lafw/protocol.c: In function 'fx2lafw_command_start_acquisition':
hardware/fx2lafw/protocol.c:113:7: warning: 'cmd.flags' may be used uninitialized in this function [-Wmaybe-uninitialized]
(cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30");
^
Uwe Hermann [Wed, 2 Apr 2014 07:37:29 +0000 (09:37 +0200)]
Various drivers: Expose SR_CONF_TRIGGER_TYPE.
Without this, sigrok-cli --show (for example) will not show the
supported trigger types.
Uwe Hermann [Wed, 2 Apr 2014 07:29:23 +0000 (09:29 +0200)]
chronovu-la: LA16 has fewer max. samples than LA8.
Each LA16 sample is 16bits wide (LA8 samples are 8 bits wide). Adapt the
number returned for SR_CONF_LIMIT_SAMPLES in config_list() accordingly.
Uwe Hermann [Tue, 1 Apr 2014 21:23:23 +0000 (23:23 +0200)]
chronovu-la: Fix byte order for LA16 samples sent to the bus.
Uwe Hermann [Tue, 1 Apr 2014 20:41:02 +0000 (22:41 +0200)]
chronovu-la: Document that streaming is not possible.
This closes bug #261.
Uwe Hermann [Tue, 1 Apr 2014 19:47:11 +0000 (21:47 +0200)]
Rename 'chronovu-la8' driver to 'chronovu-la'.
The driver now also supports the LA16 device (and possibly others in the
future).
Uwe Hermann [Sun, 30 Mar 2014 23:26:07 +0000 (01:26 +0200)]
la8: Add support for the ChronoVu LA16.
The ChronoVu LA16 is a new logic analyzer from ChronoVu with some
differences in features compared to the LA8, e.g.
- Supports 16 channels (instead of 8).
- Max. 200MHz samplerate (instead of 100MHz).
- Supports state triggering (low and high channel value) and edge triggering
(rising or falling edge), the LA8 only supports state triggering.
This driver now supports both the LA8 and LA16, but it needed a few
changes:
- Add support for detecting multiple device instances at all.
- Add support for both LA8 and/or LA16 devices being detected.
- Add a device profile struct for LA8-/LA16-specific device properties.
- Move the samplerates list to devc (it's different for LA8 and LA16).
- Split scan() into two functions, one for scanning, one for adding a device.
- Expand some variables and fields from uint8_t to uint16_t in order to
support 16 channels.
- Update the samplerate related functions to support the LA16's 200MHz.
- Various other minor updates in order to better handle both device types.
- Various error handling improvements and simplifications.
- Also, replace time() with g_get_monotonic_time() everywhere.
This also fixes bug #247 (which was related to incorrect handling of
resources during scan and open of the device, which was exposed by
PulseView allowing multiple consecutive scan/close/open calls).
Uwe Hermann [Sun, 30 Mar 2014 20:40:27 +0000 (22:40 +0200)]
la8: Cleanups, cosmetics, simplifications.
Also, make some LA8 references more generic in preparation of
LA16 support.
Uwe Hermann [Tue, 25 Mar 2014 20:38:47 +0000 (21:38 +0100)]
demo: Fix typos.
Uwe Hermann [Tue, 25 Mar 2014 20:35:31 +0000 (21:35 +0100)]
Various drivers: Drop some unneeded lines.
Bert Vermeulen [Thu, 27 Mar 2014 14:13:24 +0000 (15:13 +0100)]
rigol-ds: Don't close SCPI handle we didn't open.
Aurelien Jacobs [Tue, 25 Mar 2014 22:09:57 +0000 (23:09 +0100)]
rigol-ds: Add the TRIGGER_SLOPE entry to config_get() and config_list()
Uwe Hermann [Tue, 25 Mar 2014 08:26:05 +0000 (09:26 +0100)]
hameg-hmo: Change some PG_/pg_ names to CG_/cg_.
This fixes parts of bug #259.
Uwe Hermann [Mon, 24 Mar 2014 15:11:45 +0000 (16:11 +0100)]
A few more random 'probe' to 'channel' changes.
This fixes parts of bug #259.
Uwe Hermann [Mon, 24 Mar 2014 15:05:42 +0000 (16:05 +0100)]
Rename a few more API calls with 'probe' in their name.
This fixes parts of bug #259.
Uwe Hermann [Mon, 24 Mar 2014 21:39:42 +0000 (22:39 +0100)]
Rename various *PROBE* macros to *CHANNEL*.
This fixes parts of bug #259.
Uwe Hermann [Mon, 24 Mar 2014 20:36:04 +0000 (21:36 +0100)]
Rename sr_probe_new() to sr_channel_new().
This fixes parts of bug #259.
Uwe Hermann [Mon, 24 Mar 2014 20:34:20 +0000 (21:34 +0100)]
Replace 'probe' with 'channel' in most places.
Also, consistently use 'ch' for channel variables. This matches how we
consistently use sdi, devc, and so on all over the code-base.
This fixes parts of bug #259.
Uwe Hermann [Thu, 20 Mar 2014 20:58:57 +0000 (21:58 +0100)]
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
This fixes parts of bug #259.
Uwe Hermann [Thu, 20 Mar 2014 20:58:01 +0000 (21:58 +0100)]
Consistently use 'cg' for channel group variables.
This matches how we consistently use sdi, devc, and so on all over
the code-base.
This fixes parts of bug #259.
Uwe Hermann [Fri, 14 Mar 2014 20:21:09 +0000 (21:21 +0100)]
Replace channel_group.probes with channel_group.channels.
This fixes parts of bug #259.
Uwe Hermann [Fri, 14 Mar 2014 20:22:29 +0000 (21:22 +0100)]
Replace some 'pg' with 'cg'.
(since 'probe groups' are now called 'channel groups')
This fixes parts of bug #259.
Uwe Hermann [Fri, 14 Mar 2014 20:09:37 +0000 (21:09 +0100)]
Replace 'probe group' with 'channel group' everywhere.
The name 'probe' (and thus 'probe group') is a relic from the times when
sigrok was mostly about logic analyzers. Nowadays we support a lot more
device types where 'probe' is not really a good term and 'channel' is
much better suited.
This fixes parts of bug #259.
poljar (Damir Jelić) [Tue, 25 Mar 2014 16:44:38 +0000 (17:44 +0100)]
hameg-hmo: Add missing cases in config_get().
poljar (Damir Jelić) [Tue, 25 Mar 2014 16:44:37 +0000 (17:44 +0100)]
hameg-hmo: Add the TRIGGER_SLOPE entry to config_list().
poljar (Damir Jelić) [Tue, 25 Mar 2014 16:44:36 +0000 (17:44 +0100)]
hameg-hmo: Fix the logic for the horizontal trigger position in config_set()
This patch fixes the logic calculating the trigger position as well as the
(hopefully) last remaining locale issue.
Matthias Heidbrink [Mon, 24 Mar 2014 20:50:07 +0000 (21:50 +0100)]
serial-dmm: Implemented support for Voltcraft M-3650CR (driver voltcraft-m3650cr).
Matthias Heidbrink [Mon, 24 Mar 2014 16:42:52 +0000 (17:42 +0100)]
serial-dmm: Implemented support for Voltcraft ME-42 (driver voltcraft-me42).
Uwe Hermann [Wed, 19 Mar 2014 23:04:45 +0000 (00:04 +0100)]
Makefile.am: Add missing vxi.h.
If it's not listed as SOURCE, it won't end up in the tarball and a build
from tarball would thus break.
Uwe Hermann [Wed, 19 Mar 2014 22:04:55 +0000 (23:04 +0100)]
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
Uwe Hermann [Tue, 11 Mar 2014 18:46:39 +0000 (19:46 +0100)]
scpi_usbtmc_libusb.c: Fix two error checks.
Two error checks had a missing "ret = ", which lead to an incorrect
value being passed to libusb_error_name().
Also, lower the level for those messages from sr_err() to sr_dbg()
since they're not fatal.
Uwe Hermann [Tue, 11 Mar 2014 18:41:51 +0000 (19:41 +0100)]
scpi_usbtmc_libusb.c: Consistently check for < 0 (libusb calls).
Uwe Hermann [Wed, 5 Mar 2014 19:48:54 +0000 (20:48 +0100)]
Fix 'aquisition' typo in a few places.
Aurelien Jacobs [Sun, 9 Mar 2014 22:09:47 +0000 (23:09 +0100)]
brymen-bm86x: disable driver when libusb is not present
Matthias Heidbrink [Sat, 8 Mar 2014 10:04:27 +0000 (11:04 +0100)]
gmc-mh-1x-2x: Whitespace fixes (cosmetic).
Matthias Heidbrink [Sat, 8 Mar 2014 09:56:16 +0000 (10:56 +0100)]
visa: Fixed missing header warnings/uninitialized variable.
Matthias Heidbrink [Sat, 8 Mar 2014 09:50:21 +0000 (10:50 +0100)]
gmc-mh-1x-2x: Cosmetic fixes for Metrahit 25S.
Matthias Heidbrink [Sat, 8 Mar 2014 09:40:38 +0000 (10:40 +0100)]
gmc-mh-1x-2x: Fixed 300 µA range scaling.
Fabio [Wed, 5 Mar 2014 09:04:17 +0000 (10:04 +0100)]
Fluke189 support
I can confirm that the 189 uses the same "QM" command as the 187:
<-- QM\r
--> QM,+03.225 mV AC
Joel Holdsworth [Fri, 28 Feb 2014 18:51:57 +0000 (19:51 +0100)]
Fixed session_driver so that it can run more than one session.
Uwe Hermann [Fri, 28 Feb 2014 12:11:46 +0000 (13:11 +0100)]
brymen-bm86x: Remove std_dev_clear() wrapper.
Uwe Hermann [Fri, 28 Feb 2014 12:08:53 +0000 (13:08 +0100)]
configure.ac: Move Brymen BM86X snippet to correct place.
Aurelien Jacobs [Wed, 19 Feb 2014 14:09:03 +0000 (15:09 +0100)]
brymen-bm86x: actual driver implementation
Aurelien Jacobs [Sat, 8 Feb 2014 21:40:36 +0000 (22:40 +0100)]
brymen-bm86x: Initial driver skeleton.
Daniel Elstner [Tue, 25 Feb 2014 23:29:55 +0000 (00:29 +0100)]
session: Always read a whole number of samples.
Bert Vermeulen [Wed, 26 Feb 2014 20:37:18 +0000 (21:37 +0100)]
Remove std_dev_clear() wrappers from drivers.
Bert Vermeulen [Wed, 26 Feb 2014 20:35:33 +0000 (21:35 +0100)]
session: Implement dev_clear().
Bert Vermeulen [Wed, 26 Feb 2014 20:25:07 +0000 (21:25 +0100)]
device: sr_dev_clear() now always works.
If the driver does not provide a dev_clear() function, the wrapper
now calls std_dev_clear() instead.
Uwe Hermann [Wed, 12 Feb 2014 14:13:41 +0000 (15:13 +0100)]
conrad-digi-35-cpu: Add missing Makefile.am, minor cosmetics.
Matthias Heidbrink [Sat, 8 Feb 2014 13:26:26 +0000 (14:26 +0100)]
conrad-digi-35-cpu: Implemented driver.
Matthias Heidbrink [Wed, 5 Feb 2014 18:50:46 +0000 (19:50 +0100)]
conrad-digi-35-cpu: Initial driver framework.
Uwe Hermann [Wed, 12 Feb 2014 14:04:54 +0000 (15:04 +0100)]
gmc-mh-1x-2x: Shorten driver names a bit.
Matthias Heidbrink [Sun, 9 Feb 2014 17:13:49 +0000 (18:13 +0100)]
gmc-mh-1x-2x: Support for interface SI232-II with driver gmc-mh-2x-bd232.
Matthias Heidbrink [Wed, 5 Feb 2014 13:59:02 +0000 (14:59 +0100)]
gmc-mh-1x-2x: Added new driver gmc-mh-2x-bd232.
Matthias Heidbrink [Wed, 5 Feb 2014 13:46:10 +0000 (14:46 +0100)]
hwdriver.c: Update/extend some Doxygen comments.
Matthias Heidbrink [Wed, 5 Feb 2014 13:40:40 +0000 (14:40 +0100)]
gmc-mh-1x-2x: Cleanup, docs, minor fixes.
Matthias Heidbrink [Wed, 5 Feb 2014 13:32:21 +0000 (14:32 +0100)]
Update/extend some Doxygen comments.
Daniel Elstner [Fri, 7 Feb 2014 19:20:20 +0000 (20:20 +0100)]
scpi_visa: Add missing callback parameter.
(scpi_visa_dev_inst_new): Fix serious compiler warning due to
missing drvc parameter in prototype.
Uwe Hermann [Fri, 7 Feb 2014 18:42:27 +0000 (19:42 +0100)]
scpi_usbtmc_libusb: Consistent libusb error handling.
Uwe Hermann [Fri, 7 Feb 2014 18:01:45 +0000 (19:01 +0100)]
scpi: Disable scpi_usbtmc in favor of scpi_usbtmc_libusb for now.
Having both in the list will "find" the same device twice.
Aurelien Jacobs [Tue, 4 Feb 2014 22:19:02 +0000 (23:19 +0100)]
usb: remove unused sr_usb_find_usbtmc()
Aurelien Jacobs [Fri, 17 Jan 2014 09:49:00 +0000 (10:49 +0100)]
scpi: add a libusb based implementation of usbtmc
Aurelien Jacobs [Sun, 2 Feb 2014 20:50:14 +0000 (21:50 +0100)]
hameg-hmo: use the new scpi scan API
Aurelien Jacobs [Sun, 2 Feb 2014 20:49:57 +0000 (21:49 +0100)]
rigol-ds: use the new scpi scan API
Aurelien Jacobs [Sun, 2 Feb 2014 20:47:45 +0000 (21:47 +0100)]
scpi: add a generic scan API and implement it in usbtmc and serial transport
note that sr_usb_find_serial() is copied from the hameg-hmo driver
Aurelien Jacobs [Fri, 17 Jan 2014 09:47:42 +0000 (10:47 +0100)]
scpi: add a struct drv_context parameter to scpi_dev_inst_new()
Aurelien Jacobs [Sun, 2 Feb 2014 20:33:09 +0000 (21:33 +0100)]
libsigrok-internal.h: endian neutral helper macro to write 8/16/32 bits integer to unaligned memory