diff options
-rwxr-xr-x | spi/nrf24l01/gen-testfiles.py | 9 | ||||
-rw-r--r-- | spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr | bin | 0 -> 453 bytes |
2 files changed, 9 insertions, 0 deletions
diff --git a/spi/nrf24l01/gen-testfiles.py b/spi/nrf24l01/gen-testfiles.py index 5b14e43..6377539 100755 --- a/spi/nrf24l01/gen-testfiles.py +++ b/spi/nrf24l01/gen-testfiles.py @@ -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 Binary files differnew file mode 100644 index 0000000..1fc7592 --- /dev/null +++ b/spi/nrf24l01/nrf24l01-test-incomplete-cmd.sr |