]> sigrok.org Git - libsigrok.git/log
libsigrok.git
11 years agoDrop link-mso19/nexus-osciprime in preparation for release.
Uwe Hermann [Thu, 25 Apr 2013 17:01:54 +0000 (19:01 +0200)]
Drop link-mso19/nexus-osciprime in preparation for release.

These two drivers are currently unfinished and don't work, so disable
and "unhook" them for now in preparation of the next libsigrok release.

They're still in the git repository, but not hooked up to the build
system, so that they won't get detected or built, and also don't end up
in the release tarball.

Since link-mso19 is the only driver that currently requires libudev,
drop any reference to that, too.

It should be relatively easy to apply this patch in reverse after the
release to bring back both drivers.

11 years agoREADME.devices: Fix typo.
Uwe Hermann [Thu, 25 Apr 2013 15:42:20 +0000 (17:42 +0200)]
README.devices: Fix typo.

11 years agopython: Add Session.open_device().
Uwe Hermann [Wed, 24 Apr 2013 22:15:49 +0000 (00:15 +0200)]
python: Add Session.open_device().

11 years agopython: sr_config's value field is called 'data'.
Uwe Hermann [Wed, 24 Apr 2013 21:43:56 +0000 (23:43 +0200)]
python: sr_config's value field is called 'data'.

11 years agopython: Support keyword arguments to scan()
Martin Ling [Wed, 24 Apr 2013 16:48:04 +0000 (17:48 +0100)]
python: Support keyword arguments to scan()

11 years agopython: Add a ConfigKey class.
Martin Ling [Wed, 24 Apr 2013 16:47:40 +0000 (17:47 +0100)]
python: Add a ConfigKey class.

11 years agopython: Add conversion functions to/from GSList *
Martin Ling [Wed, 24 Apr 2013 13:47:07 +0000 (14:47 +0100)]
python: Add conversion functions to/from GSList *

11 years agoOpen virtual device before loading file
Bert Vermeulen [Wed, 24 Apr 2013 21:06:50 +0000 (23:06 +0200)]
Open virtual device before loading file

11 years agoEnforce open device before config_set()/dev_acquisition_start()
Bert Vermeulen [Tue, 23 Apr 2013 13:14:42 +0000 (15:14 +0200)]
Enforce open device before config_set()/dev_acquisition_start()

11 years agoAdd sr_dev_open()/sr_dev_close()
Bert Vermeulen [Mon, 22 Apr 2013 22:21:57 +0000 (00:21 +0200)]
Add sr_dev_open()/sr_dev_close()

Frontends will be required to open a device before using
sr_config_set() or starting acquisition.

11 years agoWhitespace fixes
Bert Vermeulen [Wed, 24 Apr 2013 17:07:46 +0000 (19:07 +0200)]
Whitespace fixes

Damn editor.

11 years agofx2lafw: Minor cleanup
Bert Vermeulen [Wed, 24 Apr 2013 01:05:25 +0000 (03:05 +0200)]
fx2lafw: Minor cleanup

11 years agohantek-dso: Support conn scan parameter
Bert Vermeulen [Wed, 24 Apr 2013 01:04:12 +0000 (03:04 +0200)]
hantek-dso: Support conn scan parameter

11 years agorigol-ds1xx2: Code cleanup
Bert Vermeulen [Wed, 24 Apr 2013 00:09:49 +0000 (02:09 +0200)]
rigol-ds1xx2: Code cleanup

11 years agorigol-ds1xx2: Use common serial code.
Martin Ling [Mon, 22 Apr 2013 15:12:06 +0000 (16:12 +0100)]
rigol-ds1xx2: Use common serial code.

11 years agorigol-ds1xx2: Accept SR_CONF_CONN.
Martin Ling [Mon, 22 Apr 2013 13:59:55 +0000 (14:59 +0100)]
rigol-ds1xx2: Accept SR_CONF_CONN.

11 years agomic-985xx: Use sr_dev_inst to store connection handle.
Uwe Hermann [Tue, 23 Apr 2013 21:06:02 +0000 (23:06 +0200)]
mic-985xx: Use sr_dev_inst to store connection handle.

