Uwe Hermann
1fb31414f2
input/trace32_ad: Drop unused #define.
2018-04-19 17:37:15 +02:00
Uwe Hermann
2cff7a2ba7
input/wav: Put internal buffer on the heap instead of the stack.
...
Increasing the buffer/chunk size could cause issues when trying to put
large arrays on the stack.
2018-04-19 17:37:15 +02:00
Uwe Hermann
a33e4be826
input/binary: Increase chunk size from 4KB to 4MB.
...
This can slightly increase performance when loading larger files.
2018-04-14 22:23:02 +02:00
Uwe Hermann
408b6ab42b
input/binary: Only calculate unitsize once.
2018-04-14 19:46:43 +02:00
Uwe Hermann
867293a101
input modules: Improve option names and descriptions.
...
These should be slightly more useful and contain more information
(should also work reasonably well for 'sigrok-cli --show' and as
tooltips in UIs).
2018-04-14 18:47:49 +02:00
Uwe Hermann
d4b3f44fa7
zketech-ebd-usb: Drop unneeded log message.
...
The number of bytes sent is already logged by the libsigrok serial code.
2018-04-08 20:56:34 +02:00
Uwe Hermann
b4bf6b3b4f
configure.ac: zketech-ebd-usb driver needs libserialport.
2018-04-08 19:59:25 +02:00
Uwe Hermann
330a32b240
zketech-ebd-usb: Shorten function name prefix for better readability.
2018-04-08 19:59:25 +02:00
Uwe Hermann
cb8a0efc5c
zketech-ebd-usb: Make a few functions static.
2018-04-08 19:59:25 +02:00
Uwe Hermann
ec4806dcf5
zketech-ebd-usb: Add some underscores to #defines.
2018-04-08 19:59:25 +02:00
Sven Bursch-Osewold
9890fb1f08
zketech-ebd-usb: First version of the driver.
2018-04-08 19:59:25 +02:00
Sven Bursch-Osewold
c527132aec
zketech-ebd-usb: Initial driver skeleton.
2018-04-08 19:59:25 +02:00
Uwe Hermann
23d68466f8
usbtmc: Silence some overly verbose log messages.
...
These trigger quite often with unrelated devices and confuse people.
scpi_usbtmc: Failed to get configuration descriptor: LIBUSB_ERROR_NOT_FOUND, ignoring device.
2018-04-08 19:49:41 +02:00
Uwe Hermann
66d2cc3a27
rdtech-dps: User ternary operator.
2018-03-29 15:45:52 +02:00
James Churchill
69b0558395
rdtech-dps: New driver for RDTech DPS/DPH series PSUs.
2018-03-29 15:41:30 +02:00
James Churchill
0549416e36
rdtech-dps: Initial driver skeleton.
2018-03-26 15:41:01 +10:00
James Churchill
7b50a9b869
modbus: Return explicit SR_ERR values as required by modbus.c
...
The Modbus RTU implementation was inappropriately returning lengths
from the serial functions when the calling functions expect only an
sr_error_code value.
2018-03-26 15:41:01 +10:00
James Churchill
d4e0701771
modbus: Increase modbus reply timeout to 500ms.
...
Needed by rdtech-dps driver, 100ms is too short.
2018-03-26 15:41:01 +10:00
Soeren Apel
366ccb8ab7
resource.c: Fix firmware loading bug ( #1140 )
2018-03-20 16:13:46 +01:00
Uwe Hermann
410883baf6
backend: Emit firmware search paths in a log message.
2018-03-18 18:26:57 +01:00
Soeren Apel
addb7340dd
Introduce sr_resourcepaths_get()
...
This provides an interface to fix #1128 .
2018-03-18 18:25:36 +01:00
Axel Hinrichs
e843992dda
korad-kaxxxxp: Korad OEM: RND KA3005P
2018-03-12 16:34:43 +01:00
Gerhard Sittig
823b0e29ae
output/csv: fix out-of-bounds array access in process_analog()
...
Make sure to not exceed the ctx->analog_samples[] array bounds. Don't
use the (huge) channel's index in the device's(!) channel list, instead
use the zero-based and dense index into the array of analog samples in
the accumulation buffer, before writing to the external file.
This fixes the segfault reported in bug #1124 .
2018-03-12 15:55:22 +01:00
Gerhard Sittig
a551cb0927
output/csv: use longer names for iteration variables
...
The process_analog() logic is rather complex, dealing with the total
list of channels in the device (which can be of different types), and a
number of submitted samples for a specified list of channels. Replace
the rather short variable names for i, j, c (and num_channels) with
something longer that hopefully increases readability of the complex
loop bodies.
Note that this change merely renames identifiers, and does not change
behaviour.
2018-03-12 15:55:22 +01:00
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