From 349d754f287085aa4dd748c7b00581ca1a0a6203 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 23 Oct 2016 21:25:48 +0200 Subject: spi: Add some test-cases for wordsize != 8. --- decoder/test/spi/test.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'decoder/test/spi/test.conf') diff --git a/decoder/test/spi/test.conf b/decoder/test/spi/test.conf index fcceea8..8e7b669 100644 --- a/decoder/test/spi/test.conf +++ b/decoder/test/spi/test.conf @@ -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 -- cgit v1.2.3-54-g00ecf