11 years agoFix minor warning with some compilers.
Uwe Hermann [Tue, 23 Apr 2013 20:54:02 +0000 (22:54 +0200)]
Fix minor warning with some compilers.

11 years agoGPL headers: Use correct project name.
Uwe Hermann [Tue, 23 Apr 2013 20:24:30 +0000 (22:24 +0200)]
GPL headers: Use correct project name.

11 years agoserial-dmm: Use sr_dev_inst to store connection handle.
Uwe Hermann [Tue, 23 Apr 2013 17:07:15 +0000 (19:07 +0200)]
serial-dmm: Use sr_dev_inst to store connection handle.

11 years agoMore python build stuff to ignore
Bert Vermeulen [Tue, 23 Apr 2013 08:05:48 +0000 (10:05 +0200)]
More python build stuff to ignore

11 years agosr_dev_inst_*() -> sr_dev_*()
Bert Vermeulen [Mon, 22 Apr 2013 13:55:06 +0000 (15:55 +0200)]
sr_dev_inst_*() -> sr_dev_*()

11 years agozeroplus-logic-cube: Use sr_dev_inst to store connection handle
Bert Vermeulen [Mon, 22 Apr 2013 13:00:04 +0000 (15:00 +0200)]
zeroplus-logic-cube: Use sr_dev_inst to store connection handle

11 years agools: Use sr_dev_inst to store connection handle
Bert Vermeulen [Mon, 22 Apr 2013 11:40:40 +0000 (13:40 +0200)]
ols: Use sr_dev_inst to store connection handle

11 years agools: Fix stack clobbering at start of acquisition
Bert Vermeulen [Mon, 22 Apr 2013 11:33:31 +0000 (13:33 +0200)]
ols: Fix stack clobbering at start of acquisition

This off-by-one was clobbering the stack since introduced in a803c0db4d58.
However it only set one bit, and that generally appears to have been set
already, so this rarely affected anything. But when it did, it affected
a pointer, causing a segfault.

11 years agofluke-dmm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 23:07:35 +0000 (01:07 +0200)]
fluke-dmm: Use sr_dev_inst to store connection handle

11 years agocolead-slm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 22:27:11 +0000 (00:27 +0200)]
colead-slm: Use sr_dev_inst to store connection handle

11 years agoagilent-dmm: Use sr_dev_inst to store connection handle
Bert Vermeulen [Sun, 21 Apr 2013 19:44:31 +0000 (21:44 +0200)]
agilent-dmm: Use sr_dev_inst to store connection handle

11 years agorigol-ds1xx2: fix delay time.
Martin Ling [Sun, 21 Apr 2013 19:42:22 +0000 (20:42 +0100)]
rigol-ds1xx2: fix delay time.

11 years agopython: fix Fraction -> GVariant tuple conversion.
Martin Ling [Sun, 21 Apr 2013 18:52:09 +0000 (19:52 +0100)]
python: fix Fraction -> GVariant tuple conversion.

11 years agorigol-ds1xx2: better error handling in hw_scan.
Martin Ling [Sun, 21 Apr 2013 12:17:40 +0000 (13:17 +0100)]
rigol-ds1xx2: better error handling in hw_scan.

11 years agovictor-dmm: Allow configuration before the device is opened
Bert Vermeulen [Fri, 19 Apr 2013 19:19:54 +0000 (21:19 +0200)]
victor-dmm: Allow configuration before the device is opened

11 years agoDrop obsolete g_match_info_unref() workaround.
Uwe Hermann [Sat, 20 Apr 2013 11:43:48 +0000 (13:43 +0200)]
Drop obsolete g_match_info_unref() workaround.

We hard-depend on glib >= 2.32.0 now anyway, so this is no longer needed.

11 years agoAdd initial, lowlevel Ruby bindings.
Uwe Hermann [Fri, 19 Apr 2013 18:19:14 +0000 (20:19 +0200)]
Add initial, lowlevel Ruby bindings.

