]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/counter/test.conf
Add some counter test-cases.
[sigrok-test.git] / decoder / test / counter / test.conf
diff --git a/decoder/test/counter/test.conf b/decoder/test/counter/test.conf
new file mode 100644 (file)
index 0000000..6cd5765
--- /dev/null
@@ -0,0 +1,34 @@
+test 9bit_spi_rising
+       protocol-decoder counter channel data=2 option edge=rising
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_rising.output
+
+test 9bit_spi_falling
+       protocol-decoder counter channel data=2 option edge=falling
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_falling.output
+
+test 9bit_spi_any
+       protocol-decoder counter channel data=2 option edge=any
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_any.output
+
+test 9bit_spi_rising_2bit_words
+       protocol-decoder counter channel data=2 option edge=rising option divider=2
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_rising_2bit_words.output
+
+test 9bit_spi_rising_9bit_words
+       protocol-decoder counter channel data=2 option edge=rising option divider=9
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_rising_9bit_words.output
+
+test 9bit_spi_rising_18bit_words
+       protocol-decoder counter channel data=2 option edge=rising option divider=18
+       input spi/wordwidths/9bit_spi.sr
+       output counter annotation match 9bit_spi_rising_18bit_words.output
+
+test nrf24l01_communication_tx_8bit_words_reset
+       protocol-decoder counter channel data=1 channel reset=0 option edge=rising option divider=8
+       input spi/nrf24l01/nrf24l01-communication-tx.sr
+       output counter annotation match nrf24l01_communication_tx_8bit_words_reset.output