]> sigrok.org Git - libsigrok.git/log
libsigrok.git
11 years agounittests: Adapt to new GVariant system.
Uwe Hermann [Fri, 12 Apr 2013 15:59:38 +0000 (17:59 +0200)]
unittests: Adapt to new GVariant system.

11 years agoFix two minor compiler warnings.
Uwe Hermann [Fri, 12 Apr 2013 15:45:01 +0000 (17:45 +0200)]
Fix two minor compiler warnings.

11 years agooutput/vcd: Use selected probes, not lowest-numbered ones
Bert Vermeulen [Thu, 11 Apr 2013 16:49:24 +0000 (18:49 +0200)]
output/vcd: Use selected probes, not lowest-numbered ones

Thanks to Andrew Bardsley for the patch.

11 years agorigol-ds1xx2: Support for all channels, proper defaults
Bert Vermeulen [Thu, 11 Apr 2013 14:06:55 +0000 (16:06 +0200)]
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.

11 years agorigol-ds1xx2: fix channel numbers
Bert Vermeulen [Mon, 8 Apr 2013 10:01:00 +0000 (12:01 +0200)]
rigol-ds1xx2: fix channel numbers

Copyright bump, too.

11 years agorigol-ds1xx2: better debugging
Bert Vermeulen [Sun, 7 Apr 2013 23:12:42 +0000 (01:12 +0200)]
rigol-ds1xx2: better debugging

11 years agorigol-ds1xx2: properly send frame begin/end packets
Bert Vermeulen [Sun, 7 Apr 2013 22:38:58 +0000 (00:38 +0200)]
rigol-ds1xx2: properly send frame begin/end packets

11 years agohantek-dso: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
Bert Vermeulen [Sun, 7 Apr 2013 22:37:50 +0000 (00:37 +0200)]
hantek-dso: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV

11 years agorigol-ds1xx2: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV
Bert Vermeulen [Sun, 7 Apr 2013 22:37:12 +0000 (00:37 +0200)]
rigol-ds1xx2: Support SR_CONF_NUM_TIMEBASE/SR_CONF_NUM_VDIV

11 years agoAdd SR_CONF keys to report the number of timebases and vdivs
Bert Vermeulen [Sun, 7 Apr 2013 22:29:37 +0000 (00:29 +0200)]
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.

11 years agouse driver callbacks directly
Bert Vermeulen [Sun, 7 Apr 2013 20:51:45 +0000 (22:51 +0200)]
use driver callbacks directly

11 years agorigol-ds1xx2: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
Bert Vermeulen [Sun, 7 Apr 2013 19:51:26 +0000 (21:51 +0200)]
rigol-ds1xx2: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples

11 years agoreturn SR_ERR_ARG if a driver doesn't implement sr_config_*()
Bert Vermeulen [Sun, 7 Apr 2013 19:50:42 +0000 (21:50 +0200)]
return SR_ERR_ARG if a driver doesn't implement sr_config_*()

11 years agoAdd Rigol DS1052E/1102E VID:PID
Bert Vermeulen [Sun, 7 Apr 2013 19:28:54 +0000 (21:28 +0200)]
Add Rigol DS1052E/1102E VID:PID

11 years agohantek-dso: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples
Bert Vermeulen [Sun, 7 Apr 2013 19:02:18 +0000 (21:02 +0200)]
hantek-dso: SR_CONF_TIMEBASE and _VDIVS lists are now an array of tuples

11 years agohantek-dso: move buffer sizes to device context
Bert Vermeulen [Tue, 2 Apr 2013 18:54:44 +0000 (20:54 +0200)]
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.

11 years agools: Get rid of gcc warnings
Bert Vermeulen [Mon, 1 Apr 2013 14:53:14 +0000 (16:53 +0200)]
ols: Get rid of gcc warnings