11 years agopython: unify pkg-config calls in setup.py.
Martin Ling [Fri, 19 Apr 2013 16:41:44 +0000 (17:41 +0100)]
python: unify pkg-config calls in setup.py.

11 years agopython: Use --cflags-only-I to get includes in setup.py.
Martin Ling [Fri, 19 Apr 2013 16:30:44 +0000 (17:30 +0100)]
python: Use --cflags-only-I to get includes in setup.py.

11 years agopython: Add classes for values of API enums.
Martin Ling [Fri, 19 Apr 2013 15:57:13 +0000 (16:57 +0100)]
python: Add classes for values of API enums.

11 years agopython: Add a Log class to control libsigrok logging.
Uwe Hermann [Fri, 19 Apr 2013 11:15:51 +0000 (13:15 +0200)]
python: Add a Log class to control libsigrok logging.

11 years agopython: config_get() now returns SR_ERR_NA.
Uwe Hermann [Fri, 19 Apr 2013 09:58:40 +0000 (11:58 +0200)]
python: config_get() now returns SR_ERR_NA.

11 years agovictor-dmm: Support SR_CONF_CONN
Bert Vermeulen [Thu, 18 Apr 2013 20:48:09 +0000 (22:48 +0200)]
victor-dmm: Support SR_CONF_CONN

11 years agolascar-el-usb: Support SR_CONF_CONN
Bert Vermeulen [Thu, 18 Apr 2013 20:30:10 +0000 (22:30 +0200)]
lascar-el-usb: Support SR_CONF_CONN

11 years agohantek-dso: Consistently return SR_ERR_ARG if sdi is needed
Bert Vermeulen [Thu, 18 Apr 2013 19:37:38 +0000 (21:37 +0200)]
hantek-dso: Consistently return SR_ERR_ARG if sdi is needed

11 years agofx2lafw: Consistently return SR_ERR_ARG if sdi is needed
Bert Vermeulen [Thu, 18 Apr 2013 19:36:25 +0000 (21:36 +0200)]
fx2lafw: Consistently return SR_ERR_ARG if sdi is needed

11 years agopython: Add further properties to Analog class.
Uwe Hermann [Thu, 18 Apr 2013 15:45:17 +0000 (17:45 +0200)]
python: Add further properties to Analog class.

11 years agopython: Add Analog class.
Martin Ling [Wed, 17 Apr 2013 16:48:39 +0000 (17:48 +0100)]
python: Add Analog class.

11 years agohantek-dso: Support config_get(SR_CONF_CONN)
Bert Vermeulen [Wed, 17 Apr 2013 23:21:57 +0000 (01:21 +0200)]
hantek-dso: Support config_get(SR_CONF_CONN)

11 years agofx2lafw: Support config_get(SR_CONF_CONN)
Bert Vermeulen [Wed, 17 Apr 2013 23:15:37 +0000 (01:15 +0200)]
fx2lafw: Support config_get(SR_CONF_CONN)

This generates a bus.address conn string which can be used to
uniquely identify the given sr_dev_inst.

11 years agopython: Add missing license headers.
Uwe Hermann [Wed, 17 Apr 2013 15:26:46 +0000 (17:26 +0200)]
python: Add missing license headers.

11 years agopython: fix cdata to work with Python 3.x.
Martin Ling [Wed, 17 Apr 2013 14:38:33 +0000 (15:38 +0100)]
python: fix cdata to work with Python 3.x.

11 years agopython: Fix syntax to support Python 3.x.
Martin Ling [Wed, 17 Apr 2013 14:37:58 +0000 (15:37 +0100)]
python: Fix syntax to support Python 3.x.

11 years agopython: Add high level API.
Martin Ling [Wed, 17 Apr 2013 13:30:31 +0000 (14:30 +0100)]
python: Add high level API.

11 years agoswig: Wrap additional GVariant operations.
Martin Ling [Wed, 17 Apr 2013 13:03:38 +0000 (14:03 +0100)]
swig: Wrap additional GVariant operations.

