]> sigrok.org Git - sigrok-test.git/blob - decoder/test/nrf24l01/test.conf
timing: Update tests, add some more.
[sigrok-test.git] / decoder / test / nrf24l01 / test.conf
1 test activate
2         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
3         protocol-decoder nrf24l01
4         stack spi nrf24l01
5         input spi/nrf24l01/nrf24l01-test-activate.sr
6         output nrf24l01 annotation class cmd     match nrf24l01_activate_cmd.output
7         output nrf24l01 annotation class warning match nrf24l01_activate_warning.output
8
9 test communication-rx
10         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
11         protocol-decoder nrf24l01
12         stack spi nrf24l01
13         input spi/nrf24l01/nrf24l01-communication-rx.sr
14         output nrf24l01 annotation class rx-data match nrf24l01_communication_rx.output
15         output nrf24l01 annotation class warning match empty.output
16
17 test communication-tx
18         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
19         protocol-decoder nrf24l01
20         stack spi nrf24l01
21         input spi/nrf24l01/nrf24l01-communication-tx.sr
22         output nrf24l01 annotation class tx-data match nrf24l01_communication_tx.output
23         output nrf24l01 annotation class warning match empty.output
24
25 test excess-bytes
26         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
27         protocol-decoder nrf24l01
28         stack spi nrf24l01
29         input spi/nrf24l01/nrf24l01-test-excess-bytes.sr
30         output nrf24l01 annotation class warning match nrf24l01_excess_bytes_warning.output
31
32 test incomplete-cmd
33         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
34         protocol-decoder nrf24l01
35         stack spi nrf24l01
36         input spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr
37         output nrf24l01 annotation class cmd     match nrf24l01_incomplete_cmd_cmd.output
38         output nrf24l01 annotation class warning match empty.output
39
40 test misc
41         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
42         protocol-decoder nrf24l01
43         stack spi nrf24l01
44         input spi/nrf24l01/nrf24l01-test-misc.sr
45         output nrf24l01 annotation class cmd      match nrf24l01_misc_cmd.output
46         output nrf24l01 annotation class tx-data  match nrf24l01_misc_tx_data.output
47         output nrf24l01 annotation class register match nrf24l01_misc_register.output
48         output nrf24l01 annotation class warning  match nrf24l01_misc_warning.output
49
50 test missing-bytes
51         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
52         protocol-decoder nrf24l01
53         stack spi nrf24l01
54         input spi/nrf24l01/nrf24l01-test-missing-bytes.sr
55         output nrf24l01 annotation class warning match nrf24l01_missing_bytes_warning.output
56
57 test no-command
58         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
59         protocol-decoder nrf24l01
60         stack spi nrf24l01
61         input spi/nrf24l01/nrf24l01-test-no-command.sr
62         output nrf24l01 annotation class register match nrf24l01_no_command_register.output
63         output nrf24l01 annotation class warning match empty.output
64
65 test no-cs
66         protocol-decoder spi channel clk=1 channel mosi=2 channel miso=3
67         protocol-decoder nrf24l01
68         stack spi nrf24l01
69         input spi/nrf24l01/nrf24l01-test-no-command.sr
70         output nrf24l01 exception match ChannelError
71
72 test no-mosi
73         protocol-decoder spi channel cs=0 channel clk=1 channel miso=3
74         protocol-decoder nrf24l01
75         stack spi nrf24l01
76         input spi/nrf24l01/nrf24l01-test-no-command.sr
77         output nrf24l01 exception match ChannelError
78
79 test no-miso
80         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2
81         protocol-decoder nrf24l01
82         stack spi nrf24l01
83         input spi/nrf24l01/nrf24l01-test-no-command.sr
84         output nrf24l01 exception match ChannelError
85
86 test unknown-command
87         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
88         protocol-decoder nrf24l01
89         stack spi nrf24l01
90         input spi/nrf24l01/nrf24l01-test-unknown-command.sr
91         output nrf24l01 annotation class warning match nrf24l01_unknown_command_warning.output
92
93 test unknown-register
94         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
95         protocol-decoder nrf24l01
96         stack spi nrf24l01
97         input spi/nrf24l01/nrf24l01-test-unknown-register.sr
98         output nrf24l01 annotation class warning match nrf24l01_unknown_register_warning.output