summaryrefslogtreecommitdiff
path: root/decoder/test/counter/test.conf
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-01-03 17:30:36 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2018-01-03 17:38:41 +0100
commitbf18891ff663d11ea3df299d79e5e7f68e749972 (patch)
treef2a923b8c73aade37061bf32b4841b19b87adab9 /decoder/test/counter/test.conf
parentb01ef27162412ca6e241a9b595ba02fd7143b4d6 (diff)
downloadsigrok-test-bf18891ff663d11ea3df299d79e5e7f68e749972.tar.gz
sigrok-test-bf18891ff663d11ea3df299d79e5e7f68e749972.zip
Add some counter test-cases.
Diffstat (limited to 'decoder/test/counter/test.conf')
-rw-r--r--decoder/test/counter/test.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/decoder/test/counter/test.conf b/decoder/test/counter/test.conf
new file mode 100644
index 0000000..6cd5765
--- /dev/null
+++ b/decoder/test/counter/test.conf
@@ -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