summaryrefslogtreecommitdiff
path: root/decoders/spi/test/test.conf
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2014-06-27 18:45:01 +0200
committerBert Vermeulen <bert@biot.com>2014-06-27 18:45:01 +0200
commit7ea7c017c334ebb466923f6e9fef9ef72e157676 (patch)
tree107ee388270d3fa7964c27a5b29a03d60b935a1c /decoders/spi/test/test.conf
parent4fecc5a4bcb036f40e23ab967579334076203c2f (diff)
downloadlibsigrokdecode-7ea7c017c334ebb466923f6e9fef9ef72e157676.tar.gz
libsigrokdecode-7ea7c017c334ebb466923f6e9fef9ef72e157676.zip
spi: Add coverage tests for all mosi/miso and lsb/msb combinations.
Diffstat (limited to 'decoders/spi/test/test.conf')
-rw-r--r--decoders/spi/test/test.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/decoders/spi/test/test.conf b/decoders/spi/test/test.conf
index e08b788..57e0be7 100644
--- a/decoders/spi/test/test.conf
+++ b/decoders/spi/test/test.conf
@@ -11,3 +11,23 @@ test mx25l1605d_probe
output spi annotation class miso-data match mx25l1605d_probe_miso.output
output spi annotation match mx25l1605d_probe.output
+test count_mosi_msb
+ protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2
+ input spi/spi-count-msb.sr
+ output spi annotation class mosi-data match spi_count_mosi_msb.output
+
+test count_miso_msb
+ protocol-decoder spi channel cs=1 channel clk=0 channel miso=2
+ input spi/spi-count-msb.sr
+ output spi annotation class miso-data match spi_count_miso_msb.output
+
+test count_mosi_lsb
+ protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2 option bitorder=lsb-first
+ input spi/spi-count-lsb.sr
+ output spi annotation class mosi-data match spi_count_mosi_lsb.output
+
+test count_miso_lsb
+ protocol-decoder spi channel cs=1 channel clk=0 channel miso=2 option bitorder=lsb-first
+ input spi/spi-count-lsb.sr
+ output spi annotation class mosi-data match spi_count_miso_lsb.output
+