From: Uwe Hermann Date: Fri, 10 Apr 2020 20:16:01 +0000 (+0200) Subject: ltc242x: Add a test-case. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=faf97b312603efabfa27e97bb35cf1a5ec5fbf9c;p=sigrok-test.git ltc242x: Add a test-case. --- 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