11 years agochronovu-la8: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:31:49 +0000 (21:31 +0200)]
chronovu-la8: Adjust to GVariant-based sr_config_* functions

11 years agotondaj-sl-814: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:28:33 +0000 (21:28 +0200)]
tondaj-sl-814: Adjust to GVariant-based sr_config_* functions

11 years agouni-t-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:28:33 +0000 (21:28 +0200)]
uni-t-dmm: Adjust to GVariant-based sr_config_* functions

11 years agoserial-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:28:33 +0000 (21:28 +0200)]
serial-dmm: Adjust to GVariant-based sr_config_* functions

11 years agorigol-ds1xx2: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:25:51 +0000 (21:25 +0200)]
rigol-ds1xx2: Adjust to GVariant-based sr_config_* functions

11 years agomic-985xx: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:25:51 +0000 (21:25 +0200)]
mic-985xx: Adjust to GVariant-based sr_config_* functions

11 years agolink-mso19: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 19:25:51 +0000 (21:25 +0200)]
link-mso19: Adjust to GVariant-based sr_config_* functions

11 years agobrymen-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 18:55:39 +0000 (20:55 +0200)]
brymen-dmm: Adjust to GVariant-based sr_config_* functions

11 years agoasix-sigma: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 18:55:39 +0000 (20:55 +0200)]
asix-sigma: Adjust to GVariant-based sr_config_* functions

11 years agoalsa: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sun, 31 Mar 2013 18:55:39 +0000 (20:55 +0200)]
alsa: Adjust to GVariant-based sr_config_* functions

11 years agozeroplus-logic-cube: fix samplerate setting
Bert Vermeulen [Sun, 31 Mar 2013 18:47:01 +0000 (20:47 +0200)]
zeroplus-logic-cube: fix samplerate setting

11 years agosr_voltage_string(): deprecate struct sr_rational
Bert Vermeulen [Sun, 31 Mar 2013 08:27:15 +0000 (10:27 +0200)]
sr_voltage_string(): deprecate struct sr_rational

11 years agozeroplus-logic-cube: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:48:38 +0000 (19:48 +0100)]
zeroplus-logic-cube: Adjust to GVariant-based sr_config_* functions

11 years agonexus-osciprime: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:48:38 +0000 (19:48 +0100)]
nexus-osciprime: Adjust to GVariant-based sr_config_* functions

11 years agoagilent-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:48:38 +0000 (19:48 +0100)]
agilent-dmm: Adjust to GVariant-based sr_config_* functions

11 years agovictor-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:29:44 +0000 (19:29 +0100)]
victor-dmm: Adjust to GVariant-based sr_config_* functions

11 years agofluke-dmm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:29:44 +0000 (19:29 +0100)]
fluke-dmm: Adjust to GVariant-based sr_config_* functions

11 years agocolead-slm: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:29:44 +0000 (19:29 +0100)]
colead-slm: Adjust to GVariant-based sr_config_* functions

11 years agolascar-el-usb: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Sat, 30 Mar 2013 18:08:29 +0000 (19:08 +0100)]
lascar-el-usb: Adjust to GVariant-based sr_config_* functions

11 years agohantek-dso: Small debug fix
Bert Vermeulen [Sat, 30 Mar 2013 14:47:01 +0000 (15:47 +0100)]
hantek-dso: Small debug fix

11 years agohantek-dso: deprecate struct sr_rational
Bert Vermeulen [Sat, 30 Mar 2013 14:24:37 +0000 (15:24 +0100)]
hantek-dso: deprecate struct sr_rational

11 years agoinput/vcd: deprecate struct sr_rational
Bert Vermeulen [Sat, 30 Mar 2013 14:23:44 +0000 (15:23 +0100)]
input/vcd: deprecate struct sr_rational

11 years agosr_parse_(period|voltage): deprecate struct sr_rational
Bert Vermeulen [Sat, 30 Mar 2013 13:41:01 +0000 (14:41 +0100)]
sr_parse_(period|voltage): deprecate struct sr_rational

