]> sigrok.org Git - libsigrok.git/commit
dslogic: Add support for voltage threshold
authorDiego Asanza <redacted>
Wed, 4 May 2016 17:28:37 +0000 (19:28 +0200)
committerUwe Hermann <redacted>
Mon, 16 May 2016 16:18:58 +0000 (18:18 +0200)
commit3fc3fbe46e472a1466085bb2498d8d9b469d63f8
tree71490c3f13fe5041e8620e551f3b267049eedaf2
parent4237fbcaac84160a04333244ba0a309b952d3a8f
dslogic: Add support for voltage threshold

The DSLogic provides two FPGA images: one for 3.3V and the other for 5V logic.
The DSLogic Pro allows to set an arbitrary voltage threshold via USB command.

This commit adds support for the DSLogic to load the FPGA image according to
an user-selectable voltage threshold.

For the DSLogic Pro, one of two fixed voltage thresholds are set, depending on
the user-selected value.

Tested with DSLogic and DSLogic Pro.

Signed-off-by: Diego Asanza <redacted>
Tested-by: Andrew Bradford <redacted>
src/hardware/fx2lafw/api.c
src/hardware/fx2lafw/dslogic.c
src/hardware/fx2lafw/dslogic.h
src/hardware/fx2lafw/protocol.h