diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-10 22:16:01 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-11 14:52:55 +0200 |
commit | faf97b312603efabfa27e97bb35cf1a5ec5fbf9c (patch) | |
tree | 6086b2f503f0057e31db8243b813a46b9a5f27f2 /decoder/test/ltc242x | |
parent | 215d8d122227839dc37034ee2f613b0e6792b29d (diff) | |
download | sigrok-test-faf97b312603efabfa27e97bb35cf1a5ec5fbf9c.tar.gz sigrok-test-faf97b312603efabfa27e97bb35cf1a5ec5fbf9c.zip |
ltc242x: Add a test-case.
Diffstat (limited to 'decoder/test/ltc242x')
-rw-r--r-- | decoder/test/ltc242x/ltc2422_read_adc.output | 14 | ||||
-rw-r--r-- | decoder/test/ltc242x/test.conf | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/decoder/test/ltc242x/ltc2422_read_adc.output b/decoder/test/ltc242x/ltc2422_read_adc.output new file mode 100644 index 0000000..cc88e3e --- /dev/null +++ b/decoder/test/ltc242x/ltc2422_read_adc.output @@ -0,0 +1,14 @@ +700423-702575 ltc242x: ch0_voltage: "0.307565V" "0.31V" +1477995-1480000 ltc242x: ch1_voltage: "0.964932V" "0.96V" +2132990-2135148 ltc242x: ch0_voltage: "0.307552V" "0.31V" +2835539-2837713 ltc242x: ch1_voltage: "0.964928V" "0.96V" +3523492-3525661 ltc242x: ch0_voltage: "0.307556V" "0.31V" +4176378-4178543 ltc242x: ch1_voltage: "0.964944V" "0.96V" +4871597-4873763 ltc242x: ch0_voltage: "0.307557V" "0.31V" +5580997-5583164 ltc242x: ch1_voltage: "0.964931V" "0.96V" +6245059-6247231 ltc242x: ch0_voltage: "0.307560V" "0.31V" +6932457-6934610 ltc242x: ch1_voltage: "0.964938V" "0.96V" +7613756-7615932 ltc242x: ch0_voltage: "0.307556V" "0.31V" +8271695-8273852 ltc242x: ch1_voltage: "0.964928V" "0.96V" +8920930-8923099 ltc242x: ch0_voltage: "0.307563V" "0.31V" +9602780-9604943 ltc242x: ch1_voltage: "0.964934V" "0.96V" diff --git a/decoder/test/ltc242x/test.conf b/decoder/test/ltc242x/test.conf new file mode 100644 index 0000000..e126680 --- /dev/null +++ b/decoder/test/ltc242x/test.conf @@ -0,0 +1,6 @@ +test ltc2422_read_adc + protocol-decoder spi channel clk=0 channel miso=1 channel cs=2 + protocol-decoder ltc242x + stack spi ltc242x + input spi/ltc2422/ltc2422_read_adc.sr + output ltc242x annotation match ltc2422_read_adc.output |