]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/timing/test.conf
timing: Update tests, add some more.
[sigrok-test.git] / decoder / test / timing / test.conf
index bf938301d8b9ea1ed90fcec8ec2ace7541d79235..e6f2eaf70ffe221bdc5b5e257cf6d6c2d1b87d1c 100644 (file)
@@ -1,4 +1,29 @@
-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
        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
+
+test ade7758-phase-b-zx-irq-context-rising
+       protocol-decoder timing channel data=0 option avg_period=100 option edge=rising option delta=yes
+       input spi/ade7758/ade7758-phase-b-zx-irq-context.sr
+       output timing annotation match ade7758-phase-b-zx-irq-context-rising.output
+
+test ade7758-phase-b-zx-irq-context-falling
+       protocol-decoder timing channel data=0 option avg_period=100 option edge=falling option delta=yes
+       input spi/ade7758/ade7758-phase-b-zx-irq-context.sr
+       output timing annotation match ade7758-phase-b-zx-irq-context-falling.output
+
+test ade7758-phase-b-zx-irq-context-any
+       protocol-decoder timing channel data=0 option avg_period=100 option edge=any option delta=yes
+       input spi/ade7758/ade7758-phase-b-zx-irq-context.sr
+       output timing annotation match ade7758-phase-b-zx-irq-context-any.output