]> sigrok.org Git - libsigrok.git/log
libsigrok.git
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

11 years agoasix-sigma: don't try to free static storage
Bert Vermeulen [Sun, 10 Feb 2013 15:49:23 +0000 (16:49 +0100)]
asix-sigma: don't try to free static storage

11 years agoproperly deal with decimals
Bert Vermeulen [Mon, 4 Feb 2013 12:36:23 +0000 (13:36 +0100)]
properly deal with decimals

11 years agoAdd/use std_hw_dev_acquisition_stop_serial().
Uwe Hermann [Fri, 1 Feb 2013 22:45:32 +0000 (23:45 +0100)]
Add/use std_hw_dev_acquisition_stop_serial().

11 years agozeroplus: Only report supported samplerates.
Uwe Hermann [Fri, 8 Feb 2013 22:13:33 +0000 (23:13 +0100)]
zeroplus: Only report supported samplerates.

The currently supported model LAP-C(16032) doesn't support the
samplerates 150MHz and 200MHz which some of the other models have.

Thus, do not report these samplerates to the frontends. E.g. sigrok-cli
should not show them via --show and GUIs should not list them in their
"Samplerates" drop-down.

11 years agozeroplus: Cosmetics, small fixes, drop unneeded stuff.
Uwe Hermann [Fri, 8 Feb 2013 21:18:55 +0000 (22:18 +0100)]
zeroplus: Cosmetics, small fixes, drop unneeded stuff.

11 years agozeroplus: Split into api.c and protocol.c.
Uwe Hermann [Thu, 7 Feb 2013 21:09:39 +0000 (22:09 +0100)]
zeroplus: Split into api.c and protocol.c.

11 years agosession.c: Drop left-over 'session: ' prefix.
Uwe Hermann [Thu, 7 Feb 2013 08:16:28 +0000 (09:16 +0100)]
session.c: Drop left-over 'session: ' prefix.

This is added automatically now.

11 years agoRename session_dev_id to cb_data everywhere.
Uwe Hermann [Thu, 7 Feb 2013 08:11:26 +0000 (09:11 +0100)]
Rename session_dev_id to cb_data everywhere.

We use 'cb_data' in all drivers these days, make the few remaining ones
that use 'session_dev_id' consistent.

11 years agoDriver struct cleanups.
Uwe Hermann [Wed, 6 Feb 2013 21:35:24 +0000 (22:35 +0100)]
Driver struct cleanups.

 - Explicitly list .config_get in all drivers for consistency, and set it
   to NULL if unused (whether or not a driver implements it is optional).

 - List all 'struct sr_dev_driver' entries in the same order in all drivers.

 - Move the check whether .config_set/.config_list exist (i.e., are non-NULL)
   into sanity_check_all_drivers().

11 years agoAdd and use std_session_send_df_header().
Uwe Hermann [Wed, 6 Feb 2013 18:57:32 +0000 (19:57 +0100)]
Add and use std_session_send_df_header().

This is a small helper function which sends the SR_DF_HEADER packet that
drivers usually emit in their hw_dev_acquisition_start() API callback.
It simplifies and shortens the hw_dev_acquisition_start() functions
quite a bit.

It also simplifies the input modules which send an SR_DF_HEADER packet, too.

This patch also automatically removes some unneeded malloc/free in some
drivers for the 'packet' and 'header' structs used for SR_DF_HEADER.

11 years agohw_dev_close(): Move common checks to wrapper.
Uwe Hermann [Fri, 1 Feb 2013 21:58:54 +0000 (22:58 +0100)]
hw_dev_close(): Move common checks to wrapper.

Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.

11 years agoShorten/simplify hw_dev_list() implementations.
Uwe Hermann [Sat, 2 Feb 2013 18:52:26 +0000 (19:52 +0100)]
Shorten/simplify hw_dev_list() implementations.

