libsigrok/src
Gerhard Sittig 5e78a56481 asix-sigma: rework time/count limits support, accept more samplerates
Use common support for SW limits, and untangle the formerly convoluted
logic for sample count or time limits. Accept user provided samplerate
values when the hardware supports them, also those which are not listed.

The previous implementation mapped sample count limits to timeout specs
which depend on the samplerate. The order of applications' calls into
the config set routines is unspecified, the use of one common storage
space led to an arbitrary resulting value for the msecs limit, and loss
of user specified values for read-back.

Separate the input which was specified by applications, from limits
which were derived from this input and determine the acquisition phase's
duration, from sample count limits which apply to sample data download
and session feed submission after the acquisition finished. This allows
to configure the values in any order, to read back previously configured
values, and to run arbitrary numbers of acquisition and download cycles
without losing input specs.

This commit also concentrates all the limits related computation in a
single location at the start of the acquisition. Moves the submission
buffer's count limit container to the device context where the other
limits are kept as well. Renames the samplerate variable, and drops an
aggressive check for supported rates (now uses hardware constraints as
the only condition). Removes an unused variable in the device context.
2020-05-29 07:50:18 +02:00
..
bt bt/bt_bluez: Implement retry if rfcomm sockets are busy 2020-04-11 16:00:52 +02:00
dmm Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
hardware asix-sigma: rework time/count limits support, accept more samplerates 2020-05-29 07:50:18 +02:00
input Use std_session_send_df_trigger() where possible. 2020-04-08 23:21:39 +02:00
lcr lcr/vc4080: introduce LCR packet parser for Voltcraft 4080 (and PeakTech 2165) 2019-07-31 22:40:44 +02:00
modbus modbus: Close device after scan 2020-04-11 15:55:35 +02:00
output Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
scale license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
scpi Fix compiler warnings related to -Wcast-function-type. 2020-05-02 17:01:39 +02:00
transform Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
analog.c Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01:00
backend.c build: prepare serial over Bluetooth, search for optional BlueZ lib 2019-06-02 20:39:02 +02:00
conversion.c Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01: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 Add config key SR_CONF_DIGITS. 2019-12-20 13:02:06 +01:00
libsigrok-internal.h strutil: introduce sr_atol_base() conversion helper (non-decimal) 2020-05-29 06:12:50 +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 Doxygen: Fix various warnings. 2020-03-25 20:27:57 +01:00
serial_bt.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_hid.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01:00
serial_hid.h src/serial_hid.h: Include guard consistency fix. 2019-12-24 16:38:56 +01: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 Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01: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: Rename std_session_send_frame_begin/_end(). 2020-04-08 23:35:44 +02:00
strutil.c strutil: introduce sr_atol_base() conversion helper (non-decimal) 2020-05-29 06:12:50 +02:00
sw_limits.c Doxygen: Properly mark a few symbols as private. 2020-03-25 20:10:24 +01: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