Commit Graph

1583 Commits

Author SHA1 Message Date
Martin Ling a8d162f6d3 swig: Wrap additional GVariant operations. 2013-04-17 14:03:38 +01:00
Martin Ling cccb599147 python: Release GIL during libsigrok calls. 2013-04-17 14:01:19 +01:00
Martin Ling a25932e08c python: Adding callback can fail, and refcount must be incremented. 2013-04-17 13:59:30 +01:00
Martin Ling 0220626994 python: use setuptools and put bindings into sigrok.core.lowlevel. 2013-04-17 03:50:27 +01:00
Bert Vermeulen d0eec1eea1 hantek-dso: Mark connection as USB 2013-04-17 01:08:18 +02:00
Bert Vermeulen 949b3dc091 hantek-dso: Use std_dev_clear() 2013-04-17 00:49:41 +02:00
Bert Vermeulen 72f9d6dc5e fx2lafw: No device context internals to clear 2013-04-17 00:49:41 +02:00
Bert Vermeulen ae5859fff0 Allow for sdi->priv helper function in std_dev_clear 2013-04-17 00:49:41 +02:00
Bert Vermeulen c118080b1d hantek-dso: Store USB connection in sr_dev_inst 2013-04-17 00:49:41 +02:00
Uwe Hermann 9bb2f327a9 Python bindings: Small fix for Python 3 support. 2013-04-16 22:35:17 +02:00
Uwe Hermann 415e6389ce chronovu-la8: Fix incorrect 0Hz samplerate being reported.
This closes bug #93.
2013-04-16 22:35:17 +02:00
Bert Vermeulen 250a78c7d5 fx2lafw: Use standard dev_clear() instead 2013-04-16 17:57:08 +02:00
Bert Vermeulen 49f00e13f7 Add driver helper std_dev_clear() 2013-04-16 17:57:08 +02:00
Bert Vermeulen 9e2e98640a 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.
2013-04-16 17:57:08 +02:00
Uwe Hermann 0223135bfb error.c: Add missing SR_ERR_ARG and SR_ERR_NA. 2013-04-16 12:54:11 +02:00
Uwe Hermann 85222791a9 Doxygen: Add missing parameter docs. 2013-04-16 12:48:58 +02:00
Uwe Hermann 63c290b984 Doxygen: Exclude bindings/. 2013-04-16 12:45:38 +02:00
Uwe Hermann 1a64618a2f Doxygen: Set SHOW_NAMESPACES=no.
Since this is a C project, a "Namespaces" page is not really useful.
2013-04-16 12:43:42 +02:00
Uwe Hermann 9fb5f2dfa6 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.
2013-04-16 12:37:54 +02:00
Martin Ling 22f8cb54d1 swig: wrap g_variant_new_uint64. 2013-04-16 12:07:54 +02:00
Martin Ling d962ed92a1 swig: include cdata interface. 2013-04-16 12:07:54 +02:00
Martin Ling 966fcbe3e3 swig: add function to cast from void * to struct sr_datafeed_logic * 2013-04-16 12:07:54 +02:00
Martin Ling 0849c7d310 python: support datafeed callbacks implemented in python. 2013-04-16 12:07:54 +02:00
Martin Ling ab0340c804 swig: use standard wrappers for integer types. 2013-04-16 12:07:54 +02:00
Martin Ling 2726474a61 Add a void *cb_data parameter to datafeed callbacks. 2013-04-16 11:13:18 +02:00
Bert Vermeulen bd6fbf628a drivers: return SR_ERR_NA on unsupported config key
Fixes bug 89.
2013-04-16 11:00:55 +02:00
Uwe Hermann f02121f8d2 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.
2013-04-16 00:58:29 +02:00
Uwe Hermann 8dc93c841f Python bindings: Cosmetics. 2013-04-16 00:57:25 +02:00
Martin Ling 7aafb89274 Tell SWIG that gpointer is really void *. 2013-04-16 00:41:11 +02:00
Martin Ling 758b01adcb Add SWIG interface file and build script for Python bindings. 2013-04-16 00:41:11 +02:00
Bert Vermeulen 72cd99b876 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.
2013-04-16 00:23:34 +02:00
Bert Vermeulen 754b5ff2b4 fx2lafw: Support conn scan parameter
This takes a USB specification. Fixes bug 82.
2013-04-15 23:56:33 +02:00
Bert Vermeulen 1eb0a0df66 usb: Fix bus.address format detection 2013-04-15 23:47:04 +02:00
Bert Vermeulen e5d15bd2a2 ols: Allow configuration before the device is opened 2013-04-15 20:05:43 +02:00
Bert Vermeulen a7be14ada2 rigol-ds1xx2: Don't assume there's a valid sdi 2013-04-15 18:45:38 +02:00
Bert Vermeulen bf25678359 ols: Properly initialize operational state before start 2013-04-15 18:28:43 +02:00
Uwe Hermann e45ad6e24f demo: Fix compiler warning, cosmetics. 2013-04-15 12:27:55 +02:00
Bert Vermeulen 1d16675769 lascar-el-usb: Use two probes for temp/humidity loggers 2013-04-15 01:30:24 +02:00
Joel Holdsworth 2150a69b76 demo: Unref the IO channel when it is no longer used 2013-04-14 23:39:15 +02:00
Joel Holdsworth ed20a42803 demo: Free dev_contexts 2013-04-14 23:39:15 +02:00
Joel Holdsworth a76842947f demo: Moved demo configuration variables into dev_context 2013-04-14 23:39:15 +02:00
Alexandru Gagniuc 33c6e4c5a4 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 <mr.nuke.me@gmail.com>
2013-04-14 23:39:15 +02:00
Joel Holdsworth 33ef757383 demo: Keep a pointer to dev_context in sr_dev_inst and vice-versa 2013-04-14 23:39:15 +02:00
Joel Holdsworth e053204700 demo: Only one GIOChannel is needed 2013-04-14 23:39:15 +02:00
Joel Holdsworth bbd7ef0f18 demo: Fixed glitching in increment signal 2013-04-14 23:39:15 +02:00
Joel Holdsworth f0b6ae19a8 alsa: Set the probe index 2013-04-14 23:39:15 +02:00
Jan Luebbe 9e5670d0ab zeroplus-logic-cube: add USB ID for LAP-16128U 2013-04-14 17:06:57 +02:00
Martin Ling 6bb192bc05 rigol-ds1xx2: support digital channels. 2013-04-14 16:57:02 +02:00
Martin Ling a789b61087 rigol-ds1xx2: doesn't actually support SR_CONF_LIMIT_SAMPLES 2013-04-14 16:57:01 +02:00
Martin Ling ee7e9bee5d rigol-ds1xx2: fix handling of partial frames. 2013-04-14 16:57:01 +02:00