Uwe Hermann
bc98407b8f
dreamsourcelab-dslogic: config_list: Handle SR_CONF_TRIGGER_MATCH.
...
This fixes bug #1032 .
2017-09-13 13:05:42 +02:00
Uwe Hermann
7bf81cb7a9
chronovu-la: Silence overly verbose log message.
...
This triggered all kinds of unrelated / confusing log messages
for unrelated hardware devices, e.g.:
sr: [00:00.613080] chronovu-la: Unknown iProduct string 'USB-based Instrument'.
sr: [00:00.614374] chronovu-la: Unknown iProduct string 'GL3220 '.
sr: [00:00.614907] chronovu-la: Unknown iProduct string 'USB 3.0 HUB '.
sr: [00:00.615558] chronovu-la: Unknown iProduct string 'USB 2.0 HUB '.
sr: [00:00.619846] chronovu-la: Unknown iProduct string 'Bluetooth USB Host Controller'.
sr: [00:00.620411] chronovu-la: Unknown iProduct string 'USB 3.0 HUB '.
sr: [00:00.624293] chronovu-la: Unknown iProduct string 'UAC1 DAC'.
sr: [00:00.627849] chronovu-la: Unknown iProduct string 'BRCM20702 Hub'.
sr: [00:00.628640] chronovu-la: Unknown iProduct string 'USB 2.0 HUB '.
sr: [00:00.674777] chronovu-la: Unknown iProduct string 'USB2223'.
sr: [00:00.675034] chronovu-la: Unknown iProduct string ''.
sr: [00:00.675180] chronovu-la: Unknown iProduct string ''.
sr: [00:00.675205] hwdriver: Scan found 0 devices (chronovu-la).
2017-09-12 22:15:32 +02:00
Marcus Comstedt
393375e1fe
drivers: Remove dependency on linker implementation specific behaviour
2017-09-02 17:06:37 +02:00
Uwe Hermann
9014d45968
z60_libsigrok.rules: Add Brymen BU-86X adapter IDs.
2017-08-21 18:24:42 +02:00
turboaffe
9520fd4134
manson-hcs-3xxx: enabled output guaranteed write
2017-08-19 19:21:54 +02:00
turboaffe
6508294dca
manson-hcs-3xxx: added new name for 3304, adjustment to new manson fw
2017-08-19 19:21:54 +02:00
Gerhard Sittig
5753d2e84b
brymen-bm86x: support channel selection (enable/disable channels)
...
The previous implementation unconditionally submitted analog data
whenever values could get extracted out of received serial packets.
This commit checks the channels' enabled state before submission. Care
is taken to obey the user's acquisition limits, exclusively counting
submitted not received values.
2017-08-19 19:21:54 +02:00
Gerhard Sittig
503519b70a
lsr/es51919: support channel selection (enable/disable P1/P2)
...
Upon reception of serial data from the ES51919 LCR chipset, the data for
channels P1 and P2 was extracted from the packet, and unconditionally got
sent to the sigrok session.
Do check the channels' enabled state before submission. This fixes for
serial-lcr what recently got reported for a Brymen DMM. Tested with
$ sigrok-cli -d peaktech-2170:conn=/dev/ttyUSB0 --channels P2
and other --channels specifications.
2017-08-19 19:21:53 +02:00
Gerhard Sittig
12788e7e40
lcr/es51919: clean but don't free dev context in cleanup callback
...
The es51919_serial_clean() routine is called by std_dev_clear_with_callback().
Common code unconditionally frees the 'priv' part. The cleanup callback only
shall release descending resources which are local to the callee and opaque
to the caller.
This fixes a double free error. Tested with PeakTech 2170.
$ sigrok-cli -d peaktech-2170:conn=/dev/ttyUSB0 --show
2017-08-19 19:21:51 +02:00
Uwe Hermann
1503d4571b
resource: Also check $SIGROK_FIRMWARE_DIR for firmware files.
...
If the SIGROK_FIRMWARE_DIR environment variable is specified, look there
first for firmware files.
2017-08-15 22:15:47 +02:00
Gerhard Sittig
dde0175d19
asix-sigma: download sample data upon user initiated stop, too
...
When the acquisition was stopped before a configured limit was reached,
no sample data was retrieved. This is because the api.c stop routine did
unregister the receive callback.
Pass the stop request to the receive routine instead when stop is called
while the acquisition is still running. Have sample data downloaded very
much like it's done for reached limits, and existing logic will run the
stop routine again after state was advanced to "idle".
Extend the 'state' tracking while we are here, mark sample download as
well (that was omitted in the previous implementation). Though the
omission was non-fatal. Move the release of 'dram_line' to some earlier
location (as soon as the resource is not needed any longer), before some
rather complex calls to other routines will execute.
Reported-By: Michael Kaplan <M.KAPLAN@evva.com>
2017-08-11 18:52:23 +02:00
Uwe Hermann
379e95c587
drivers: Use serial_write_blocking() everywhere.
...
This fixes bug #962 .
2017-08-07 14:22:52 +02:00
Uwe Hermann
b5df922e4f
sr_voltage_string(): Add a space before the unit.
...
This makes the output consistent with most of the other functions
in libsigrok.
2017-08-06 19:45:45 +02:00
Uwe Hermann
c911599da7
Add sr_voltage_string() unit tests.
2017-08-06 19:38:31 +02:00
Uwe Hermann
d2391b5453
drivers: Use g_strdup_printf() where possible.
2017-08-06 19:38:31 +02:00
Uwe Hermann
8ebad34370
drivers: Random whitespace fixes.
2017-08-06 17:31:46 +02:00
Uwe Hermann
db85496ed1
drivers: Simplify some more trigger slope settings.
2017-08-06 17:31:46 +02:00
Uwe Hermann
3782e57129
drivers: Reduce unnecessarily high indentation in some places.
2017-08-06 17:31:46 +02:00
Uwe Hermann
612336970d
drivers: Consistently use the same method to check for !cg.
2017-08-06 17:31:46 +02:00
Uwe Hermann
fcd6a8bdf1
drivers: Factor out std_cg_idx().
2017-08-06 17:31:46 +02:00
Uwe Hermann
d1ac53ccd5
drivers: Start counting at 0 for some loops.
2017-08-06 17:31:46 +02:00
Uwe Hermann
b3fd09937c
drivers: Use NUM_CHANNELS in favor of hardcoded values.
2017-08-06 17:31:46 +02:00
Uwe Hermann
bd633efa32
drivers: Use std_*idx*() helpers in some more places.
2017-08-03 16:35:19 +02:00
Uwe Hermann
76f0fa5dfb
lecroy-xstream: Use array-based approach for timebases/vdivs.
...
This makes the driver more consistent with the rest of the code-base
and allows us to use the new array helpers in a few more places.
2017-08-03 16:35:19 +02:00
Uwe Hermann
692716f5d1
drivers: Use array-based approach in some places.
...
This allows us to use the new array helpers in a few more places.
2017-08-03 16:35:19 +02:00
Uwe Hermann
373e92a491
drivers: Consistently name SCPI helper functions 'probe_device'.
2017-07-31 16:23:32 +02:00
Uwe Hermann
21fe5dba36
drivers: Drop some unneeded voltage_/volt_ prefixes.
2017-07-31 16:23:32 +02:00
Uwe Hermann
e124cf9b7a
drivers: Drop some unneeded _names suffixes.
2017-07-31 16:23:32 +02:00
Uwe Hermann
efad7cccec
drivers: SR_CONF_CAPTURE_RATIO fixes.
...
Move the check for the capture ratio being 0..100 into the wrappers,
drop unneeded helper functions, fix incorrect variable types, minor
other consistency fixes.
2017-07-31 16:23:32 +02:00
Uwe Hermann
758906aa71
drivers: Remove some unneeded 'ret' variables.
2017-07-31 16:23:31 +02:00
Uwe Hermann
50ccb36f20
drivers: Random SR_CONF_LIMIT_* cleanups.
...
Drop unneeded variables and checks (performed by the wrappers already).
2017-07-31 16:23:31 +02:00
Uwe Hermann
697fb6ddfc
drivers: Factor out std_*_idx*().
2017-07-31 16:23:31 +02:00
Uwe Hermann
94e64a0b89
drivers: Replace struct voltage_threshold with an array.
...
This makes the code-base more consistent and will allow for wider usage
of upcoming array helper functions.
2017-07-31 16:23:31 +02:00
Uwe Hermann
87dc541027
drivers: Move SR_ERR_CHANNEL_GROUP log messages to wrappers.
2017-07-31 16:23:31 +02:00
Uwe Hermann
00ed77f27c
drivers/input: Remove some hardcoded values.
2017-07-31 16:23:31 +02:00
Uwe Hermann
95c1fe62f7
drivers: Use g_variant_new_printf() where possible.
2017-07-31 16:23:31 +02:00
Uwe Hermann
9fb9afb573
drivers: Factor out std_gvar_thresholds().
2017-07-31 16:23:31 +02:00
Uwe Hermann
43995cda36
drivers: Factor out std_gvar_tuple_double().
2017-07-31 16:23:31 +02:00
Uwe Hermann
a162eeb2e8
drivers: Factor out std_gvar_tuple_u64().
2017-07-31 16:23:31 +02:00
Uwe Hermann
dd7a72ea69
drivers: Consistently use same indentation for config_*() API calls.
2017-07-31 16:23:31 +02:00
Uwe Hermann
58ffcf9712
std_gvar_tuple_array(): Change to allow for more ARRAY_AND_SIZE usage.
...
Thanks to Marcus Comstedt <marcus@mc.pp.se> for the hint!
2017-07-21 19:04:34 +02:00
Uwe Hermann
8dacbcf68f
drivers: Consistently use the exact driver name as LOG_PREFIX.
2017-07-21 18:46:27 +02:00
Uwe Hermann
f272d7ddc0
drivers: Consistently make LOG_PREFIX the first item after #includes.
2017-07-21 18:46:27 +02:00
Uwe Hermann
b15ff1c92a
drivers: Eliminate some unnecessary vendor/model #defines.
...
Most drivers use the vendor/model strings directly already; make all
of them do that consistently.
2017-07-21 18:46:26 +02:00
Uwe Hermann
f8195cb2da
drivers: Shorten some unnecessarily long arrays.
2017-07-21 17:06:40 +02:00
Uwe Hermann
76d10d1324
drivers: Consistently use the name trigger_matches[] everywhere.
2017-07-21 17:06:40 +02:00
Uwe Hermann
9e411f4be8
rigol-ds: config_set: Move error printing to wrapper.
2017-07-21 17:06:40 +02:00
Uwe Hermann
0f8bee7162
rigol-ds: Update a code comment.
2017-07-21 17:06:40 +02:00
Uwe Hermann
396cdca0c3
rigol-ds: Drop two unneeded #defines.
2017-07-21 17:06:40 +02:00
Uwe Hermann
53012da658
drivers: Use ARRAY_AND_SIZE where possible.
2017-07-21 17:06:40 +02:00