]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/timing/test.conf
timing: add tests for noaverage/edge/delta modes
[sigrok-test.git] / decoder / test / timing / test.conf
index bf938301d8b9ea1ed90fcec8ec2ace7541d79235..feca6af5e8410f4a6ccd212f7ddef94b8ea27ea3 100644 (file)
@@ -1,4 +1,14 @@
-test am2301_1mhz
-       protocol-decoder timing channel data=5
+test am2301_1mhz_avg100
+       protocol-decoder timing channel data=5 option avg_period=100
        input am230x/am2301/am2301_1mhz.sr
-       output timing annotation match am2301_1mhz.output
+       output timing annotation match am2301_1mhz_avg100.output
+
+test am2301_1mhz_avg4
+       protocol-decoder timing channel data=5 option avg_period=4
+       input am230x/am2301/am2301_1mhz.sr
+       output timing annotation match am2301_1mhz_avg4.output
+
+test am2301_1mhz_noavg_rising_delta
+       protocol-decoder timing channel data=5 option avg_period=0 option edge=rising option delta=yes
+       input am230x/am2301/am2301_1mhz.sr
+       output timing annotation match am2301_1mhz_noavg_rising_delta.output