]> sigrok.org Git - libsigrok.git/commit
asix-sigma: track whether triggers were specified when acquisition started
authorGerhard Sittig <redacted>
Sun, 17 May 2020 14:15:54 +0000 (16:15 +0200)
committerGerhard Sittig <redacted>
Sun, 31 May 2020 21:41:40 +0000 (23:41 +0200)
commitfb65ca09b79aa93e34f5d71b2611046c2414694c
tree90e2dda10555c7fc3637bfd03364fab44e393bd9
parent8a57728d0e390e8859a2e8bf1e90b2c84f260be7
asix-sigma: track whether triggers were specified when acquisition started

There are several separate conditions which the driver needs to tell
apart. There is a compile time switch whether trigger support shall be
built in. There is the condition whether acquisition start involved a
user provided trigger spec. And there is the hardware flag whether a
previously configured trigger condition matched and where its position
is.

Only accept user provided trigger specs when trigger support is builtin.
(The get/set/list availability and spec passing is done in applications
outside of the library, we better check just to make sure.) Only setup
the trigger related hardware parameters when a spec was provided. Only
check for trigger positions when the hardware detected a match.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c