]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/spiflash/test.conf
spiflash: Add a few more test-cases.
[sigrok-test.git] / decoder / test / spiflash / test.conf
index 2f84feed26a82b9ebb811be100ae37ecb849d3ce..a901750a3fa42a99e89efef8ee500e24cb811e3d 100644 (file)
@@ -1,6 +1,55 @@
-test probe
+test probe_ascii
        protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
-       protocol-decoder spiflash
+       protocol-decoder spiflash option format=ascii
        stack spi spiflash
        input spi/mx25l1605d/mx25l1605d_probe.sr
-       output spiflash annotation match probe.output
+       output spiflash annotation match probe_ascii.output
+
+test probe_hex
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=hex
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_probe.sr
+       output spiflash annotation match probe_hex.output
+
+test read_ascii
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=ascii
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_read.sr
+       output spiflash annotation match read_ascii.output
+
+test read_hex
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=hex
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_read.sr
+       output spiflash annotation match read_hex.output
+
+test write_ascii
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=ascii
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_write.sr
+       output spiflash annotation match write_ascii.output
+
+test write_hex
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=hex
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_write.sr
+       output spiflash annotation match write_hex.output
+
+test erase_ascii
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=ascii
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_erase.sr
+       output spiflash annotation match erase_ascii.output
+
+test erase_hex
+       protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3
+       protocol-decoder spiflash option format=hex
+       stack spi spiflash
+       input spi/mx25l1605d/mx25l1605d_erase.sr
+       output spiflash annotation match erase_hex.output