]> sigrok.org Git - libsigrok.git/commit - src/hardware/asix-sigma/protocol.c
asix-sigma: re-enable software check for exact trigger position
authorGerhard Sittig <redacted>
Wed, 27 May 2020 05:02:12 +0000 (07:02 +0200)
committerGerhard Sittig <redacted>
Sun, 31 May 2020 21:49:35 +0000 (23:49 +0200)
commit8a72362505408849fb0d04d7df22a3c54a1aee73
tree03d247154b90fd2226f85ccdcf74a65702a83eef
parent66d1790cc0731d61f97dd11dad3ab7e2d7e799e3
asix-sigma: re-enable software check for exact trigger position

The hardware provided trigger match location is inaccurate. Do check
sample values against the initial trigger condition spec for a short
range of the retrieved sample data, to refine the trigger marker's
position which is sent to the session feed.

Temporarily ignore the optional sample count limit for trigger-using
acquisitions, to reduce the diff size and simplify review. Since the
hardware transparently compresses sample data, we cannot reliably
determine where to start the download and interpretation of sample data,
and the submission to the session feed. Starting early in the sample
memory content, and sticking with the strict sample count limit, could
clip submission before the actual trigger position.

This implementation provides _at least_ the requested amount of data,
and does cover the spot of interest (the trigger position). This, and
the trigger support's having become operational again, is considered an
important improvement. The inaccuracy is considered acceptable for now.
Trigger-less acquisition does enforce the exact sample count limit.
src/hardware/asix-sigma/protocol.c