diff options
author | Jens Steinhauser <jens.steinhauser@gmail.com> | 2014-10-19 21:39:08 +0200 |
---|---|---|
committer | Jens Steinhauser <jens.steinhauser@gmail.com> | 2014-10-19 22:04:47 +0200 |
commit | a7744064900d6ed8a3f95179605699c0b89a230a (patch) | |
tree | 97e5da0c69698b7e869006e901be71cd4425f559 /spi/nrf24l01 | |
parent | 31fd2ff2f8c7ebf74511496967176ac7b0357cf6 (diff) | |
download | sigrok-dumps-a7744064900d6ed8a3f95179605699c0b89a230a.tar.gz sigrok-dumps-a7744064900d6ed8a3f95179605699c0b89a230a.zip |
Add nrf24l01 unit test dump.
Diffstat (limited to 'spi/nrf24l01')
-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 |