summaryrefslogtreecommitdiff
path: root/decoder/test/nrf24l01/test.conf
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/test/nrf24l01/test.conf')
-rw-r--r--decoder/test/nrf24l01/test.conf80
1 files changed, 80 insertions, 0 deletions
diff --git a/decoder/test/nrf24l01/test.conf b/decoder/test/nrf24l01/test.conf
new file mode 100644
index 0000000..986d30d
--- /dev/null
+++ b/decoder/test/nrf24l01/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 ChannelError
+
+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 ChannelError
+
+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