11 years agodemo: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Tue, 26 Mar 2013 21:02:45 +0000 (22:02 +0100)]
demo: Adjust to GVariant-based sr_config_* functions

11 years agohantek-dso: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Tue, 26 Mar 2013 20:38:32 +0000 (21:38 +0100)]
hantek-dso: Adjust to GVariant-based sr_config_* functions

11 years agostruct sr_samplerates is now obsolete
Bert Vermeulen [Mon, 25 Mar 2013 19:41:28 +0000 (20:41 +0100)]
struct sr_samplerates is now obsolete

sr_config_get() of SR_CONF_SAMPLERATE now returns a GVARIANT_TYPE_DICTIONARY.
This dictionary contains a single key-value pair. Possible values for the key:

 - "samplerates": the value is an array of GVARIANT_TYPE_UINT64 representing
   all valid samplerates.
 - "samplerate-steps": the value is an array of GVARIANT_TYPE_UINT64 with
   exactly three members, which represent the lowest samplerate, highest
   samplerate, and the minimum step, respectively.

11 years agools: allow for disabling of RLE as well
Bert Vermeulen [Mon, 25 Mar 2013 19:40:40 +0000 (20:40 +0100)]
ols: allow for disabling of RLE as well

11 years agools: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Mon, 25 Mar 2013 19:40:15 +0000 (20:40 +0100)]
ols: Adjust to GVariant-based sr_config_* functions

11 years agofx2lafw: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Mon, 25 Mar 2013 19:30:56 +0000 (20:30 +0100)]
fx2lafw: Adjust to GVariant-based sr_config_* functions

11 years agoAdd SR_CONF_TRIGGER_TYPE config_info list
Bert Vermeulen [Mon, 25 Mar 2013 19:29:45 +0000 (20:29 +0100)]
Add SR_CONF_TRIGGER_TYPE config_info list

11 years agoinput/output modules: Adjust to GVariant-based sr_config_* functions
Bert Vermeulen [Mon, 25 Mar 2013 19:27:26 +0000 (20:27 +0100)]
input/output modules: Adjust to GVariant-based sr_config_* functions

11 years agoAdd sr_config_free()
Bert Vermeulen [Mon, 25 Mar 2013 19:23:13 +0000 (20:23 +0100)]
Add sr_config_free()

Due to struct sr_config now containing a GVariant, this needs to be
cleaned up after use properly. This is a helper function for that.

11 years agoAdjust to GVariant-based sr_config_* functions
Bert Vermeulen [Mon, 25 Mar 2013 19:21:10 +0000 (20:21 +0100)]
Adjust to GVariant-based sr_config_* functions

11 years agoUse GVariant for sr_config_*() functions
Bert Vermeulen [Mon, 25 Mar 2013 14:38:44 +0000 (15:38 +0100)]
Use GVariant for sr_config_*() functions

sr_config_get() provides a GVariant owned by the caller, so it must be
released with g_variant_unref() when done.

sr_config_set() takes a GVariant from the caller which may be floating;
it will be properly sunk and release after use by this function. Thus
the output of g_variant_new_*() may be used as an argument.

sr_config_list() also provides a GVariant owned by the caller, to be
unreferenced when done.

sr_config_make() can take a floating reference.

11 years agoBump copyright year
Bert Vermeulen [Sun, 24 Mar 2013 10:21:00 +0000 (11:21 +0100)]
Bump copyright year

11 years agoconfigure.ac: Fix checks for cross-compiles.
Uwe Hermann [Tue, 9 Apr 2013 17:52:38 +0000 (19:52 +0200)]
configure.ac: Fix checks for cross-compiles.

When checking architecture-specific things, always check $host, i.e. the
architecture we're building _for_, not the one we happen to build _on_.

