]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/ltc26x7/test.conf
ltc26x7: Add some test-cases.
[sigrok-test.git] / decoder / test / ltc26x7 / test.conf
diff --git a/decoder/test/ltc26x7/test.conf b/decoder/test/ltc26x7/test.conf
new file mode 100644 (file)
index 0000000..27a0e48
--- /dev/null
@@ -0,0 +1,22 @@
+test ltc2607_write_dac
+       protocol-decoder i2c channel scl=0 channel sda=1
+       protocol-decoder ltc26x7
+       stack i2c ltc26x7
+       input i2c/ltc2607/ltc2607_write_dac.sr
+       output ltc26x7 annotation match ltc2607_write_dac.output
+
+# Pretend that this is an LTC2617 to test those code paths.
+test ltc2607_write_dac_test_ltc2617
+       protocol-decoder i2c channel scl=0 channel sda=1
+       protocol-decoder ltc26x7 option chip=ltc2617
+       stack i2c ltc26x7
+       input i2c/ltc2607/ltc2607_write_dac.sr
+       output ltc26x7 annotation match ltc2607_write_dac_test_ltc2617.output
+
+# Pretend that this is an LTC2627 to test those code paths.
+test ltc2607_write_dac_test_ltc2627
+       protocol-decoder i2c channel scl=0 channel sda=1
+       protocol-decoder ltc26x7 option chip=ltc2627
+       stack i2c ltc26x7
+       input i2c/ltc2607/ltc2607_write_dac.sr
+       output ltc26x7 annotation match ltc2607_write_dac_test_ltc2627.output