Gerhard Sittig
b078dddb84
output/csv: reduce indentation in process_analog()
...
Instead of nesting indentation levels upon equality of a value, skip
iterations upon inequality. This reduces indentation, and might improve
readability.
[ Indentation changes, see 'diff -w -b' for the essence. ]
2018-03-12 15:55:22 +01:00
Frank Stettner
94cf02d0c2
hp-3478a: Remove unnecessary curly brackets.
2018-03-06 19:02:33 +01:00
Frank Stettner
a575c90e81
hp-3478a: Set correct number of digits
2018-03-06 17:40:13 +01:00
Frank Stettner
acc587ff24
hp-3478a: spec_digits must be parsed before range parsing.
2018-03-06 17:40:13 +01:00
Frank Stettner
c3f8e1abf0
arachnid-labs-re-load-pro: Replace C++-style comments with C-style comments.
2018-03-06 17:39:37 +01:00
Frank Stettner
cd97e39d89
metex14: Fix wrong measurement modes
2018-03-05 20:23:35 +01:00
Frank Stettner
fd8dc1db01
metex14: Add power factor measurement mode
2018-03-05 20:23:26 +01:00
Uwe Hermann
187c300b59
libsigrok.h: Fix SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD order.
...
This has to be the last entry in its "category", otherwise it'll mean an
ABI breakage.
2018-03-03 19:25:57 +01:00
Uwe Hermann
0aaaee2dd3
arachnid-labs-re-load-pro: Simplify a code chunk.
2018-03-03 19:25:05 +01:00
Frank Stettner
d7e348f481
arachnid-labs-re-load-pro: Add encoding.digits to analog packet
2018-03-03 19:25:05 +01:00
Frank Stettner
2153093941
arachnid-labs-re-load-pro: Index for channel "I"
2018-03-03 19:25:05 +01:00
Frank Stettner
b3e715e528
arachnid-labs-re-load-pro: Get a response when in acquision mode.
2018-03-03 19:25:02 +01:00
Frank Stettner
706350360a
arachnid-labs-re-load-pro: Make SR_CONF_REGULATION listable
2018-03-03 19:22:59 +01:00
Frank Stettner
3d70d77709
arachnid-labs-re-load-pro: Add SR_CONF_UNDER_VOLTAGE_THRESHOLD.
2018-03-03 19:10:51 +01:00
Frank Stettner
9edda1d25b
arachnid-labs-re-load-pro: Setting correct current limit.
...
Use round() instead of just truncate the value.
2018-03-03 19:10:51 +01:00
Frank Stettner
a217289951
arachnid-labs-re-load-pro: Change serial read in acquisition mode.
...
Use serial_readline in acquisition mode, otherwise data from the
Re:load Pro could get lost.
Use reloadpro_receive_data() for all commands when in acquisition
mode. When not using a single point of receiving data, data could get
lost.
2018-03-03 19:10:51 +01:00
Gerhard Sittig
4389a54204
pipistrello-ols: style nit, replace DIY endianess conversion
2018-03-03 18:58:59 +01:00
Gerhard Sittig
411b2f6822
link-mso19: improve endianess conversion, avoid mem access alignment issue
...
Prefer sigrok's endianess conversion helper over the inet htons()
routine which is harder to read (is "network order" little or big?).
Writing the conversion results in units of bytes also avoids misaligned
memory access. The header length is odd, each payload item got written
as an uint16_t item to an odd address.
2018-03-03 18:58:59 +01:00
Gerhard Sittig
f7711ed56c
uni-t-dmm: style nits, copy loop vs memmove
2018-03-03 18:58:59 +01:00
Gerhard Sittig
69229e5c15
saleae-logic-pro: style nits, copy loop vs memcpy
2018-03-03 18:58:59 +01:00
Gerhard Sittig
093b8ff478
pce-322a: style nits, copy loop vs memmove
2018-03-03 18:58:59 +01:00
Gerhard Sittig
c372070333
mic-985xx: style nits, var decl vs assignment, copy loop vs memmove
2018-03-03 18:58:59 +01:00
Gerhard Sittig
7a65106e00
kern-scale: style nits, var decl vs assignment, copy loop vs memmove
2018-03-03 18:58:59 +01:00
Gerhard Sittig
0f6ff97bf8
center-3xx: style nits, var decl vs assignment, copy loop vs memmove
2018-03-03 18:58:59 +01:00
Uwe Hermann
bdbb9151af
siglent-sds: Drop superfluous log message.
...
This information is already emitted by other layers.
2018-03-03 18:45:58 +01:00
marchelh
fdf0744fa4
siglent-sds: Added trigger position to device config code
2018-03-03 17:46:15 +01:00
marchelh
e8fd027120
siglent-sds: Fixed issue with hard coded vdiv.
2018-03-03 17:46:15 +01:00
marchelh
fe06061d96
siglent-sds: Drop unused variable from siglent_sds_read_header function
2018-03-03 17:45:21 +01:00
marchelh
fe1aa53613
siglent-sds: Added averaging function.
2018-03-03 17:45:21 +01:00
marchelh
80eba3857a
siglent-sds: Fixed timebase problem where NS could not be selected
...
This fixes bug #1120 .
2018-03-03 17:28:49 +01:00
Frank Stettner
d8df3c2a01
tests: Fix incomplete fail message for locale tests.
2018-02-21 11:37:19 +01:00
Frank Stettner
93497d0016
hp-3478a: Fix compiler warning.
2018-02-21 11:37:19 +01:00
Romain Tartière
6c1a76d126
Check usb_get_port_path() return value
...
This function can fail. If so, do not ignore the failure.
2018-02-21 11:37:19 +01:00
Romain Tartière
7bbe5a2b6a
Ensure device is closed before usb_get_port_path()
...
The usb_get_port_path() function opens the passed device on FreeBSD,
which fails if the device has already been open.
This fixes bug #1109 .
2018-02-21 11:36:58 +01:00
Gerhard Sittig
90cc52260c
bindings/ruby: include config.h before any other header file
2018-02-21 11:19:17 +01:00
Gerhard Sittig
21964348bc
bindings/python: include config.h before any other header file
2018-02-21 11:19:17 +01:00
Gerhard Sittig
1e95832b3e
bindings/cxx: include config.h as early as possible
...
Move the inclusion of <config.h> before any other source code.
2018-02-21 11:19:17 +01:00
Gerhard Sittig
dea7f6342a
pce-322a: include config.h before any other header file
2018-02-21 11:19:17 +01:00
Uwe Hermann
5a64d1d954
beaglelogic: Use UINT64_MAX instead of (uint64_t)-1.
2018-02-20 20:03:21 +01:00
Uwe Hermann
71e22ba88f
beaglelogic: Drop unneeded uint64_t cast.
2018-02-20 20:03:21 +01:00
Uwe Hermann
3f4c1174b6
lecroy-xstream: Fix potential issue by adding UINT64_C.
2018-02-20 20:03:21 +01:00
Uwe Hermann
d9b716fc5f
Use UINT64_C instead of "ULL" number suffix.
...
Avoid hardcoding a "ULL" number suffix, use the more portable and more
correct UINT64_C.
2018-02-20 20:03:21 +01:00
Uwe Hermann
405b9c10eb
Random whitespace/cosmetic fixes.
2018-02-20 20:03:11 +01:00
Uwe Hermann
1135f8d9c7
siglent-sds: Fix two memory leaks.
2018-02-18 23:36:17 +01:00
Uwe Hermann
d6d87fa2a2
siglent-sds: Drop incorrect glib includes.
2018-02-18 23:29:14 +01:00
Uwe Hermann
04c4a6776f
hp-3478a: Shorten some functions.
2018-02-18 23:18:22 +01:00
Uwe Hermann
6ddedf5bac
hp-3478a: Drop superfluous log message prefixes.
2018-02-18 23:13:34 +01:00
Frank Stettner
d2c1730a28
hp-3478a: Initial HP 3478A diver
2018-02-18 23:13:34 +01:00
Frank Stettner
1d9eebf4be
hp-3478a: Initial driver skeleton.
2018-02-18 22:59:31 +01:00
Uwe Hermann
374b0a94b2
output/analog: Fix a compiler warning on Mac OS X.
...
Apparently PRIu64 and G_GUINT64_FORMAT differ on some systems for
unknown reasons. Use G_GUINT64_FORMAT to get rid of the warning
for now.
2018-02-18 21:36:18 +01:00