11 years agopython: Release GIL during libsigrok calls.
Martin Ling [Wed, 17 Apr 2013 13:01:19 +0000 (14:01 +0100)]
python: Release GIL during libsigrok calls.

11 years agopython: Adding callback can fail, and refcount must be incremented.
Martin Ling [Wed, 17 Apr 2013 12:59:30 +0000 (13:59 +0100)]
python: Adding callback can fail, and refcount must be incremented.

11 years agopython: use setuptools and put bindings into sigrok.core.lowlevel.
Martin Ling [Wed, 17 Apr 2013 02:50:27 +0000 (03:50 +0100)]
python: use setuptools and put bindings into sigrok.core.lowlevel.

11 years agohantek-dso: Mark connection as USB
Bert Vermeulen [Tue, 16 Apr 2013 23:08:18 +0000 (01:08 +0200)]
hantek-dso: Mark connection as USB

11 years agohantek-dso: Use std_dev_clear()
Bert Vermeulen [Tue, 16 Apr 2013 22:49:18 +0000 (00:49 +0200)]
hantek-dso: Use std_dev_clear()

11 years agofx2lafw: No device context internals to clear
Bert Vermeulen [Tue, 16 Apr 2013 22:42:06 +0000 (00:42 +0200)]
fx2lafw: No device context internals to clear

11 years agoAllow for sdi->priv helper function in std_dev_clear
Bert Vermeulen [Tue, 16 Apr 2013 22:41:01 +0000 (00:41 +0200)]
Allow for sdi->priv helper function in std_dev_clear

11 years agohantek-dso: Store USB connection in sr_dev_inst
Bert Vermeulen [Tue, 16 Apr 2013 21:15:34 +0000 (23:15 +0200)]
hantek-dso: Store USB connection in sr_dev_inst

11 years agoPython bindings: Small fix for Python 3 support.
Uwe Hermann [Tue, 16 Apr 2013 20:19:00 +0000 (22:19 +0200)]
Python bindings: Small fix for Python 3 support.

11 years agochronovu-la8: Fix incorrect 0Hz samplerate being reported.
Uwe Hermann [Tue, 16 Apr 2013 13:42:45 +0000 (15:42 +0200)]
chronovu-la8: Fix incorrect 0Hz samplerate being reported.

This closes bug #93.

11 years agofx2lafw: Use standard dev_clear() instead
Bert Vermeulen [Tue, 16 Apr 2013 15:55:56 +0000 (17:55 +0200)]
fx2lafw: Use standard dev_clear() instead

11 years agoAdd driver helper std_dev_clear()
Bert Vermeulen [Tue, 16 Apr 2013 15:53:21 +0000 (17:53 +0200)]
Add driver helper std_dev_clear()

11 years agosr: add conn to sdi, for storing a ptr to device-specific connection info
Bert Vermeulen [Mon, 1 Oct 2012 01:03:24 +0000 (03:03 +0200)]
sr: add conn to sdi, for storing a ptr to device-specific connection info

What's in conn depends on the long-ignored inst_type field.

11 years agoerror.c: Add missing SR_ERR_ARG and SR_ERR_NA.
Uwe Hermann [Tue, 16 Apr 2013 10:54:11 +0000 (12:54 +0200)]
error.c: Add missing SR_ERR_ARG and SR_ERR_NA.

11 years agoDoxygen: Add missing parameter docs.
Uwe Hermann [Tue, 16 Apr 2013 10:48:58 +0000 (12:48 +0200)]
Doxygen: Add missing parameter docs.

11 years agoDoxygen: Exclude bindings/.
Uwe Hermann [Tue, 16 Apr 2013 10:45:38 +0000 (12:45 +0200)]
Doxygen: Exclude bindings/.

11 years agoDoxygen: Set SHOW_NAMESPACES=no.
Uwe Hermann [Tue, 16 Apr 2013 10:43:42 +0000 (12:43 +0200)]
Doxygen: Set SHOW_NAMESPACES=no.