E.g. when cross-compiling _for_ Android (or Windows or others) it's important
to check for Android in $host; whether we happen to cross-compile _on_ a Linux
or Windows or OpenBSD or FreeBSD machine ($build) doesn't matter, only the
fact that we compile _for_ Android is important for most checks.

11 years agovcd output: Build fix for Windows/MinGW.
Uwe Hermann [Tue, 9 Apr 2013 16:50:34 +0000 (18:50 +0200)]
vcd output: Build fix for Windows/MinGW.

On Windows/MinGW 'recv' seems to be already defined in windows.h/winsock2.h.

Use 'receive' instead, for now, otherwise we get an error:

vcd.c:147:17: error: conflicting types for 'recv'

11 years agoconfigure.ac: Print $host and $build.
Uwe Hermann [Tue, 9 Apr 2013 16:47:31 +0000 (18:47 +0200)]
configure.ac: Print $host and $build.

In the configure summary at the end also print the architecture we're
building on ($build) and the target host we build for ($host). The two are
not necessarily the same, e.g. in the case of cross-compiles.

11 years agoconfigure.ac: Mention required lib versions.
Uwe Hermann [Tue, 9 Apr 2013 16:08:16 +0000 (18:08 +0200)]
configure.ac: Mention required lib versions.

In the summary output at the end of a configure run, explicitly mention
which versions of which libraries are required, and also the version which
pkg-config has found.

11 years agoconfigure.ac: Only enable rigol-ds1xx2 on Linux.
Uwe Hermann [Tue, 9 Apr 2013 15:58:37 +0000 (17:58 +0200)]
configure.ac: Only enable rigol-ds1xx2 on Linux.

11 years agoconfigure.ac: Cosmetics for the list of drivers.
Uwe Hermann [Tue, 9 Apr 2013 08:03:58 +0000 (10:03 +0200)]
configure.ac: Cosmetics for the list of drivers.

Use the canonical driver name (all-lowercase, e.g. "serial-dmm") in the
list of enabled/disabled drivers that configure prints after a run.

It's common to many drivers that they support multiple devices, so
printing one device name (e.g. "ChronoVu LA8") is seldom really correct.
E.g. the agilent-dmm, asix-sigma, brymen-dmm, colead-slm, fluke-dmm,
fx2lafw, hantek-dso, lascar-el-usb, mic-985xx, openbench-logic-sniffer,
rigol-ds1xx2, uni-t-dmm, victor-dmm, and zeroplus-logic-cube drivers
all support more than just one device.

So, just print the driver name instead which is more correct anyway
since it's specifically a list of enabled/disabled drivers.

11 years agoconfigure.ac: Improve a libusb-1.0 related check.
Uwe Hermann [Mon, 8 Apr 2013 13:56:54 +0000 (15:56 +0200)]
configure.ac: Improve a libusb-1.0 related check.

Don't rely on the "heuristic" that 'libusb_CFLAGS' will be non-empty if
libusb-1.0 was found, but rather use the proper method of checking the
variable 'have_libusb1_0' which pkg-config will set to "yes"/"no"
depending on whether it finds the library.

11 years agoconfigure.ac: Improve USB/EZUSB/serial checks.
Uwe Hermann [Mon, 8 Apr 2013 13:40:57 +0000 (15:40 +0200)]
configure.ac: Improve USB/EZUSB/serial checks.

 - If libusb-1.0 is not found, do not compile in ezusb.c and usb.c since
   they require libusb.h. The respective hardware drivers that use
   libusb-1.0, and usb.c and/or ezusb.c will be excluded from the build
   elsewhere in configure.ac. Rename NEED_EZUSB to NEED_USB.

 - Drop the NEED_SERIAL check and always compile in serial.c. This is a
   very small chunk of code, it does not depend on any external
   libraries that might be missing, and it compiles on all architectures.
   Thus there's no need to conditionally include or exclude it.

