]> sigrok.org Git - sigrok-test.git/commitdiff
ltc242x: Add a test-case.
authorUwe Hermann <redacted>
Fri, 10 Apr 2020 20:16:01 +0000 (22:16 +0200)
committerUwe Hermann <redacted>
Sat, 11 Apr 2020 12:52:55 +0000 (14:52 +0200)
decoder/test/ltc242x/ltc2422_read_adc.output [new file with mode: 0644]
decoder/test/ltc242x/test.conf [new file with mode: 0644]

diff --git a/decoder/test/ltc242x/ltc2422_read_adc.output b/decoder/test/ltc242x/ltc2422_read_adc.output
new file mode 100644 (file)
index 0000000..cc88e3e
--- /dev/null
@@ -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 (file)
index 0000000..e126680
--- /dev/null
@@ -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