]> sigrok.org Git - libsigrok.git/commit
asix-sigma: prepare FTDI open/close for "optional open"
authorGerhard Sittig <redacted>
Fri, 15 May 2020 11:29:20 +0000 (13:29 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 06:06:18 +0000 (08:06 +0200)
commit7fe1f91f7550d63ea4a09c0f0e1ce5b88c59c6fb
tree341328e9ea12ab7ee5fb154ad168ba502eaa8662
parent88a5f9eabe72113d70c29d45dc12eabc0add9c49
asix-sigma: prepare FTDI open/close for "optional open"

Move all of the FTDI connection handling from api.c to protocol.c, and
prepare "forced" and "optional" open/close. This allows future driver
code to gracefully handle situations where FPGA registers need to get
accessed, while the caller may be inside or outside the "opened" period
of the session. This is motivated by automatic netlist type and sample
rate detection, to avoid the cost of repeated firmware uploads.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h