Since this is a C project, a "Namespaces" page is not really useful.

11 years agoDoxygen: Add @since markers.
Uwe Hermann [Sat, 13 Apr 2013 16:58:11 +0000 (18:58 +0200)]
Doxygen: Add @since markers.

Add @since tags to some (not all yet) public API functions, to document
in which release they were added (and/or in which release there were
API changes).

Document the @since usage in HACKING.

Also, add Doxygen docs for the functions in version.c.

11 years agoswig: wrap g_variant_new_uint64.
Martin Ling [Tue, 16 Apr 2013 02:33:56 +0000 (03:33 +0100)]
swig: wrap g_variant_new_uint64.

11 years agoswig: include cdata interface.
Martin Ling [Tue, 16 Apr 2013 02:11:48 +0000 (03:11 +0100)]
swig: include cdata interface.

11 years agoswig: add function to cast from void * to struct sr_datafeed_logic *
Martin Ling [Tue, 16 Apr 2013 02:02:52 +0000 (03:02 +0100)]
swig: add function to cast from void * to struct sr_datafeed_logic *

11 years agopython: support datafeed callbacks implemented in python.
Martin Ling [Tue, 16 Apr 2013 01:55:39 +0000 (02:55 +0100)]
python: support datafeed callbacks implemented in python.

11 years agoswig: use standard wrappers for integer types.
Martin Ling [Tue, 16 Apr 2013 01:55:11 +0000 (02:55 +0100)]
swig: use standard wrappers for integer types.

11 years agoAdd a void *cb_data parameter to datafeed callbacks.
Martin Ling [Mon, 15 Apr 2013 20:08:55 +0000 (21:08 +0100)]
Add a void *cb_data parameter to datafeed callbacks.

11 years agodrivers: return SR_ERR_NA on unsupported config key
Bert Vermeulen [Tue, 16 Apr 2013 00:33:03 +0000 (02:33 +0200)]
drivers: return SR_ERR_NA on unsupported config key

Fixes bug 89.

11 years agoPython bindings: Fix reported libsigrok version.
Uwe Hermann [Mon, 15 Apr 2013 22:58:29 +0000 (00:58 +0200)]
Python bindings: Fix reported libsigrok version.

Use 'pkg-config --modversion libsigrok' to get the libsigrok package
version. 'pkg-config --version libsigrok' ignores the argument and just
reports the version of pkg-config itself.

11 years agoPython bindings: Cosmetics.
Uwe Hermann [Mon, 15 Apr 2013 22:57:00 +0000 (00:57 +0200)]
Python bindings: Cosmetics.

11 years agoTell SWIG that gpointer is really void *.
Martin Ling [Mon, 15 Apr 2013 22:05:38 +0000 (23:05 +0100)]
Tell SWIG that gpointer is really void *.

11 years agoAdd SWIG interface file and build script for Python bindings.
Martin Ling [Mon, 15 Apr 2013 19:01:07 +0000 (20:01 +0100)]
Add SWIG interface file and build script for Python bindings.

11 years agools: Report when a device doesn't support metadata
Bert Vermeulen [Mon, 15 Apr 2013 22:23:34 +0000 (00:23 +0200)]
ols: Report when a device doesn't support metadata

Not an error, but it does mean it's either a really old or really
basic device, and will help us to debug people's problems with
these.

Fixes bug 92.

11 years agofx2lafw: Support conn scan parameter
Bert Vermeulen [Mon, 15 Apr 2013 21:50:16 +0000 (23:50 +0200)]
fx2lafw: Support conn scan parameter

This takes a USB specification. Fixes bug 82.

11 years agousb: Fix bus.address format detection
Bert Vermeulen [Mon, 15 Apr 2013 21:47:04 +0000 (23:47 +0200)]
usb: Fix bus.address format detection

11 years agools: Allow configuration before the device is opened
Bert Vermeulen [Mon, 15 Apr 2013 18:05:43 +0000 (20:05 +0200)]
ols: Allow configuration before the device is opened

