]> sigrok.org Git - libsigrok.git/commit - src/hardware/asix-sigma/protocol.c
asix-sigma: rephrase submission of logic data to session feed
authorGerhard Sittig <redacted>
Sun, 10 May 2020 07:14:41 +0000 (09:14 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 05:50:18 +0000 (07:50 +0200)
commit98b43eb3cdb3dcef3511f2588163fd82c7f56143
treea7848bd63b56c093543cd5303e83d2e900927c19
parent2c33b092553c4116151aeb59f129f2f0a598741e
asix-sigma: rephrase submission of logic data to session feed

Introduce a 4MiB session feed submission buffer in the device context.
This reduces the number of API calls and improves performance of srzip
archive creation.

This change also eliminates complex logic which manipulates a previously
created buffer's length and data position, to split the queued data when
a trigger position was involed. The changed implementation results in a
data flow from sample memory to the session feed which feels more natural
during review, and better lends itself to future trigger support code.

Use common SW limits support for the optional sample count limit. Move
'sdi' and 'devc' parameters to the front to match conventions. Reduce
indentation in routine signatures while we are here.

This implementation is prepared to handle trigger positions, but for now
disables the specific logic which checks for trigger condition matches
to improve the trigger marker's resolution. This will get re-enabled in
a later commit.
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h