summaryrefslogtreecommitdiff
path: root/decoders/nrf24l01/test/test.conf
diff options
context:
space:
mode:
authorJens Steinhauser <jens.steinhauser@gmail.com>2014-07-08 22:15:30 +0200
committerJens Steinhauser <jens.steinhauser@gmail.com>2014-07-08 22:15:30 +0200
commit0e501c70cf26f208d7e523b7fe737d0e8d565109 (patch)
tree55ac981b68aa6997a7394129d420293bbb2d64b5 /decoders/nrf24l01/test/test.conf
parent34929ee00c976842196ca95240b6cb1a7f5d8c75 (diff)
downloadlibsigrokdecode-0e501c70cf26f208d7e523b7fe737d0e8d565109.tar.gz
libsigrokdecode-0e501c70cf26f208d7e523b7fe737d0e8d565109.zip
Add nRF24L01(+) protocol decoder.
Diffstat (limited to 'decoders/nrf24l01/test/test.conf')
-rw-r--r--decoders/nrf24l01/test/test.conf80
1 files changed, 80 insertions, 0 deletions
diff --git a/decoders/nrf24l01/test/test.conf b/decoders/nrf24l01/test/test.conf
new file mode 100644
index 0000000..8b6d77b
--- /dev/null
+++ b/decoders/nrf24l01/test/test.conf
@@ -0,0 +1,80 @@
+test activate
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-activate.sr
+ output nrf24l01 annotation class cmd match nrf24l01_activate_cmd.output
+ output nrf24l01 annotation class warning match nrf24l01_activate_warning.output
+
+test communication-rx
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-communication-rx.sr
+ output nrf24l01 annotation class rx-data match nrf24l01_communication_rx.output
+
+test communication-tx
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-communication-tx.sr
+ output nrf24l01 annotation class tx-data match nrf24l01_communication_tx.output
+
+test excess-bytes
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-excess-bytes.sr
+ output nrf24l01 annotation class warning match nrf24l01_excess_bytes_warning.output
+
+test misc
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-misc.sr
+ output nrf24l01 annotation class cmd match nrf24l01_misc_cmd.output
+ output nrf24l01 annotation class tx-data match nrf24l01_misc_tx_data.output
+ output nrf24l01 annotation class register match nrf24l01_misc_register.output
+ output nrf24l01 annotation class warning match nrf24l01_misc_warning.output
+
+test missing-bytes
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-missing-bytes.sr
+ output nrf24l01 annotation class warning match nrf24l01_missing_bytes_warning.output
+
+test no-command
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-no-command.sr
+ output nrf24l01 annotation class register match nrf24l01_no_command_register.output
+
+test no-mosi
+ protocol-decoder spi channel cs=0 channel clk=1 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-no-command.sr
+ output nrf24l01 exception match MissingDataError
+
+test no-miso
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-no-command.sr
+ output nrf24l01 exception match MissingDataError
+
+test unknown-command
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-unknown-command.sr
+ output nrf24l01 annotation class warning match nrf24l01_unknown_command_warning.output
+
+test unknown-register
+ protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
+ protocol-decoder nrf24l01
+ stack spi nrf24l01
+ input spi/nrf24l01/nrf24l01-test-unknown-register.sr
+ output nrf24l01 annotation class warning match nrf24l01_unknown_register_warning.output