]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/spi/test.conf
spi: Add some test-cases for wordsize != 8.
[sigrok-test.git] / decoder / test / spi / test.conf
index fcceea8f14884f9d935dc2e07db6ff4c7f4fbaef..8e7b66936aec432eb9e5d1408c8bca3b9dac4aa7 100644 (file)
@@ -44,6 +44,37 @@ test count_miso_lsb
        output spi python match spi_count_miso_lsb.python
        output spi binary class miso match spi_count_miso_lsb.bin_miso
 
+test 9bit_spi
+       protocol-decoder spi channel cs=4 channel clk=2 channel mosi=5 option wordsize=9
+       input spi/wordwidths/9bit_spi.sr
+       output spi annotation match 9bit_spi.output
+       output spi python match 9bit_spi.python
+       output spi binary class mosi match 9bit_spi.bin_mosi
+
+test 16bit_spi
+       protocol-decoder spi channel cs=12 channel clk=7 channel miso=9 channel mosi=8 option wordsize=16
+       input spi/wordwidths/16bit_spi.sr
+       output spi annotation match 16bit_spi.output
+       output spi python match 16bit_spi.python
+       output spi binary class miso match 16bit_spi.bin_miso
+       output spi binary class mosi match 16bit_spi.bin_mosi
+
+test 40bit_spi
+       protocol-decoder spi channel cs=12 channel clk=7 channel miso=8 channel mosi=9 option wordsize=40
+       input spi/wordwidths/40bit_spi.sr
+       output spi annotation match 40bit_spi.output
+       output spi python match 40bit_spi.python
+       output spi binary class miso match 40bit_spi.bin_miso
+       output spi binary class mosi match 40bit_spi.bin_mosi
+
+test 152bit_spi
+       protocol-decoder spi channel cs=12 channel clk=7 channel miso=9 channel mosi=8 option wordsize=152
+       input spi/wordwidths/152bit_spi.sr
+       output spi annotation match 152bit_spi.output
+       output spi python match 152bit_spi.python
+       output spi binary class miso match 152bit_spi.bin_miso
+       output spi binary class mosi match 152bit_spi.bin_mosi
+
 test exception_samplerate
        protocol-decoder spi
        input misc/no-samplerate.sr