11 years agoserial-dmm: Drop unneeded g_try_malloc0().
Uwe Hermann [Sat, 2 Feb 2013 11:22:18 +0000 (12:22 +0100)]
serial-dmm: Drop unneeded g_try_malloc0().

11 years agoMake 'struct rs9lcd_info' non-empty.
Uwe Hermann [Sat, 2 Feb 2013 11:14:26 +0000 (12:14 +0100)]
Make 'struct rs9lcd_info' non-empty.

Empty structs can be an issue (compiler-dependent), so add a dummy entry
for this one.

11 years agobrymen-dmm: Cosmetics, coding-style, consistency.
Uwe Hermann [Sat, 2 Feb 2013 10:35:20 +0000 (11:35 +0100)]
brymen-dmm: Cosmetics, coding-style, consistency.

Also, name the driver "brymen-bm857" in preparation to doing "subdrivers"
for other Brymen models later (similar to serial-dmm).

11 years agobrymen-dmm: Use std_hw_init().
Uwe Hermann [Sat, 2 Feb 2013 10:19:03 +0000 (11:19 +0100)]
brymen-dmm: Use std_hw_init().

11 years agobrymen-dmm: Add support for Brymen BM857
Alexandru Gagniuc [Mon, 26 Nov 2012 23:09:05 +0000 (17:09 -0600)]
brymen-dmm: Add support for Brymen BM857

This patch might also work for a number of other Brymen models
-- 859(a), 867, 869---
including their respective rebadges from Greenlee, Extech, and Amprobe.

Signed-off-by: Alexandru Gagniuc <redacted>
11 years agobrymen-dmm: Initial driver skeleton.
Alexandru Gagniuc [Thu, 22 Nov 2012 03:20:39 +0000 (21:20 -0600)]
brymen-dmm: Initial driver skeleton.

11 years agoInitial driver implementation for MIC 98583.
Uwe Hermann [Wed, 30 Jan 2013 17:21:07 +0000 (18:21 +0100)]
Initial driver implementation for MIC 98583.

This is a USB/serial (Prolific) based temperature and humidity logger.

11 years agomic-985xx: Initial driver skeleton.
Uwe Hermann [Wed, 30 Jan 2013 15:58:01 +0000 (16:58 +0100)]
mic-985xx: Initial driver skeleton.

11 years agozeroplus: Use message logging helpers.
Uwe Hermann [Mon, 28 Jan 2013 16:43:04 +0000 (17:43 +0100)]
zeroplus: Use message logging helpers.

11 years agodevice: Cosmetics.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
device: Cosmetics.

11 years agoDrivers: Explicitly list sr_samplerates fields.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
Drivers: Explicitly list sr_samplerates fields.

This makes it a bit easier to understand which value means what, just
from looking at the driver code.

11 years agoFactor out common hw_init() driver code.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
Factor out common hw_init() driver code.

Most drivers do pretty much the same things in their hw_init()
right now, so factor out that code to std_hw_init() in std.c.

11 years agosr_driver_scan(): Improve checks.
Uwe Hermann [Mon, 28 Jan 2013 19:00:54 +0000 (20:00 +0100)]
sr_driver_scan(): Improve checks.

Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.

Also, do some minor whitespace and consistency improvements.

11 years agosr_driver_init(): Improve checks.
Uwe Hermann [Mon, 28 Jan 2013 18:36:16 +0000 (19:36 +0100)]
sr_driver_init(): Improve checks.

Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.

Also, change one SR_ERR to the more correct SR_ERR_MALLOC, and assign
sr_ctx in the rigol-ds1xx2's hw_init() function, like all the other
drivers do.

11 years agohwdriver: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
hwdriver: Use message logging helpers.

11 years agosession: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
session: Use message logging helpers.

11 years agohantek-dso: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:05:00 +0000 (12:05 +0100)]
hantek-dso: Use message logging helpers.

11 years agoCheck sr_config_set value argument is not NULL
Joel Holdsworth [Mon, 28 Jan 2013 20:28:03 +0000 (20:28 +0000)]
Check sr_config_set value argument is not NULL

