]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: download sample memory in multiple receive calls
authorGerhard Sittig <redacted>
Sun, 31 May 2020 16:38:39 +0000 (18:38 +0200)
committerGerhard Sittig <redacted>
Sun, 31 May 2020 21:52:24 +0000 (23:52 +0200)
The previous implementation ran the complete sample memory retrieval
in a single call to the receive callback. Which in combination with
slow USB communication and deep memory could block application logic
for rather long periods of time.

Rephrase the download_capture() routine such that it can spread its
workload across multiple invocations. Run the acquisition stop and
resource allocation for the download, the interpretation of a set of
DRAM lines, and the resource cleanup, as needed. And keep calling the
download routine until completion of the interpretation of the sample
memory region of interest. The workload size per invocation may need
more adjustment.

The previous implementation could stall UI progress for some 20-30s.
This change lets users perceive UI progress while sample memory gets
retrieved and interpreted.

This resolves bug #1005.


No differences found