]> sigrok.org Git - libsigrok.git/commit
asix-sigma: rephrase firmware dependent param upload at acquisition start
authorGerhard Sittig <redacted>
Sat, 16 May 2020 08:23:15 +0000 (10:23 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 06:06:18 +0000 (08:06 +0200)
commit419f10950500d37489db3e3842670ac49e3607e7
treee952b10ee003b87cbade86d3f64d49f216801d6e
parentabcd47719689178ebb5e9050eb128312b17d82fa
asix-sigma: rephrase firmware dependent param upload at acquisition start

The 100/200MHz supporting FPGA netlists differ in their register set
from 50MHz netlists. Adjust the parameter download at acquisition start.

Raise awareness of the "TriggerSelect" and "TriggerSelect2" difference
(the former only exists in 50MHz netlists, the latter's meaning differs
between firmware variants). "ClockSelect" semantics also differs between
netlists. Stop sending four bytes to a register that is just one byte
deep, channel selection happened to work by mere coincidence.

Eliminate a few more magic numbers, unobfuscate respective code paths.
Though some questions remain (trigger related, not a blocker for now,
needs to get addressed later).
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h