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
Bert Vermeulen
4c7aca66de
ignore test leftovers
2013-04-14 16:44:49 +02:00
Bert Vermeulen
0c05591abf
ols: Support get/set/list on all device options
...
Where it makes sense: _LOGIC_ANALYZER and _TRIGGER_TYPE don't have much
use for all of them.
2013-04-14 00:36:05 +02:00
Bert Vermeulen
8f35be72b4
rigol-ds1xx2: Use g_usleep() for portability
2013-04-12 19:42:44 +02:00
Uwe Hermann
406569ddea
Bump glib requirement to >= 2.32.0.
...
This is now required, e.g. due to the usage of g_variant_new_fixed_array().
2013-04-12 18:47:06 +02:00
Uwe Hermann
169dbe8577
rigol-ds1xx2: Whitespace, minor fix.
...
Return SR_ERR_MALLOC for failed malloc, not SR_ERR.
2013-04-12 18:44:28 +02:00
Uwe Hermann
34e4c27391
unittests: Adapt to new GVariant system.
2013-04-12 17:59:38 +02:00
Uwe Hermann
ff08a52a0f
Fix two minor compiler warnings.
2013-04-12 17:45:01 +02:00
Bert Vermeulen
ba6568c5ad
output/vcd: Use selected probes, not lowest-numbered ones
...
Thanks to Andrew Bardsley for the patch.
2013-04-11 18:49:24 +02:00
Bert Vermeulen
254dd102e8
rigol-ds1xx2: Support for all channels, proper defaults
...
Since this driver supports devices with a control panel and display,
we take the defaults from the device -- not a set of sensible
defaults as usual.
2013-04-11 18:32:08 +02:00
Bert Vermeulen
88e429c97f
rigol-ds1xx2: fix channel numbers
...
Copyright bump, too.
2013-04-11 18:32:08 +02:00
Bert Vermeulen
a3df166f02
rigol-ds1xx2: better debugging
2013-04-11 18:32:08 +02:00
Bert Vermeulen
75d8a4e576
rigol-ds1xx2: properly send frame begin/end packets
2013-04-11 18:32:08 +02:00
Bert Vermeulen
7991784841
hantek-dso: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
2013-04-11 18:32:08 +02:00
Bert Vermeulen
d62d7ad151
rigol-ds1xx2: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
2013-04-11 18:32:08 +02:00
Bert Vermeulen
2efa699fda
Add SR_CONF keys to report the number of timebases and vdivs
...
Number of timebases is needed to properly interpret a frame's worth
of samples. Number of vertical divisions isn't, but may nevertheless
be interesting for a frontend that wants to reproduce the scope's
native display.
2013-04-11 18:32:08 +02:00
Bert Vermeulen
d8284802ca
use driver callbacks directly
2013-04-11 18:32:08 +02:00
Bert Vermeulen
861c447bfb
rigol-ds1xx2: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
2013-04-11 18:32:08 +02:00
Bert Vermeulen
6cefe516aa
return SR_ERR_ARG if a driver doesn't implement sr_config_*()
2013-04-11 18:32:08 +02:00
Bert Vermeulen
82b904b173
Add Rigol DS1052E/1102E VID:PID
2013-04-11 18:32:08 +02:00
Bert Vermeulen
3973ee26f5
hantek-dso: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
2013-04-11 18:32:08 +02:00
Bert Vermeulen
034accb512
hantek-dso: move buffer sizes to device context
...
There are only two sizes for every device: 10k and the complete
per-channel buffer size. This can be doubled if one channel is disabled.
2013-04-11 18:32:08 +02:00
Bert Vermeulen
fe9ac25250
ols: Get rid of gcc warnings
2013-04-11 18:32:08 +02:00
Bert Vermeulen
1bec72d2ac
chronovu-la8: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
afdf6d6a20
tondaj-sl-814: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
7d93a62ea3
uni-t-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
ede25f4e6f
serial-dmm: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00
Bert Vermeulen
f6a0ac9f62
rigol-ds1xx2: Adjust to GVariant-based sr_config_* functions
2013-04-11 18:32:07 +02:00