11 years agoMade sr_config_list driver argument a const pointer
Joel Holdsworth [Mon, 28 Jan 2013 20:26:37 +0000 (20:26 +0000)]
Made sr_config_list driver argument a const pointer

11 years agoMade sr_config_get driver argument a const pointer
Joel Holdsworth [Mon, 28 Jan 2013 20:25:56 +0000 (20:25 +0000)]
Made sr_config_get driver argument a const pointer

11 years agoserial.c: NetBSD doesn't have OFILL.
Uwe Hermann [Sun, 27 Jan 2013 00:23:01 +0000 (01:23 +0100)]
serial.c: NetBSD doesn't have OFILL.

11 years agoCode cleanup.
Bert Vermeulen [Sat, 26 Jan 2013 00:18:19 +0000 (01:18 +0100)]
Code cleanup.

11 years agoRemove sr_driver_hwcap_exists().
Bert Vermeulen [Fri, 25 Jan 2013 19:41:49 +0000 (20:41 +0100)]
Remove sr_driver_hwcap_exists().

11 years agoRename sr_dev_has_hwcap() to sr_dev_has_option().
Bert Vermeulen [Fri, 25 Jan 2013 15:20:40 +0000 (16:20 +0100)]
Rename sr_dev_has_hwcap() to sr_dev_has_option().

11 years agodrivers: Trim unused config_get() calls
Bert Vermeulen [Fri, 25 Jan 2013 15:05:48 +0000 (16:05 +0100)]
drivers: Trim unused config_get() calls

None of the driver config_get/set/list calls are required.

11 years agoRename sr_info_get() to sr_config_get().
Bert Vermeulen [Fri, 25 Jan 2013 14:48:44 +0000 (15:48 +0100)]
Rename sr_info_get() to sr_config_get().

11 years agoRename sr_dev_config_set() to sr_config_set()
Bert Vermeulen [Fri, 25 Jan 2013 14:38:57 +0000 (15:38 +0100)]
Rename sr_dev_config_set() to sr_config_set()

11 years agoHeader cleanup.
Bert Vermeulen [Fri, 25 Jan 2013 14:16:39 +0000 (15:16 +0100)]
Header cleanup.

11 years agoDeprecate SR_DI_HWOPTS.
Bert Vermeulen [Fri, 25 Jan 2013 14:09:20 +0000 (15:09 +0100)]
Deprecate SR_DI_HWOPTS.

This is replaced by SR_CONF_SCAN_OPTIONS.

11 years agoDeprecate SR_DI_HWCAPS.
Bert Vermeulen [Fri, 25 Jan 2013 14:01:49 +0000 (15:01 +0100)]
Deprecate SR_DI_HWCAPS.

This is replaced by SR_CONF_DEVICE_OPTIONS.

11 years agoDeprecate SR_DI_TRIGGER_TYPES.
Bert Vermeulen [Fri, 25 Jan 2013 10:52:27 +0000 (11:52 +0100)]
Deprecate SR_DI_TRIGGER_TYPES.

This is replaced by SR_CONF_TRIGGER_TYPE.

11 years agoDeprecate SR_DI_TRIGGER_SOURCES.
Bert Vermeulen [Fri, 25 Jan 2013 10:25:32 +0000 (11:25 +0100)]
Deprecate SR_DI_TRIGGER_SOURCES.

This is replaced by SR_CONF_TRIGGER_SOURCE.

11 years agoDeprecate SR_DI_TIMEBASES.
Bert Vermeulen [Fri, 25 Jan 2013 10:22:20 +0000 (11:22 +0100)]
Deprecate SR_DI_TIMEBASES.

This is replaced by SR_CONF_TIMEBASE.

11 years agoDeprecate SR_DI_FILTERS.
Bert Vermeulen [Fri, 25 Jan 2013 10:19:12 +0000 (11:19 +0100)]
Deprecate SR_DI_FILTERS.

This is replaced by SR_CONF_FILTER.