]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Fri, 1 Feb 2013 22:45:32 +0000 (23:45 +0100)]
Add/use std_hw_dev_acquisition_stop_serial().
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.
Uwe Hermann [Fri, 8 Feb 2013 21:18:55 +0000 (22:18 +0100)]
zeroplus: Cosmetics, small fixes, drop unneeded stuff.
Uwe Hermann [Thu, 7 Feb 2013 21:09:39 +0000 (22:09 +0100)]
zeroplus: Split into api.c and protocol.c.
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.
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.
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().
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.
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.
Uwe Hermann [Sat, 2 Feb 2013 18:52:26 +0000 (19:52 +0100)]
Shorten/simplify hw_dev_list() implementations.
Uwe Hermann [Sat, 2 Feb 2013 11:22:18 +0000 (12:22 +0100)]
serial-dmm: Drop unneeded g_try_malloc0().
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.
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).
Uwe Hermann [Sat, 2 Feb 2013 10:19:03 +0000 (11:19 +0100)]
brymen-dmm: Use std_hw_init().
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>
Alexandru Gagniuc [Thu, 22 Nov 2012 03:20:39 +0000 (21:20 -0600)]
brymen-dmm: Initial driver skeleton.
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.
Uwe Hermann [Wed, 30 Jan 2013 15:58:01 +0000 (16:58 +0100)]
mic-985xx: Initial driver skeleton.
Uwe Hermann [Mon, 28 Jan 2013 16:43:04 +0000 (17:43 +0100)]
zeroplus: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
device: Cosmetics.
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.
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.
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.
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.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
hwdriver: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:55:00 +0000 (12:55 +0100)]
session: Use message logging helpers.
Uwe Hermann [Tue, 29 Jan 2013 11:05:00 +0000 (12:05 +0100)]
hantek-dso: Use message logging helpers.
Joel Holdsworth [Mon, 28 Jan 2013 20:28:03 +0000 (20:28 +0000)]
Check sr_config_set value argument is not NULL
Joel Holdsworth [Mon, 28 Jan 2013 20:26:37 +0000 (20:26 +0000)]
Made sr_config_list 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
Uwe Hermann [Sun, 27 Jan 2013 00:23:01 +0000 (01:23 +0100)]
serial.c: NetBSD doesn't have OFILL.
Bert Vermeulen [Sat, 26 Jan 2013 00:18:19 +0000 (01:18 +0100)]
Code cleanup.
Bert Vermeulen [Fri, 25 Jan 2013 19:41:49 +0000 (20:41 +0100)]
Remove sr_driver_hwcap_exists().
Bert Vermeulen [Fri, 25 Jan 2013 15:20:40 +0000 (16:20 +0100)]
Rename sr_dev_has_hwcap() to sr_dev_has_option().
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.
Bert Vermeulen [Fri, 25 Jan 2013 14:48:44 +0000 (15:48 +0100)]
Rename sr_info_get() to sr_config_get().
Bert Vermeulen [Fri, 25 Jan 2013 14:38:57 +0000 (15:38 +0100)]
Rename sr_dev_config_set() to sr_config_set()
Bert Vermeulen [Fri, 25 Jan 2013 14:16:39 +0000 (15:16 +0100)]
Header cleanup.
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.
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.
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.
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.
Bert Vermeulen [Fri, 25 Jan 2013 10:22:20 +0000 (11:22 +0100)]
Deprecate SR_DI_TIMEBASES.
This is replaced by SR_CONF_TIMEBASE.
Bert Vermeulen [Fri, 25 Jan 2013 10:19:12 +0000 (11:19 +0100)]
Deprecate SR_DI_FILTERS.
This is replaced by SR_CONF_FILTER.
Bert Vermeulen [Fri, 25 Jan 2013 10:13:49 +0000 (11:13 +0100)]
Deprecate SR_DI_VDIVS.
This is replaced by SR_CONF_VDIV.
Bert Vermeulen [Fri, 25 Jan 2013 10:04:27 +0000 (11:04 +0100)]
Deprecate SR_DI_COUPLING.
This is replaced by SR_CONF_COUPLING.
Bert Vermeulen [Fri, 25 Jan 2013 09:58:37 +0000 (10:58 +0100)]
Deprecate SR_DI_BUFFERSIZES.
This is replaced by SR_CONF_BUFFERSIZE.
Bert Vermeulen [Fri, 25 Jan 2013 02:38:44 +0000 (03:38 +0100)]
Deprecate SR_DI_PATTERNS.
This is replaced by SR_CONF_PATTERN_MODE.
Bert Vermeulen [Fri, 25 Jan 2013 02:17:36 +0000 (03:17 +0100)]
Deprecate SR_DI_CUR_SAMPLERATE.
This is replaced by SR_CONF_SAMPLERATE.
Bert Vermeulen [Fri, 25 Jan 2013 01:39:58 +0000 (02:39 +0100)]
deprecate SR_DI_SAMPLERATES
This is replaced by a call to config_list() with id SR_CONF_SAMPLERATE.
Bert Vermeulen [Fri, 25 Jan 2013 01:32:05 +0000 (02:32 +0100)]
drivers: implement config_list()
Bert Vermeulen [Fri, 25 Jan 2013 00:24:42 +0000 (01:24 +0100)]
New driver API function: config_list()
This takes an sr_config key and returns a list of possible values for
that key to be submitted with config_set(). The format of the list and
its contents is dependent on the key.
This will replace the SR_DI_* keys that returned such a list before,
such as SR_DI_SAMPLERATES.
Bert Vermeulen [Thu, 24 Jan 2013 18:19:09 +0000 (19:19 +0100)]
drivers: rename and reorganize config get/set
The driver API calls info_get() and dev_config_set() have been renamed
to config_get() and config_set(), respectively.
Bert Vermeulen [Wed, 23 Jan 2013 02:40:44 +0000 (03:40 +0100)]
Always interleave analog data with all enabled probes.
The new "probes" field in sr_datafeed_analog contains a copy
of all enabled struct sr_probe.
Bert Vermeulen [Wed, 23 Jan 2013 01:32:58 +0000 (02:32 +0100)]
serial: more serial processing flags to turn off
Bert Vermeulen [Tue, 22 Jan 2013 10:18:18 +0000 (11:18 +0100)]
Header cleanup: remove unused structs.
Bert Vermeulen [Mon, 21 Jan 2013 22:40:09 +0000 (23:40 +0100)]
uni-t-dmm: use new sr_config struct
Bert Vermeulen [Mon, 21 Jan 2013 22:22:47 +0000 (23:22 +0100)]
Rename SR_HWOPT_* and SR_HWCAP_* to SR_CONF_*
Bert Vermeulen [Mon, 21 Jan 2013 20:58:19 +0000 (21:58 +0100)]
Unify all SR_HWOPT_* and SR_HWCAP_* enums.
Only two functions remain for accessing meta info on the keys:
sr_config_info_get() and sr_config_info_name_get().
Bert Vermeulen [Sun, 20 Jan 2013 15:38:28 +0000 (16:38 +0100)]
No need to send a metapacket when loading a sigrok file.
Bert Vermeulen [Sun, 20 Jan 2013 15:37:23 +0000 (16:37 +0100)]
Adjust session debugging to the new SR_DF_META packets.
Bert Vermeulen [Sun, 20 Jan 2013 15:36:35 +0000 (16:36 +0100)]
Deprecate SR_HWOPT_MODEL
This was only ever used for the defunct genericdmm driver.
Bert Vermeulen [Sun, 20 Jan 2013 15:35:25 +0000 (16:35 +0100)]
Use new struct sr_config_info for option metadata
Bert Vermeulen [Sun, 20 Jan 2013 15:34:38 +0000 (16:34 +0100)]
Add small helper for creating struct sr_config
Bert Vermeulen [Sun, 20 Jan 2013 15:33:24 +0000 (16:33 +0100)]
Adjust option helpers to new sr_config struct
Bert Vermeulen [Sun, 20 Jan 2013 14:45:09 +0000 (15:45 +0100)]
Use new SR_DF_META packet.
Since input modules determine a samplerate by reading from their
file format (or having it overridden with an option), they need
to pass this up to the frontend.
Bert Vermeulen [Sat, 19 Jan 2013 12:20:34 +0000 (13:20 +0100)]
free USB config descriptor after use
Bert Vermeulen [Sun, 6 Jan 2013 16:41:30 +0000 (17:41 +0100)]
drivers: use new sr_config struct
Sending an SR_DF_META packet at the start of every stream is not
mandatory; the frontend should ask for what it needs, and any extra
information the driver wants to send will come in due time.
Bert Vermeulen [Sun, 6 Jan 2013 15:37:41 +0000 (16:37 +0100)]
unify sr_datafeed_meta_* into one struct containing sr_config
struct sr_config is the new name for sr_hwopt. Its companion meta
struct, sr_hwcap_option, was renamed sr_config_info.
Uwe Hermann [Mon, 21 Jan 2013 00:47:30 +0000 (01:47 +0100)]
serial.c: Fix copy-paste error.
Thanks Bert Vermeulen for reporting.
Uwe Hermann [Mon, 21 Jan 2013 00:45:02 +0000 (01:45 +0100)]
uni-t-dmm: Quickfix for UNI-T UT61D.
This is a temporary fix only, since a major rework of uni-t-dmm is being
done at the moment, soon to be merged.
Uwe Hermann [Sat, 19 Jan 2013 21:00:39 +0000 (22:00 +0100)]
Add missing "ULL" suffixes.
These numbers are larger than 32bit, mark them as ULL to avoid compile
failures on 32bit systems.
Uwe Hermann [Sun, 20 Jan 2013 18:57:04 +0000 (19:57 +0100)]
uni-t-dmm: Expose hwopts.
Uwe Hermann [Sun, 20 Jan 2013 18:55:33 +0000 (19:55 +0100)]
uni-t-dmm: Fix scanning, properly use new sr_usb_find().
Uwe Hermann [Sun, 20 Jan 2013 17:48:02 +0000 (18:48 +0100)]
Remove non-error hw_info_get() messages.
Currently hw_info_get() can receive requests for entries (info_id) that
the specific driver doesn't support. That is (right now) a valid
use-case and not an error (might change later, though).
Thus, for now, don't output messages for such requests at all (certainly
not as sr_err() where they show up in e.g. sigrok-cli output per default).
Uwe Hermann [Sun, 20 Jan 2013 17:47:35 +0000 (18:47 +0100)]
udev: Add UNI-T UT-D04 multimeter cable entry.
Uwe Hermann [Sat, 19 Jan 2013 20:20:56 +0000 (21:20 +0100)]
configure.ac: Drop AC_PROG_CXX.
We don't need a C++ compiler for libsigrok, so don't check for one.
This would cause a build failure on all systems where there is a C compiler
but no C++ compiler installed.
Uwe Hermann [Sat, 19 Jan 2013 18:13:52 +0000 (19:13 +0100)]
README: Document alsa (optional) library.
Uwe Hermann [Sat, 19 Jan 2013 14:55:22 +0000 (15:55 +0100)]
serial.c: OpenBSD doesn't have
B460800 .
Uwe Hermann [Wed, 16 Jan 2013 00:31:46 +0000 (01:31 +0100)]
configure.ac: Drop gthread check, no longer used.
We no longer use gthread (its only user was the 'demo' driver), so drop
the 'configure' check for it.
The libsigrok.pc pkg-config file is still correct, since the 'configure'
result propagates there automatically.
Uwe Hermann [Tue, 15 Jan 2013 23:02:24 +0000 (00:02 +0100)]
alsa: Silence ALSA scanning process.
Errors while opening or configuring ALSA devices during scan for devices
should not be shown by default (i.e., no sr_err() usage). Non-working
or non-accessible devices (due to permissions or other reasons) will
simply not show up in frontends. Use sr_dbg() instead of sr_err().
Bert Vermeulen [Tue, 15 Jan 2013 16:20:57 +0000 (17:20 +0100)]
Get rid of obsolete SR_DI_NUM_PROBES and SR_DI_PROBE_NAMES.
Frontends should use the probe list in the device's sr_dev_inst
to get this information.
Uwe Hermann [Mon, 14 Jan 2013 10:13:58 +0000 (11:13 +0100)]
Makefile.am: Fix typo in 'ChangeLog' target.
Bert Vermeulen [Sun, 13 Jan 2013 23:59:46 +0000 (00:59 +0100)]
cosmetics
Bert Vermeulen [Sun, 13 Jan 2013 23:52:55 +0000 (00:52 +0100)]
add --disable-all-drivers option
Can be overridden by driver --enable options to build only those drivers.
Bert Vermeulen [Sun, 13 Jan 2013 21:42:21 +0000 (22:42 +0100)]
rigol-ds1xx2: More selective Rigol DS1xx2 scan
Patch submitted by Martin Ling.
Bert Vermeulen [Sun, 13 Jan 2013 17:07:05 +0000 (18:07 +0100)]
cleanup of obsolete definition
Bert Vermeulen [Tue, 8 Jan 2013 01:51:03 +0000 (02:51 +0100)]
sr_session_save(): don't use datastore
Bert Vermeulen [Mon, 7 Jan 2013 01:10:33 +0000 (02:10 +0100)]
remove datastore functionality
Keeping a copy of acquired data is up to the frontend, not libsigrok.
Bert Vermeulen [Mon, 7 Jan 2013 00:52:02 +0000 (01:52 +0100)]
use a dynamically expanding probe list
Alexandru Gagniuc [Sun, 6 Jan 2013 15:31:30 +0000 (09:31 -0600)]
fx2lafw: Say if chip is old FX2 or FX2LP
Look at the extracted REVID, and print out if it is an FX2 (non-LP), or FX2LP.
Signed-off-by: Alexandru Gagniuc <redacted>
Uwe Hermann [Tue, 8 Jan 2013 02:12:01 +0000 (03:12 +0100)]
link-mso19: Use more portable g_htons().
Not all systems provide <arpa/inet.h> and/or htons(). Use portable and
always available g_htons() from glib instead.
Uwe Hermann [Tue, 8 Jan 2013 02:02:53 +0000 (03:02 +0100)]
link-mso19: Fix a bunch of compiler warnings.
Uwe Hermann [Tue, 8 Jan 2013 01:48:49 +0000 (02:48 +0100)]
link-mso19: Fix white-space, cosmetics, coding-style.
Fix the bare minumum of whitespace/indentation/coding-style via
automatic 'indent' run, followed by some minor manual fixes.
Some more fixes and cleanups might follow later.
Uwe Hermann [Tue, 8 Jan 2013 01:30:40 +0000 (02:30 +0100)]
link-mso19: Fix (C) lines.
Bring back the original (C) lines from before the split into api.c
and protocol.[ch].
Add "Copyright (C) 2013 Lior Elazary <redacted>" since there
were nontrivial changes to those files.
Uwe Hermann [Tue, 8 Jan 2013 00:27:11 +0000 (01:27 +0100)]
configure.ac: Enable Link Instruments MSO-19.
This driver now compiles again and (partially) seems to work, so enable it.
lelazary [Mon, 7 Jan 2013 15:49:31 +0000 (07:49 -0800)]
Added limit samples Eveything seems to work find up to 1024 samples
lelazary [Sun, 6 Jan 2013 17:46:01 +0000 (09:46 -0800)]
Rewrote the trigger config. Added trigger position and trigger slope
lelazary [Sun, 6 Jan 2013 02:12:45 +0000 (18:12 -0800)]
Eveything seems to work now except for triggers.
lelazary [Sat, 5 Jan 2013 17:29:00 +0000 (09:29 -0800)]
More cleanup. Communication with mso19 is working, but its not triggering. Need to check why.