11 years agoconfigure.ac: Fix the order of some entries.
Uwe Hermann [Tue, 9 Apr 2013 10:32:30 +0000 (12:32 +0200)]
configure.ac: Fix the order of some entries.

In order for lib autodetection and disabling of drivers (which require
libs that cannot be found) to work, the order of AC_ARG_ENABLEs,
AM_CONDITIONALs, and AC_DEFINEs needs to be changed.

All drivers start out enabled or disabled (depending on whether
the --disable-drivers option was supplied or not). Then, any driver can
be enabled or disabled explicitly via --enable-<drivername> or the
resp. --disable-<drivername> option. Finally, pkg-config checks for all
libraries are performed, and all drivers which require a library that
cannot be found are disabled explicitly (regardless of any
--enable-<drivername> option that might have been supplied).

11 years agoconfigure.ac: Improve pkg-config related checks.
Uwe Hermann [Mon, 8 Apr 2013 12:46:13 +0000 (14:46 +0200)]
configure.ac: Improve pkg-config related checks.

Until now, we checked for certain (optional) libraries via pkg-config and
the configure script would abort if any of them was not found, even
though they were optional. It was up to the user to then figure out which
combination of --disable-<drivername> switches were required for his
specific OS (and set of installed libs) to get a working configure run.

Only if the user already specified enough --disable-<drivername>
switches beforehand, so that all drivers which require a missing library
were disabled, would the configure run not check for that specific lib
(and would thus not fail).

With this change, we now always unconditionally check for all libs
(required and optional) via pkg-config. However, whether an (optional) lib
is found or not, configure will not abort. Instead, it'll just disable
all drivers which need a lib that cannot be found.

The user will no longer have to supply --disable-<drivername> parameters
in order to get a working build.

11 years agoFix kernel driver attached check
Bert Vermeulen [Sun, 7 Apr 2013 12:14:16 +0000 (14:14 +0200)]
Fix kernel driver attached check

The check is really only broken on darwin, but useful on all other
platforms, even if only Linux can actually detach a driver.

11 years agohantek-dso: cosmetics
Bert Vermeulen [Tue, 2 Apr 2013 12:33:17 +0000 (14:33 +0200)]
hantek-dso: cosmetics