11 years agorigol-ds1xx2: Don't assume there's a valid sdi
Bert Vermeulen [Mon, 15 Apr 2013 16:45:38 +0000 (18:45 +0200)]
rigol-ds1xx2: Don't assume there's a valid sdi

11 years agools: Properly initialize operational state before start
Bert Vermeulen [Mon, 15 Apr 2013 16:28:16 +0000 (18:28 +0200)]
ols: Properly initialize operational state before start

11 years agodemo: Fix compiler warning, cosmetics.
Uwe Hermann [Mon, 15 Apr 2013 10:27:55 +0000 (12:27 +0200)]
demo: Fix compiler warning, cosmetics.

11 years agolascar-el-usb: Use two probes for temp/humidity loggers
Bert Vermeulen [Sun, 14 Apr 2013 23:30:24 +0000 (01:30 +0200)]
lascar-el-usb: Use two probes for temp/humidity loggers

11 years agodemo: Unref the IO channel when it is no longer used
Joel Holdsworth [Sun, 14 Apr 2013 18:19:35 +0000 (19:19 +0100)]
demo: Unref the IO channel when it is no longer used

11 years agodemo: Free dev_contexts
Joel Holdsworth [Sun, 14 Apr 2013 17:52:02 +0000 (18:52 +0100)]
demo: Free dev_contexts

11 years agodemo: Moved demo configuration variables into dev_context
Joel Holdsworth [Sun, 14 Apr 2013 16:00:47 +0000 (17:00 +0100)]
demo: Moved demo configuration variables into dev_context

11 years agosession: Make sr_session_stop thread-safe
Alexandru Gagniuc [Sat, 2 Feb 2013 06:50:00 +0000 (00:50 -0600)]
session: Make sr_session_stop thread-safe

With the sigrok session running in a worker thread, if sr_session_stop is called
from another thread, it shuts down the pollfds used by the hardware drivers,
without ensuring that the sigrok event loop is no longer using those pollfds.

On the demo driver, this involves shutting down the GIOChannels, causing a
segfault when the sigrok event loop tries to use them. This is evident when
using the Stop button in PulseView, while the session is running.

This isn't a problem with just the demo driver; any driver's resources may be
freed by sr_session_stop concurrently with the sigrok session running.

To solve this problem, we don't touch the session itself in sr_session_stop().
Instead, we mark it for decommissioning and return. The session polls this flag,
and shuts itself down when requested.

This fixes bug 4.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agodemo: Keep a pointer to dev_context in sr_dev_inst and vice-versa
Joel Holdsworth [Sun, 14 Apr 2013 14:46:15 +0000 (15:46 +0100)]
demo: Keep a pointer to dev_context in sr_dev_inst and vice-versa

11 years agodemo: Only one GIOChannel is needed
Joel Holdsworth [Sat, 13 Apr 2013 15:43:16 +0000 (16:43 +0100)]
demo: Only one GIOChannel is needed

11 years agodemo: Fixed glitching in increment signal
Joel Holdsworth [Sat, 13 Apr 2013 15:08:52 +0000 (16:08 +0100)]
demo: Fixed glitching in increment signal

11 years agoalsa: Set the probe index
Joel Holdsworth [Sat, 16 Mar 2013 08:43:36 +0000 (08:43 +0000)]
alsa: Set the probe index

11 years agozeroplus-logic-cube: add USB ID for LAP-16128U
Jan Luebbe [Sat, 13 Apr 2013 21:27:07 +0000 (23:27 +0200)]
zeroplus-logic-cube: add USB ID for LAP-16128U

11 years agorigol-ds1xx2: support digital channels.
Martin Ling [Sun, 14 Apr 2013 01:21:55 +0000 (02:21 +0100)]
rigol-ds1xx2: support digital channels.

11 years agorigol-ds1xx2: doesn't actually support SR_CONF_LIMIT_SAMPLES
Martin Ling [Sat, 13 Apr 2013 21:25:41 +0000 (22:25 +0100)]
rigol-ds1xx2: doesn't actually support SR_CONF_LIMIT_SAMPLES