]> sigrok.org Git - sigrok-dumps.git/commitdiff
Add nrf24l01 unit test dump.
authorJens Steinhauser <redacted>
Sun, 19 Oct 2014 19:39:08 +0000 (21:39 +0200)
committerJens Steinhauser <redacted>
Sun, 19 Oct 2014 20:04:47 +0000 (22:04 +0200)
spi/nrf24l01/gen-testfiles.py
spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr [new file with mode: 0644]

index 5b14e438a6b7a5fd5533b57d5f9a4f4934f7deff..6377539b3050fdd811cfdbc1a1cc427733de441e 100755 (executable)
@@ -187,3 +187,12 @@ for i in range(5):
     spi.add(i, 0x00)
 spi.CShigh()
 spi.write()
+
+spi = SPI('nrf24l01-test-incomplete-cmd')
+spi.add(0xff, 0xff) # some bytes from a command
+spi.add(0xff, 0xff) # that was captured incompletely
+spi.CShigh()
+spi.CSlow()
+spi.add(0xe1, 0x00) # FLUSH_TX
+spi.CShigh()
+spi.write()
diff --git a/spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr b/spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr
new file mode 100644 (file)
index 0000000..1fc7592
Binary files /dev/null and b/spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr differ