]> sigrok.org Git - libsigrokdecode.git/blob - decoders/nrf24l01/test/test.conf
986d30d95fdb262ad8e0d65c642b3fe684837dba
[libsigrokdecode.git] / decoders / nrf24l01 / test / 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
16 test communication-tx
17         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
18         protocol-decoder nrf24l01
19         stack spi nrf24l01
20         input spi/nrf24l01/nrf24l01-communication-tx.sr
21         output nrf24l01 annotation class tx-data match nrf24l01_communication_tx.output
22
23 test excess-bytes
24         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
25         protocol-decoder nrf24l01
26         stack spi nrf24l01
27         input spi/nrf24l01/nrf24l01-test-excess-bytes.sr
28         output nrf24l01 annotation class warning match nrf24l01_excess_bytes_warning.output
29
30 test misc
31         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
32         protocol-decoder nrf24l01
33         stack spi nrf24l01
34         input spi/nrf24l01/nrf24l01-test-misc.sr
35         output nrf24l01 annotation class cmd      match nrf24l01_misc_cmd.output
36         output nrf24l01 annotation class tx-data  match nrf24l01_misc_tx_data.output
37         output nrf24l01 annotation class register match nrf24l01_misc_register.output
38         output nrf24l01 annotation class warning  match nrf24l01_misc_warning.output
39
40 test missing-bytes
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-missing-bytes.sr
45         output nrf24l01 annotation class warning match nrf24l01_missing_bytes_warning.output
46
47 test no-command
48         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
49         protocol-decoder nrf24l01
50         stack spi nrf24l01
51         input spi/nrf24l01/nrf24l01-test-no-command.sr
52         output nrf24l01 annotation class register match nrf24l01_no_command_register.output
53
54 test no-mosi
55         protocol-decoder spi channel cs=0 channel clk=1 channel miso=3
56         protocol-decoder nrf24l01
57         stack spi nrf24l01
58         input spi/nrf24l01/nrf24l01-test-no-command.sr
59         output nrf24l01 exception match ChannelError
60
61 test no-miso
62         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2
63         protocol-decoder nrf24l01
64         stack spi nrf24l01
65         input spi/nrf24l01/nrf24l01-test-no-command.sr
66         output nrf24l01 exception match ChannelError
67
68 test unknown-command
69         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
70         protocol-decoder nrf24l01
71         stack spi nrf24l01
72         input spi/nrf24l01/nrf24l01-test-unknown-command.sr
73         output nrf24l01 annotation class warning match nrf24l01_unknown_command_warning.output
74
75 test unknown-register
76         protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3
77         protocol-decoder nrf24l01
78         stack spi nrf24l01
79         input spi/nrf24l01/nrf24l01-test-unknown-register.sr
80         output nrf24l01 annotation class warning match nrf24l01_unknown_register_warning.output