11 years agoDoxygen: Exclude std.c and tests/*.
Uwe Hermann [Sat, 6 Apr 2013 17:28:48 +0000 (19:28 +0200)]
Doxygen: Exclude std.c and tests/*.

These don't contain any public API functions or macros and thus should
not appear in the ("public API" version of) the Doxygen docs.

11 years agoDoxygen: Properly document and handle version.h.
Uwe Hermann [Sat, 6 Apr 2013 17:25:03 +0000 (19:25 +0200)]
Doxygen: Properly document and handle version.h.

11 years agoDoxygen: Fix a few warnings.
Uwe Hermann [Sat, 6 Apr 2013 17:18:37 +0000 (19:18 +0200)]
Doxygen: Fix a few warnings.

11 years agohantek-dso: use per-device firmware filenames
Bert Vermeulen [Tue, 2 Apr 2013 12:18:59 +0000 (14:18 +0200)]
hantek-dso: use per-device firmware filenames

11 years agos/sr_config_make/sr_config_new/.
Uwe Hermann [Sun, 17 Mar 2013 15:50:51 +0000 (16:50 +0100)]
s/sr_config_make/sr_config_new/.

This matches the naming of other/similar functions better.

11 years agorigol-ds1xx2: Use ARRAY_SIZE.
Uwe Hermann [Tue, 12 Mar 2013 20:40:03 +0000 (21:40 +0100)]
rigol-ds1xx2: Use ARRAY_SIZE.

11 years agoserial-dmm: Add support for RadioShack 22-805
Alexandru Gagniuc [Thu, 21 Mar 2013 01:36:56 +0000 (20:36 -0500)]
serial-dmm: Add support for RadioShack 22-805

Protocol-wise, this is identical to the 22-168, except that it communicates at
600 baud instead of 1200 baud.

11 years agoset proper build defaults for brymen-dmm and mic-985xx drivers
Bert Vermeulen [Tue, 19 Mar 2013 21:07:21 +0000 (22:07 +0100)]
set proper build defaults for brymen-dmm and mic-985xx drivers

11 years agoserial.c: FreeBSD and OpenBSD don't have OFILL either.
Uwe Hermann [Sun, 17 Mar 2013 14:07:50 +0000 (15:07 +0100)]
serial.c: FreeBSD and OpenBSD don't have OFILL either.

11 years agoconfigure.ac: Add 'color-tests' (colorized 'make check').
Uwe Hermann [Sun, 17 Mar 2013 12:22:22 +0000 (13:22 +0100)]
configure.ac: Add 'color-tests' (colorized 'make check').

11 years agoconfigure.ac: Drop std-options, unneeded.
Uwe Hermann [Sun, 17 Mar 2013 12:19:57 +0000 (13:19 +0100)]
configure.ac: Drop std-options, unneeded.

The automake 'std-options' option checks whether all installed tools
and scripts have a --help and --version CLI option. This check is not
needed for libsigrok though, since it doesn't install any tools.

11 years agoDon't make README.devices executable.
Uwe Hermann [Sun, 17 Mar 2013 12:07:59 +0000 (13:07 +0100)]
Don't make README.devices executable.

11 years agoREADME: Refer to INSTALL and new Building wiki page.
Uwe Hermann [Sun, 17 Mar 2013 11:53:08 +0000 (12:53 +0100)]
README: Refer to INSTALL and new Building wiki page.

11 years agoautotools: Don't use "foreign" option.
Uwe Hermann [Sun, 17 Mar 2013 11:58:26 +0000 (12:58 +0100)]
autotools: Don't use "foreign" option.

This adds INSTALL and allows for a few more sanity checks being done.

11 years agolascar-el-usb: push samplerate before data log
Bert Vermeulen [Sat, 16 Mar 2013 20:50:35 +0000 (21:50 +0100)]
lascar-el-usb: push samplerate before data log

11 years agoadd SR_CONF_SAMPLE_INTERVAL
Bert Vermeulen [Sat, 16 Mar 2013 19:17:41 +0000 (20:17 +0100)]
add SR_CONF_SAMPLE_INTERVAL

Expresses the time between samples, in milliseconds. This can be used
for devices with a samplerate > 1 second, such as dataloggers, which
cannot be expressed with SR_CONF_SAMPLERATE.

11 years agoAdd initial README.devices file.
Uwe Hermann [Wed, 13 Mar 2013 09:33:17 +0000 (10:33 +0100)]
Add initial README.devices file.

11 years agoconfigure.ac: Add missing AM_PROG_CC_C_O.
Uwe Hermann [Tue, 12 Mar 2013 22:00:58 +0000 (23:00 +0100)]
configure.ac: Add missing AM_PROG_CC_C_O.

11 years agolascar-el-usb: support for SR_CONF_DATALOG
Bert Vermeulen [Mon, 11 Mar 2013 15:36:40 +0000 (16:36 +0100)]
lascar-el-usb: support for SR_CONF_DATALOG

11 years agoadd SR_CONF_DATALOG
Bert Vermeulen [Mon, 11 Mar 2013 15:35:18 +0000 (16:35 +0100)]
add SR_CONF_DATALOG

11 years agools: use ptr to int dereference for SR_T_BOOL
Bert Vermeulen [Mon, 11 Mar 2013 14:28:41 +0000 (15:28 +0100)]
ols: use ptr to int dereference for SR_T_BOOL

This mad ptr to int casting has to go.

11 years agosr_init(): Sanity-check input/output modules.
Uwe Hermann [Sun, 10 Mar 2013 16:13:15 +0000 (17:13 +0100)]
sr_init(): Sanity-check input/output modules.

11 years agoAdd missing ULL suffixes to SR_MHZ() et al.
Uwe Hermann [Sat, 9 Mar 2013 11:20:17 +0000 (12:20 +0100)]
Add missing ULL suffixes to SR_MHZ() et al.

This fixes bug #72.

11 years agoAdd a testsuite for libsigrok.
Uwe Hermann [Thu, 7 Mar 2013 08:37:42 +0000 (09:37 +0100)]
Add a testsuite for libsigrok.

This adds a suite of unit tests for libsigrok. It uses the 'Check'
tool/library (apt-get install check) to run the tests.

The configure tool tries to find libcheck. If it succeeds, a
"make check" will run all tests. Otherwise, none of the tests will
be built and "make check" will not run any tests.

This also means that users who don't have 'check' installed will still
be able to build and install libsigrok just fine.

11 years agooutput/vcd: use new API
Bert Vermeulen [Wed, 6 Mar 2013 22:14:00 +0000 (23:14 +0100)]
output/vcd: use new API

11 years agodemo: sync get/set options
Bert Vermeulen [Sun, 3 Mar 2013 20:17:48 +0000 (21:17 +0100)]
demo: sync get/set options

11 years agoDrop deprecated sr_session_halt().
Uwe Hermann [Sun, 3 Mar 2013 17:02:24 +0000 (18:02 +0100)]
Drop deprecated sr_session_halt().

This has been deprecated in favor of sr_session_stop() since a while.

None of the current frontends use sr_session_halt() anymore, neither
does libsigrok.

11 years agomso-19: Initial analog probe support (unfinished).
lelazary [Tue, 8 Jan 2013 16:27:52 +0000 (08:27 -0800)]
mso-19: Initial analog probe support (unfinished).

 - Added the analog probe (unfinished).

 - Reset trigger to state to 0 before capture, just incase the scope is in
   the middle of a capture.

11 years agomso-19: Fixed warning.
lelazary [Tue, 8 Jan 2013 16:00:57 +0000 (08:00 -0800)]
mso-19: Fixed warning.

11 years agodoxygen: Add more output format docs.
Uwe Hermann [Fri, 22 Feb 2013 14:12:32 +0000 (15:12 +0100)]
doxygen: Add more output format docs.

This is largely taken from the respective wiki page (with some updates
and improvements), which will be removed in favor of the doxygen docs.

11 years agodoxygen: Add more input format docs.
Uwe Hermann [Thu, 21 Feb 2013 20:27:27 +0000 (21:27 +0100)]
doxygen: Add more input format docs.

This is largely taken from the respective wiki page (with some updates
and improvements), which will be removed in favor of the doxygen docs.

11 years agoinput: new WAV file module
Bert Vermeulen [Thu, 21 Feb 2013 14:20:50 +0000 (15:20 +0100)]
input: new WAV file module

11 years agoinput: feed the filename to the module's init() function
Bert Vermeulen [Thu, 21 Feb 2013 13:48:43 +0000 (14:48 +0100)]
input: feed the filename to the module's init() function

This is essential if a format contains e.g. the number of probes; the
init() function needs to initialize the sr_dev_inst struct, but needs
access to the file to properly add the probes to it.

11 years agomic985xx: Add missing memset().
Uwe Hermann [Mon, 11 Feb 2013 17:23:17 +0000 (18:23 +0100)]
mic985xx: Add missing memset().

11 years agomic-985xx: Add support for the MIC 98581.
Uwe Hermann [Sat, 9 Feb 2013 15:13:03 +0000 (16:13 +0100)]
mic-985xx: Add support for the MIC 98581.

This device only supports temperature measurements, no humidity.

11 years agohantek-dso: minor fixes
Bert Vermeulen [Sun, 10 Feb 2013 16:06:38 +0000 (17:06 +0100)]
hantek-dso: minor fixes