libsigrok/src
Gerhard Sittig 5208214739 input/saleae: improve L2D undersampling, do provide sample data
The Saleae Logic exported files (Logic2 digital format) don't contain a
samplerate, so users need to specify the value. For values smaller than
the samplerate that was used during the capture undersampling will take
place. An implementation detail of the input module could result in
incorrect timing of sample values in the session feed. In extreme cases
none of the periods between signal edges qualified for submission. In
that case no sample data was sent to the sigrok session at all.

  $ sigrok-cli -i digital_1.bin -I saleae:samplerate=1000

Keep the very timestamp at hand when the last sample data was submitted.
Only advance that timestamp when more sample data was sent. This avoids
the accumulation of timing errors for undersampling scenarios, and does
forward undersampled input data when the user provided sample period has
passed.

This fixes bug #1600.
2020-09-02 19:52:44 +02:00
..
bt bt: drop bt_put_le16() dependency (not universally available) 2020-07-26 10:47:59 +02:00
dmm Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
hardware korad-kaxxxxp: remove obsolete code (clear before read, timeout literal) 2020-09-01 17:15:54 +02:00
input input/saleae: improve L2D undersampling, do provide sample data 2020-09-02 19:52:44 +02:00
lcr lcr/vc4080: introduce LCR packet parser for Voltcraft 4080 (and PeakTech 2165) 2019-07-31 22:40:44 +02:00
modbus serial: flush() after open() in the serial core. 2020-07-26 16:06:42 +02:00
output output/csv: always generate text for analog/logic data packets 2020-08-22 19:04:31 +02:00
scale license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
scpi scpi_serial: add "GWInstek VCP" (PID 0x0030) as seen in GDM-834x 2020-08-25 19:38:23 +02:00
transform Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
analog.c libsigrok.h: Add Joule, Coulomb, and Ah units. 2020-08-22 21:53:56 +02:00
backend.c build: prepare serial over Bluetooth, search for optional BlueZ lib 2019-06-02 20:39:02 +02:00
binary_helpers.c binary_helpers: Drop unnecessary malloc check. 2020-06-05 00:25:26 +02:00
conversion.c Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01:00
crc.c src/crc.c: Add missing file. 2020-06-05 00:25:26 +02:00
device.c Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01:00
driver_list_start.c drivers: Remove dependency on linker implementation specific behaviour 2017-09-02 17:06:37 +02:00
driver_list_stop.c drivers: Remove dependency on linker implementation specific behaviour 2017-09-02 17:06:37 +02:00
drivers.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
error.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c serial: introduce more general "have serial comm" feature flag 2019-06-02 20:39:02 +02:00
hwdriver.c libsigrok.h: Add MQ for electric charge. 2020-08-22 21:53:56 +02:00
libsigrok-internal.h sw_limits: add const for limits param for config_get 2020-08-03 17:53:11 +02:00
log.c Add a new sr_log_callback_get() API call. 2018-08-30 19:11:30 +02:00
resource.c Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01:00
scpi.h Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial.c serial: make failed flush() in open() non-fatal, CP2110 flush() return 2020-08-01 14:55:20 +02:00
serial_bt.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_hid.c serial_hid: add iokit= prefix for the Mac IOKit special case 2020-08-09 16:09:04 +02:00
serial_hid.h serial_hid: add iokit= prefix for the Mac IOKit special case 2020-08-09 16:09:04 +02:00
serial_hid_bu86x.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_hid_ch9325.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_hid_cp2110.c serial: make failed flush() in open() non-fatal, CP2110 flush() return 2020-08-01 14:55:20 +02:00
serial_hid_victor.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_libsp.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
session.c Fix compiler warnings related to -Wcast-function-type. 2020-05-02 17:01:39 +02:00
session_driver.c Fix various gcc 8 compiler warnings related to ARRAY_SIZE. 2018-10-06 19:13:39 +02:00
session_file.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
soft-trigger.c Use std_session_send_df_trigger() where possible. 2020-04-08 23:21:39 +02:00
std.c std: avoid doube close 2020-06-24 23:20:41 +02:00
strutil.c strutil: introduce sr_atol_base() conversion helper (non-decimal) 2020-05-29 06:12:50 +02:00
sw_limits.c sw_limits: add const for limits param for config_get 2020-08-03 17:53:11 +02:00
trigger.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
usb.c Fix compiler warnings related to -Wcast-function-type. 2020-05-02 17:01:39 +02:00
version.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00