From: Uwe Hermann Date: Wed, 24 Apr 2019 19:43:34 +0000 (+0200) Subject: spi: Add two more test-cases. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=340e18788ab2ec290ae26b3da31fb5ea81e0b7c5;p=sigrok-test.git spi: Add two more test-cases. --- diff --git a/decoder/test/spi/adf4351-set-4000mhz.bin_miso b/decoder/test/spi/adf4351-set-4000mhz.bin_miso new file mode 100644 index 0000000..e69de29 diff --git a/decoder/test/spi/adf4351-set-4000mhz.bin_mosi b/decoder/test/spi/adf4351-set-4000mhz.bin_mosi new file mode 100644 index 0000000..a16c6e6 --- /dev/null +++ b/decoder/test/spi/adf4351-set-4000mhz.bin_mosi @@ -0,0 +1,24 @@ +398223-398669 spi: 00 +398669-399118 spi: d8 +399118-399562 spi: 00 +399563-400012 spi: 05 +509780-510226 spi: 00 +510227-510673 spi: 8c +510675-511121 spi: 80 +511121-511572 spi: fc +721970-722416 spi: 00 +722416-722862 spi: 00 +722861-723308 spi: 04 +723309-723758 spi: b3 +1016823-1017267 spi: 00 +1017268-1017714 spi: 00 +1017713-1018163 spi: 4e +1018163-1018609 spi: 42 +1302383-1302830 spi: 08 +1302829-1303275 spi: 00 +1303276-1303720 spi: 80 +1303721-1304170 spi: 11 +1505957-1506403 spi: 00 +1506402-1506850 spi: 50 +1506850-1507294 spi: 00 +1507295-1507741 spi: 00 diff --git a/decoder/test/spi/adf4351-set-4000mhz.output b/decoder/test/spi/adf4351-set-4000mhz.output new file mode 100644 index 0000000..ccbd3b6 --- /dev/null +++ b/decoder/test/spi/adf4351-set-4000mhz.output @@ -0,0 +1,222 @@ +398613-398669 spi: mosi-bits: "0" +398557-398613 spi: mosi-bits: "0" +398501-398557 spi: mosi-bits: "0" +398446-398501 spi: mosi-bits: "0" +398390-398446 spi: mosi-bits: "0" +398334-398390 spi: mosi-bits: "0" +398278-398334 spi: mosi-bits: "0" +398223-398278 spi: mosi-bits: "0" +398223-398669 spi: mosi-data: "00" +399062-399118 spi: mosi-bits: "0" +399006-399062 spi: mosi-bits: "0" +398951-399006 spi: mosi-bits: "0" +398895-398951 spi: mosi-bits: "1" +398838-398895 spi: mosi-bits: "1" +398782-398838 spi: mosi-bits: "0" +398726-398782 spi: mosi-bits: "1" +398669-398726 spi: mosi-bits: "1" +398669-399118 spi: mosi-data: "D8" +399507-399562 spi: mosi-bits: "0" +399452-399507 spi: mosi-bits: "0" +399396-399452 spi: mosi-bits: "0" +399340-399396 spi: mosi-bits: "0" +399285-399340 spi: mosi-bits: "0" +399229-399285 spi: mosi-bits: "0" +399173-399229 spi: mosi-bits: "0" +399118-399173 spi: mosi-bits: "0" +399118-399562 spi: mosi-data: "00" +399955-400012 spi: mosi-bits: "1" +399898-399955 spi: mosi-bits: "0" +399842-399898 spi: mosi-bits: "1" +399786-399842 spi: mosi-bits: "0" +399730-399786 spi: mosi-bits: "0" +399674-399730 spi: mosi-bits: "0" +399619-399674 spi: mosi-bits: "0" +399563-399619 spi: mosi-bits: "0" +399563-400012 spi: mosi-data: "05" +0-399987 spi: mosi-transfer: "00 D8 00 05" +510170-510226 spi: mosi-bits: "0" +510114-510170 spi: mosi-bits: "0" +510059-510114 spi: mosi-bits: "0" +510003-510059 spi: mosi-bits: "0" +509947-510003 spi: mosi-bits: "0" +509892-509947 spi: mosi-bits: "0" +509836-509892 spi: mosi-bits: "0" +509780-509836 spi: mosi-bits: "0" +509780-510226 spi: mosi-data: "00" +510618-510673 spi: mosi-bits: "0" +510563-510618 spi: mosi-bits: "0" +510507-510563 spi: mosi-bits: "1" +510450-510507 spi: mosi-bits: "1" +510394-510450 spi: mosi-bits: "0" +510338-510394 spi: mosi-bits: "0" +510282-510338 spi: mosi-bits: "0" +510227-510282 spi: mosi-bits: "1" +510227-510673 spi: mosi-data: "8C" +511065-511121 spi: mosi-bits: "0" +511009-511065 spi: mosi-bits: "0" +510953-511009 spi: mosi-bits: "0" +510898-510953 spi: mosi-bits: "0" +510842-510898 spi: mosi-bits: "0" +510786-510842 spi: mosi-bits: "0" +510731-510786 spi: mosi-bits: "0" +510675-510731 spi: mosi-bits: "1" +510675-511121 spi: mosi-data: "80" +511516-511572 spi: mosi-bits: "0" +511460-511516 spi: mosi-bits: "0" +511405-511460 spi: mosi-bits: "1" +511348-511405 spi: mosi-bits: "1" +511291-511348 spi: mosi-bits: "1" +511235-511291 spi: mosi-bits: "1" +511178-511235 spi: mosi-bits: "1" +511121-511178 spi: mosi-bits: "1" +511121-511572 spi: mosi-data: "FC" +400000-511548 spi: mosi-transfer: "00 8C 80 FC" +722360-722416 spi: mosi-bits: "0" +722304-722360 spi: mosi-bits: "0" +722249-722304 spi: mosi-bits: "0" +722193-722249 spi: mosi-bits: "0" +722137-722193 spi: mosi-bits: "0" +722082-722137 spi: mosi-bits: "0" +722026-722082 spi: mosi-bits: "0" +721970-722026 spi: mosi-bits: "0" +721970-722416 spi: mosi-data: "00" +722806-722862 spi: mosi-bits: "0" +722750-722806 spi: mosi-bits: "0" +722694-722750 spi: mosi-bits: "0" +722639-722694 spi: mosi-bits: "0" +722583-722639 spi: mosi-bits: "0" +722527-722583 spi: mosi-bits: "0" +722471-722527 spi: mosi-bits: "0" +722416-722471 spi: mosi-bits: "0" +722416-722862 spi: mosi-data: "00" +723252-723308 spi: mosi-bits: "0" +723196-723252 spi: mosi-bits: "0" +723141-723196 spi: mosi-bits: "1" +723084-723141 spi: mosi-bits: "0" +723028-723084 spi: mosi-bits: "0" +722973-723028 spi: mosi-bits: "0" +722917-722973 spi: mosi-bits: "0" +722861-722917 spi: mosi-bits: "0" +722861-723308 spi: mosi-data: "04" +723702-723758 spi: mosi-bits: "1" +723646-723702 spi: mosi-bits: "1" +723589-723646 spi: mosi-bits: "0" +723533-723589 spi: mosi-bits: "0" +723478-723533 spi: mosi-bits: "1" +723421-723478 spi: mosi-bits: "1" +723364-723421 spi: mosi-bits: "0" +723309-723364 spi: mosi-bits: "1" +723309-723758 spi: mosi-data: "B3" +511561-723735 spi: mosi-transfer: "00 00 04 B3" +1017212-1017267 spi: mosi-bits: "0" +1017157-1017212 spi: mosi-bits: "0" +1017101-1017157 spi: mosi-bits: "0" +1017045-1017101 spi: mosi-bits: "0" +1016990-1017045 spi: mosi-bits: "0" +1016934-1016990 spi: mosi-bits: "0" +1016878-1016934 spi: mosi-bits: "0" +1016823-1016878 spi: mosi-bits: "0" +1016823-1017267 spi: mosi-data: "00" +1017658-1017714 spi: mosi-bits: "0" +1017602-1017658 spi: mosi-bits: "0" +1017546-1017602 spi: mosi-bits: "0" +1017491-1017546 spi: mosi-bits: "0" +1017435-1017491 spi: mosi-bits: "0" +1017379-1017435 spi: mosi-bits: "0" +1017324-1017379 spi: mosi-bits: "0" +1017268-1017324 spi: mosi-bits: "0" +1017268-1017714 spi: mosi-data: "00" +1018107-1018163 spi: mosi-bits: "0" +1018051-1018107 spi: mosi-bits: "1" +1017995-1018051 spi: mosi-bits: "1" +1017938-1017995 spi: mosi-bits: "1" +1017881-1017938 spi: mosi-bits: "0" +1017826-1017881 spi: mosi-bits: "0" +1017770-1017826 spi: mosi-bits: "1" +1017713-1017770 spi: mosi-bits: "0" +1017713-1018163 spi: mosi-data: "4E" +1018554-1018609 spi: mosi-bits: "0" +1018499-1018554 spi: mosi-bits: "1" +1018442-1018499 spi: mosi-bits: "0" +1018386-1018442 spi: mosi-bits: "0" +1018331-1018386 spi: mosi-bits: "0" +1018275-1018331 spi: mosi-bits: "0" +1018219-1018275 spi: mosi-bits: "1" +1018163-1018219 spi: mosi-bits: "0" +1018163-1018609 spi: mosi-data: "42" +723747-1018587 spi: mosi-transfer: "00 00 4E 42" +1302774-1302830 spi: mosi-bits: "0" +1302718-1302774 spi: mosi-bits: "0" +1302662-1302718 spi: mosi-bits: "0" +1302607-1302662 spi: mosi-bits: "1" +1302550-1302607 spi: mosi-bits: "0" +1302494-1302550 spi: mosi-bits: "0" +1302439-1302494 spi: mosi-bits: "0" +1302383-1302439 spi: mosi-bits: "0" +1302383-1302830 spi: mosi-data: "08" +1303219-1303275 spi: mosi-bits: "0" +1303163-1303219 spi: mosi-bits: "0" +1303108-1303163 spi: mosi-bits: "0" +1303052-1303108 spi: mosi-bits: "0" +1302996-1303052 spi: mosi-bits: "0" +1302941-1302996 spi: mosi-bits: "0" +1302885-1302941 spi: mosi-bits: "0" +1302829-1302885 spi: mosi-bits: "0" +1302829-1303275 spi: mosi-data: "00" +1303665-1303720 spi: mosi-bits: "0" +1303610-1303665 spi: mosi-bits: "0" +1303554-1303610 spi: mosi-bits: "0" +1303498-1303554 spi: mosi-bits: "0" +1303443-1303498 spi: mosi-bits: "0" +1303387-1303443 spi: mosi-bits: "0" +1303331-1303387 spi: mosi-bits: "0" +1303276-1303331 spi: mosi-bits: "1" +1303276-1303720 spi: mosi-data: "80" +1304113-1304170 spi: mosi-bits: "1" +1304056-1304113 spi: mosi-bits: "0" +1304000-1304056 spi: mosi-bits: "0" +1303945-1304000 spi: mosi-bits: "0" +1303889-1303945 spi: mosi-bits: "1" +1303832-1303889 spi: mosi-bits: "0" +1303777-1303832 spi: mosi-bits: "0" +1303721-1303777 spi: mosi-bits: "0" +1303721-1304170 spi: mosi-data: "11" +1018599-1304145 spi: mosi-transfer: "08 00 80 11" +1506347-1506403 spi: mosi-bits: "0" +1506291-1506347 spi: mosi-bits: "0" +1506235-1506291 spi: mosi-bits: "0" +1506180-1506235 spi: mosi-bits: "0" +1506124-1506180 spi: mosi-bits: "0" +1506068-1506124 spi: mosi-bits: "0" +1506013-1506068 spi: mosi-bits: "0" +1505957-1506013 spi: mosi-bits: "0" +1505957-1506403 spi: mosi-data: "00" +1506794-1506850 spi: mosi-bits: "0" +1506738-1506794 spi: mosi-bits: "0" +1506683-1506738 spi: mosi-bits: "0" +1506627-1506683 spi: mosi-bits: "0" +1506571-1506627 spi: mosi-bits: "1" +1506515-1506571 spi: mosi-bits: "0" +1506459-1506515 spi: mosi-bits: "1" +1506402-1506459 spi: mosi-bits: "0" +1506402-1506850 spi: mosi-data: "50" +1507239-1507294 spi: mosi-bits: "0" +1507184-1507239 spi: mosi-bits: "0" +1507128-1507184 spi: mosi-bits: "0" +1507072-1507128 spi: mosi-bits: "0" +1507017-1507072 spi: mosi-bits: "0" +1506961-1507017 spi: mosi-bits: "0" +1506905-1506961 spi: mosi-bits: "0" +1506850-1506905 spi: mosi-bits: "0" +1506850-1507294 spi: mosi-data: "00" +1507685-1507741 spi: mosi-bits: "0" +1507629-1507685 spi: mosi-bits: "0" +1507574-1507629 spi: mosi-bits: "0" +1507518-1507574 spi: mosi-bits: "0" +1507462-1507518 spi: mosi-bits: "0" +1507406-1507462 spi: mosi-bits: "0" +1507351-1507406 spi: mosi-bits: "0" +1507295-1507351 spi: mosi-bits: "0" +1507295-1507741 spi: mosi-data: "00" +1304158-1507717 spi: mosi-transfer: "00 50 00 00" diff --git a/decoder/test/spi/adf4351-set-4000mhz.python b/decoder/test/spi/adf4351-set-4000mhz.python new file mode 100644 index 0000000..5952fc4 --- /dev/null +++ b/decoder/test/spi/adf4351-set-4000mhz.python @@ -0,0 +1,67 @@ +0-0 spi: ['CS-CHANGE', None, 0] +398223-398669 spi: ['BITS', [[0, 398613, 398669], [0, 398557, 398613], [0, 398501, 398557], [0, 398446, 398501], [0, 398390, 398446], [0, 398334, 398390], [0, 398278, 398334], [0, 398223, 398278]], None] +398223-398669 spi: ['DATA', 0, None] +398669-399118 spi: ['BITS', [[0, 399062, 399118], [0, 399006, 399062], [0, 398951, 399006], [1, 398895, 398951], [1, 398838, 398895], [0, 398782, 398838], [1, 398726, 398782], [1, 398669, 398726]], None] +398669-399118 spi: ['DATA', 216, None] +399118-399562 spi: ['BITS', [[0, 399507, 399562], [0, 399452, 399507], [0, 399396, 399452], [0, 399340, 399396], [0, 399285, 399340], [0, 399229, 399285], [0, 399173, 399229], [0, 399118, 399173]], None] +399118-399562 spi: ['DATA', 0, None] +399563-400012 spi: ['BITS', [[1, 399955, 400012], [0, 399898, 399955], [1, 399842, 399898], [0, 399786, 399842], [0, 399730, 399786], [0, 399674, 399730], [0, 399619, 399674], [0, 399563, 399619]], None] +399563-400012 spi: ['DATA', 5, None] +399987-399987 spi: ['CS-CHANGE', 0, 1] +0-399987 spi: ['TRANSFER', [Data(ss=398223, es=398669, val=0), Data(ss=398669, es=399118, val=216), Data(ss=399118, es=399562, val=0), Data(ss=399563, es=400012, val=5)], []] +400000-400000 spi: ['CS-CHANGE', 1, 0] +509780-510226 spi: ['BITS', [[0, 510170, 510226], [0, 510114, 510170], [0, 510059, 510114], [0, 510003, 510059], [0, 509947, 510003], [0, 509892, 509947], [0, 509836, 509892], [0, 509780, 509836]], None] +509780-510226 spi: ['DATA', 0, None] +510227-510673 spi: ['BITS', [[0, 510618, 510673], [0, 510563, 510618], [1, 510507, 510563], [1, 510450, 510507], [0, 510394, 510450], [0, 510338, 510394], [0, 510282, 510338], [1, 510227, 510282]], None] +510227-510673 spi: ['DATA', 140, None] +510675-511121 spi: ['BITS', [[0, 511065, 511121], [0, 511009, 511065], [0, 510953, 511009], [0, 510898, 510953], [0, 510842, 510898], [0, 510786, 510842], [0, 510731, 510786], [1, 510675, 510731]], None] +510675-511121 spi: ['DATA', 128, None] +511121-511572 spi: ['BITS', [[0, 511516, 511572], [0, 511460, 511516], [1, 511405, 511460], [1, 511348, 511405], [1, 511291, 511348], [1, 511235, 511291], [1, 511178, 511235], [1, 511121, 511178]], None] +511121-511572 spi: ['DATA', 252, None] +511548-511548 spi: ['CS-CHANGE', 0, 1] +400000-511548 spi: ['TRANSFER', [Data(ss=509780, es=510226, val=0), Data(ss=510227, es=510673, val=140), Data(ss=510675, es=511121, val=128), Data(ss=511121, es=511572, val=252)], []] +511561-511561 spi: ['CS-CHANGE', 1, 0] +721970-722416 spi: ['BITS', [[0, 722360, 722416], [0, 722304, 722360], [0, 722249, 722304], [0, 722193, 722249], [0, 722137, 722193], [0, 722082, 722137], [0, 722026, 722082], [0, 721970, 722026]], None] +721970-722416 spi: ['DATA', 0, None] +722416-722862 spi: ['BITS', [[0, 722806, 722862], [0, 722750, 722806], [0, 722694, 722750], [0, 722639, 722694], [0, 722583, 722639], [0, 722527, 722583], [0, 722471, 722527], [0, 722416, 722471]], None] +722416-722862 spi: ['DATA', 0, None] +722861-723308 spi: ['BITS', [[0, 723252, 723308], [0, 723196, 723252], [1, 723141, 723196], [0, 723084, 723141], [0, 723028, 723084], [0, 722973, 723028], [0, 722917, 722973], [0, 722861, 722917]], None] +722861-723308 spi: ['DATA', 4, None] +723309-723758 spi: ['BITS', [[1, 723702, 723758], [1, 723646, 723702], [0, 723589, 723646], [0, 723533, 723589], [1, 723478, 723533], [1, 723421, 723478], [0, 723364, 723421], [1, 723309, 723364]], None] +723309-723758 spi: ['DATA', 179, None] +723735-723735 spi: ['CS-CHANGE', 0, 1] +511561-723735 spi: ['TRANSFER', [Data(ss=721970, es=722416, val=0), Data(ss=722416, es=722862, val=0), Data(ss=722861, es=723308, val=4), Data(ss=723309, es=723758, val=179)], []] +723747-723747 spi: ['CS-CHANGE', 1, 0] +1016823-1017267 spi: ['BITS', [[0, 1017212, 1017267], [0, 1017157, 1017212], [0, 1017101, 1017157], [0, 1017045, 1017101], [0, 1016990, 1017045], [0, 1016934, 1016990], [0, 1016878, 1016934], [0, 1016823, 1016878]], None] +1016823-1017267 spi: ['DATA', 0, None] +1017268-1017714 spi: ['BITS', [[0, 1017658, 1017714], [0, 1017602, 1017658], [0, 1017546, 1017602], [0, 1017491, 1017546], [0, 1017435, 1017491], [0, 1017379, 1017435], [0, 1017324, 1017379], [0, 1017268, 1017324]], None] +1017268-1017714 spi: ['DATA', 0, None] +1017713-1018163 spi: ['BITS', [[0, 1018107, 1018163], [1, 1018051, 1018107], [1, 1017995, 1018051], [1, 1017938, 1017995], [0, 1017881, 1017938], [0, 1017826, 1017881], [1, 1017770, 1017826], [0, 1017713, 1017770]], None] +1017713-1018163 spi: ['DATA', 78, None] +1018163-1018609 spi: ['BITS', [[0, 1018554, 1018609], [1, 1018499, 1018554], [0, 1018442, 1018499], [0, 1018386, 1018442], [0, 1018331, 1018386], [0, 1018275, 1018331], [1, 1018219, 1018275], [0, 1018163, 1018219]], None] +1018163-1018609 spi: ['DATA', 66, None] +1018587-1018587 spi: ['CS-CHANGE', 0, 1] +723747-1018587 spi: ['TRANSFER', [Data(ss=1016823, es=1017267, val=0), Data(ss=1017268, es=1017714, val=0), Data(ss=1017713, es=1018163, val=78), Data(ss=1018163, es=1018609, val=66)], []] +1018599-1018599 spi: ['CS-CHANGE', 1, 0] +1302383-1302830 spi: ['BITS', [[0, 1302774, 1302830], [0, 1302718, 1302774], [0, 1302662, 1302718], [1, 1302607, 1302662], [0, 1302550, 1302607], [0, 1302494, 1302550], [0, 1302439, 1302494], [0, 1302383, 1302439]], None] +1302383-1302830 spi: ['DATA', 8, None] +1302829-1303275 spi: ['BITS', [[0, 1303219, 1303275], [0, 1303163, 1303219], [0, 1303108, 1303163], [0, 1303052, 1303108], [0, 1302996, 1303052], [0, 1302941, 1302996], [0, 1302885, 1302941], [0, 1302829, 1302885]], None] +1302829-1303275 spi: ['DATA', 0, None] +1303276-1303720 spi: ['BITS', [[0, 1303665, 1303720], [0, 1303610, 1303665], [0, 1303554, 1303610], [0, 1303498, 1303554], [0, 1303443, 1303498], [0, 1303387, 1303443], [0, 1303331, 1303387], [1, 1303276, 1303331]], None] +1303276-1303720 spi: ['DATA', 128, None] +1303721-1304170 spi: ['BITS', [[1, 1304113, 1304170], [0, 1304056, 1304113], [0, 1304000, 1304056], [0, 1303945, 1304000], [1, 1303889, 1303945], [0, 1303832, 1303889], [0, 1303777, 1303832], [0, 1303721, 1303777]], None] +1303721-1304170 spi: ['DATA', 17, None] +1304145-1304145 spi: ['CS-CHANGE', 0, 1] +1018599-1304145 spi: ['TRANSFER', [Data(ss=1302383, es=1302830, val=8), Data(ss=1302829, es=1303275, val=0), Data(ss=1303276, es=1303720, val=128), Data(ss=1303721, es=1304170, val=17)], []] +1304158-1304158 spi: ['CS-CHANGE', 1, 0] +1505957-1506403 spi: ['BITS', [[0, 1506347, 1506403], [0, 1506291, 1506347], [0, 1506235, 1506291], [0, 1506180, 1506235], [0, 1506124, 1506180], [0, 1506068, 1506124], [0, 1506013, 1506068], [0, 1505957, 1506013]], None] +1505957-1506403 spi: ['DATA', 0, None] +1506402-1506850 spi: ['BITS', [[0, 1506794, 1506850], [0, 1506738, 1506794], [0, 1506683, 1506738], [0, 1506627, 1506683], [1, 1506571, 1506627], [0, 1506515, 1506571], [1, 1506459, 1506515], [0, 1506402, 1506459]], None] +1506402-1506850 spi: ['DATA', 80, None] +1506850-1507294 spi: ['BITS', [[0, 1507239, 1507294], [0, 1507184, 1507239], [0, 1507128, 1507184], [0, 1507072, 1507128], [0, 1507017, 1507072], [0, 1506961, 1507017], [0, 1506905, 1506961], [0, 1506850, 1506905]], None] +1506850-1507294 spi: ['DATA', 0, None] +1507295-1507741 spi: ['BITS', [[0, 1507685, 1507741], [0, 1507629, 1507685], [0, 1507574, 1507629], [0, 1507518, 1507574], [0, 1507462, 1507518], [0, 1507406, 1507462], [0, 1507351, 1507406], [0, 1507295, 1507351]], None] +1507295-1507741 spi: ['DATA', 0, None] +1507717-1507717 spi: ['CS-CHANGE', 0, 1] +1304158-1507717 spi: ['TRANSFER', [Data(ss=1505957, es=1506403, val=0), Data(ss=1506402, es=1506850, val=80), Data(ss=1506850, es=1507294, val=0), Data(ss=1507295, es=1507741, val=0)], []] +1507730-1507730 spi: ['CS-CHANGE', 1, 0] diff --git a/decoder/test/spi/cc1101-burst-read.bin_miso b/decoder/test/spi/cc1101-burst-read.bin_miso new file mode 100644 index 0000000..45197e3 --- /dev/null +++ b/decoder/test/spi/cc1101-burst-read.bin_miso @@ -0,0 +1,19 @@ +67-99 spi: 0d +117-150 spi: 0d +250-283 spi: 0d +301-333 spi: 0a +402-434 spi: 0c +460-492 spi: 70 +522-555 spi: cc +585-617 spi: aa +647-680 spi: 98 +710-742 spi: 41 +772-805 spi: 98 +835-867 spi: 22 +897-930 spi: ba +960-992 spi: 3f +1022-1055 spi: 80 +1119-1151 spi: 02 +1178-1210 spi: 29 +1240-1272 spi: 86 +1333-1365 spi: 0f diff --git a/decoder/test/spi/cc1101-burst-read.bin_mosi b/decoder/test/spi/cc1101-burst-read.bin_mosi new file mode 100644 index 0000000..ba0e5c9 --- /dev/null +++ b/decoder/test/spi/cc1101-burst-read.bin_mosi @@ -0,0 +1,19 @@ +67-99 spi: fb +117-150 spi: 00 +250-283 spi: bf +301-333 spi: 00 +402-434 spi: ff +460-492 spi: 00 +522-555 spi: 00 +585-617 spi: 00 +647-680 spi: 00 +710-742 spi: 00 +772-805 spi: 00 +835-867 spi: 00 +897-930 spi: 00 +960-992 spi: 00 +1022-1055 spi: 00 +1119-1151 spi: ff +1178-1210 spi: 00 +1240-1272 spi: 00 +1333-1365 spi: 3a diff --git a/decoder/test/spi/cc1101-burst-read.output b/decoder/test/spi/cc1101-burst-read.output new file mode 100644 index 0000000..47a9c9a --- /dev/null +++ b/decoder/test/spi/cc1101-burst-read.output @@ -0,0 +1,342 @@ +95-99 spi: miso-bits: "1" +91-95 spi: miso-bits: "0" +87-91 spi: miso-bits: "1" +83-87 spi: miso-bits: "1" +79-83 spi: miso-bits: "0" +75-79 spi: miso-bits: "0" +71-75 spi: miso-bits: "0" +67-71 spi: miso-bits: "0" +95-99 spi: mosi-bits: "1" +91-95 spi: mosi-bits: "1" +87-91 spi: mosi-bits: "0" +83-87 spi: mosi-bits: "1" +79-83 spi: mosi-bits: "1" +75-79 spi: mosi-bits: "1" +71-75 spi: mosi-bits: "1" +67-71 spi: mosi-bits: "1" +67-99 spi: miso-data: "0D" +67-99 spi: mosi-data: "FB" +146-150 spi: miso-bits: "1" +142-146 spi: miso-bits: "0" +137-142 spi: miso-bits: "1" +133-137 spi: miso-bits: "1" +129-133 spi: miso-bits: "0" +125-129 spi: miso-bits: "0" +121-125 spi: miso-bits: "0" +117-121 spi: miso-bits: "0" +146-150 spi: mosi-bits: "0" +142-146 spi: mosi-bits: "0" +137-142 spi: mosi-bits: "0" +133-137 spi: mosi-bits: "0" +129-133 spi: mosi-bits: "0" +125-129 spi: mosi-bits: "0" +121-125 spi: mosi-bits: "0" +117-121 spi: mosi-bits: "0" +117-150 spi: miso-data: "0D" +117-150 spi: mosi-data: "00" +279-283 spi: miso-bits: "1" +275-279 spi: miso-bits: "0" +271-275 spi: miso-bits: "1" +267-271 spi: miso-bits: "1" +262-267 spi: miso-bits: "0" +258-262 spi: miso-bits: "0" +254-258 spi: miso-bits: "0" +250-254 spi: miso-bits: "0" +279-283 spi: mosi-bits: "1" +275-279 spi: mosi-bits: "1" +271-275 spi: mosi-bits: "1" +267-271 spi: mosi-bits: "1" +262-267 spi: mosi-bits: "1" +258-262 spi: mosi-bits: "1" +254-258 spi: mosi-bits: "0" +250-254 spi: mosi-bits: "1" +250-283 spi: miso-data: "0D" +250-283 spi: mosi-data: "BF" +329-333 spi: miso-bits: "0" +325-329 spi: miso-bits: "1" +321-325 spi: miso-bits: "0" +317-321 spi: miso-bits: "1" +313-317 spi: miso-bits: "0" +309-313 spi: miso-bits: "0" +305-309 spi: miso-bits: "0" +301-305 spi: miso-bits: "0" +329-333 spi: mosi-bits: "0" +325-329 spi: mosi-bits: "0" +321-325 spi: mosi-bits: "0" +317-321 spi: mosi-bits: "0" +313-317 spi: mosi-bits: "0" +309-313 spi: mosi-bits: "0" +305-309 spi: mosi-bits: "0" +301-305 spi: mosi-bits: "0" +301-333 spi: miso-data: "0A" +301-333 spi: mosi-data: "00" +430-434 spi: miso-bits: "0" +426-430 spi: miso-bits: "0" +422-426 spi: miso-bits: "1" +418-422 spi: miso-bits: "1" +414-418 spi: miso-bits: "0" +410-414 spi: miso-bits: "0" +406-410 spi: miso-bits: "0" +402-406 spi: miso-bits: "0" +430-434 spi: mosi-bits: "1" +426-430 spi: mosi-bits: "1" +422-426 spi: mosi-bits: "1" +418-422 spi: mosi-bits: "1" +414-418 spi: mosi-bits: "1" +410-414 spi: mosi-bits: "1" +406-410 spi: mosi-bits: "1" +402-406 spi: mosi-bits: "1" +402-434 spi: miso-data: "0C" +402-434 spi: mosi-data: "FF" +488-492 spi: miso-bits: "0" +484-488 spi: miso-bits: "0" +480-484 spi: miso-bits: "0" +476-480 spi: miso-bits: "0" +472-476 spi: miso-bits: "1" +468-472 spi: miso-bits: "1" +464-468 spi: miso-bits: "1" +460-464 spi: miso-bits: "0" +488-492 spi: mosi-bits: "0" +484-488 spi: mosi-bits: "0" +480-484 spi: mosi-bits: "0" +476-480 spi: mosi-bits: "0" +472-476 spi: mosi-bits: "0" +468-472 spi: mosi-bits: "0" +464-468 spi: mosi-bits: "0" +460-464 spi: mosi-bits: "0" +460-492 spi: miso-data: "70" +460-492 spi: mosi-data: "00" +551-555 spi: miso-bits: "0" +547-551 spi: miso-bits: "0" +543-547 spi: miso-bits: "1" +539-543 spi: miso-bits: "1" +535-539 spi: miso-bits: "0" +531-535 spi: miso-bits: "0" +526-531 spi: miso-bits: "1" +522-526 spi: miso-bits: "1" +551-555 spi: mosi-bits: "0" +547-551 spi: mosi-bits: "0" +543-547 spi: mosi-bits: "0" +539-543 spi: mosi-bits: "0" +535-539 spi: mosi-bits: "0" +531-535 spi: mosi-bits: "0" +526-531 spi: mosi-bits: "0" +522-526 spi: mosi-bits: "0" +522-555 spi: miso-data: "CC" +522-555 spi: mosi-data: "00" +613-617 spi: miso-bits: "0" +609-613 spi: miso-bits: "1" +605-609 spi: miso-bits: "0" +601-605 spi: miso-bits: "1" +597-601 spi: miso-bits: "0" +593-597 spi: miso-bits: "1" +589-593 spi: miso-bits: "0" +585-589 spi: miso-bits: "1" +613-617 spi: mosi-bits: "0" +609-613 spi: mosi-bits: "0" +605-609 spi: mosi-bits: "0" +601-605 spi: mosi-bits: "0" +597-601 spi: mosi-bits: "0" +593-597 spi: mosi-bits: "0" +589-593 spi: mosi-bits: "0" +585-589 spi: mosi-bits: "0" +585-617 spi: miso-data: "AA" +585-617 spi: mosi-data: "00" +676-680 spi: miso-bits: "0" +672-676 spi: miso-bits: "0" +668-672 spi: miso-bits: "0" +664-668 spi: miso-bits: "1" +660-664 spi: miso-bits: "1" +655-660 spi: miso-bits: "0" +651-655 spi: miso-bits: "0" +647-651 spi: miso-bits: "1" +676-680 spi: mosi-bits: "0" +672-676 spi: mosi-bits: "0" +668-672 spi: mosi-bits: "0" +664-668 spi: mosi-bits: "0" +660-664 spi: mosi-bits: "0" +655-660 spi: mosi-bits: "0" +651-655 spi: mosi-bits: "0" +647-651 spi: mosi-bits: "0" +647-680 spi: miso-data: "98" +647-680 spi: mosi-data: "00" +738-742 spi: miso-bits: "1" +734-738 spi: miso-bits: "0" +730-734 spi: miso-bits: "0" +726-730 spi: miso-bits: "0" +722-726 spi: miso-bits: "0" +718-722 spi: miso-bits: "0" +714-718 spi: miso-bits: "1" +710-714 spi: miso-bits: "0" +738-742 spi: mosi-bits: "0" +734-738 spi: mosi-bits: "0" +730-734 spi: mosi-bits: "0" +726-730 spi: mosi-bits: "0" +722-726 spi: mosi-bits: "0" +718-722 spi: mosi-bits: "0" +714-718 spi: mosi-bits: "0" +710-714 spi: mosi-bits: "0" +710-742 spi: miso-data: "41" +710-742 spi: mosi-data: "00" +801-805 spi: miso-bits: "0" +797-801 spi: miso-bits: "0" +793-797 spi: miso-bits: "0" +789-793 spi: miso-bits: "1" +784-789 spi: miso-bits: "1" +780-784 spi: miso-bits: "0" +776-780 spi: miso-bits: "0" +772-776 spi: miso-bits: "1" +801-805 spi: mosi-bits: "0" +797-801 spi: mosi-bits: "0" +793-797 spi: mosi-bits: "0" +789-793 spi: mosi-bits: "0" +784-789 spi: mosi-bits: "0" +780-784 spi: mosi-bits: "0" +776-780 spi: mosi-bits: "0" +772-776 spi: mosi-bits: "0" +772-805 spi: miso-data: "98" +772-805 spi: mosi-data: "00" +863-867 spi: miso-bits: "0" +859-863 spi: miso-bits: "1" +855-859 spi: miso-bits: "0" +851-855 spi: miso-bits: "0" +847-851 spi: miso-bits: "0" +843-847 spi: miso-bits: "1" +839-843 spi: miso-bits: "0" +835-839 spi: miso-bits: "0" +863-867 spi: mosi-bits: "0" +859-863 spi: mosi-bits: "0" +855-859 spi: mosi-bits: "0" +851-855 spi: mosi-bits: "0" +847-851 spi: mosi-bits: "0" +843-847 spi: mosi-bits: "0" +839-843 spi: mosi-bits: "0" +835-839 spi: mosi-bits: "0" +835-867 spi: miso-data: "22" +835-867 spi: mosi-data: "00" +926-930 spi: miso-bits: "0" +922-926 spi: miso-bits: "1" +918-922 spi: miso-bits: "0" +913-918 spi: miso-bits: "1" +909-913 spi: miso-bits: "1" +905-909 spi: miso-bits: "1" +901-905 spi: miso-bits: "0" +897-901 spi: miso-bits: "1" +926-930 spi: mosi-bits: "0" +922-926 spi: mosi-bits: "0" +918-922 spi: mosi-bits: "0" +913-918 spi: mosi-bits: "0" +909-913 spi: mosi-bits: "0" +905-909 spi: mosi-bits: "0" +901-905 spi: mosi-bits: "0" +897-901 spi: mosi-bits: "0" +897-930 spi: miso-data: "BA" +897-930 spi: mosi-data: "00" +988-992 spi: miso-bits: "1" +984-988 spi: miso-bits: "1" +980-984 spi: miso-bits: "1" +976-980 spi: miso-bits: "1" +972-976 spi: miso-bits: "1" +968-972 spi: miso-bits: "1" +964-968 spi: miso-bits: "0" +960-964 spi: miso-bits: "0" +988-992 spi: mosi-bits: "0" +984-988 spi: mosi-bits: "0" +980-984 spi: mosi-bits: "0" +976-980 spi: mosi-bits: "0" +972-976 spi: mosi-bits: "0" +968-972 spi: mosi-bits: "0" +964-968 spi: mosi-bits: "0" +960-964 spi: mosi-bits: "0" +960-992 spi: miso-data: "3F" +960-992 spi: mosi-data: "00" +1051-1055 spi: miso-bits: "0" +1047-1051 spi: miso-bits: "0" +1042-1047 spi: miso-bits: "0" +1038-1042 spi: miso-bits: "0" +1034-1038 spi: miso-bits: "0" +1030-1034 spi: miso-bits: "0" +1026-1030 spi: miso-bits: "0" +1022-1026 spi: miso-bits: "1" +1051-1055 spi: mosi-bits: "0" +1047-1051 spi: mosi-bits: "0" +1042-1047 spi: mosi-bits: "0" +1038-1042 spi: mosi-bits: "0" +1034-1038 spi: mosi-bits: "0" +1030-1034 spi: mosi-bits: "0" +1026-1030 spi: mosi-bits: "0" +1022-1026 spi: mosi-bits: "0" +1022-1055 spi: miso-data: "80" +1022-1055 spi: mosi-data: "00" +1147-1151 spi: miso-bits: "0" +1143-1147 spi: miso-bits: "1" +1139-1143 spi: miso-bits: "0" +1135-1139 spi: miso-bits: "0" +1131-1135 spi: miso-bits: "0" +1127-1131 spi: miso-bits: "0" +1123-1127 spi: miso-bits: "0" +1119-1123 spi: miso-bits: "0" +1147-1151 spi: mosi-bits: "1" +1143-1147 spi: mosi-bits: "1" +1139-1143 spi: mosi-bits: "1" +1135-1139 spi: mosi-bits: "1" +1131-1135 spi: mosi-bits: "1" +1127-1131 spi: mosi-bits: "1" +1123-1127 spi: mosi-bits: "1" +1119-1123 spi: mosi-bits: "1" +1119-1151 spi: miso-data: "02" +1119-1151 spi: mosi-data: "FF" +1206-1210 spi: miso-bits: "1" +1202-1206 spi: miso-bits: "0" +1198-1202 spi: miso-bits: "0" +1194-1198 spi: miso-bits: "1" +1190-1194 spi: miso-bits: "0" +1186-1190 spi: miso-bits: "1" +1182-1186 spi: miso-bits: "0" +1178-1182 spi: miso-bits: "0" +1206-1210 spi: mosi-bits: "0" +1202-1206 spi: mosi-bits: "0" +1198-1202 spi: mosi-bits: "0" +1194-1198 spi: mosi-bits: "0" +1190-1194 spi: mosi-bits: "0" +1186-1190 spi: mosi-bits: "0" +1182-1186 spi: mosi-bits: "0" +1178-1182 spi: mosi-bits: "0" +1178-1210 spi: miso-data: "29" +1178-1210 spi: mosi-data: "00" +1268-1272 spi: miso-bits: "0" +1264-1268 spi: miso-bits: "1" +1260-1264 spi: miso-bits: "1" +1256-1260 spi: miso-bits: "0" +1252-1256 spi: miso-bits: "0" +1248-1252 spi: miso-bits: "0" +1244-1248 spi: miso-bits: "0" +1240-1244 spi: miso-bits: "1" +1268-1272 spi: mosi-bits: "0" +1264-1268 spi: mosi-bits: "0" +1260-1264 spi: mosi-bits: "0" +1256-1260 spi: mosi-bits: "0" +1252-1256 spi: mosi-bits: "0" +1248-1252 spi: mosi-bits: "0" +1244-1248 spi: mosi-bits: "0" +1240-1244 spi: mosi-bits: "0" +1240-1272 spi: miso-data: "86" +1240-1272 spi: mosi-data: "00" +1361-1365 spi: miso-bits: "1" +1357-1361 spi: miso-bits: "1" +1353-1357 spi: miso-bits: "1" +1349-1353 spi: miso-bits: "1" +1345-1349 spi: miso-bits: "0" +1341-1345 spi: miso-bits: "0" +1337-1341 spi: miso-bits: "0" +1333-1337 spi: miso-bits: "0" +1361-1365 spi: mosi-bits: "0" +1357-1361 spi: mosi-bits: "1" +1353-1357 spi: mosi-bits: "0" +1349-1353 spi: mosi-bits: "1" +1345-1349 spi: mosi-bits: "1" +1341-1345 spi: mosi-bits: "1" +1337-1341 spi: mosi-bits: "0" +1333-1337 spi: mosi-bits: "0" +1333-1365 spi: miso-data: "0F" +1333-1365 spi: mosi-data: "3A" diff --git a/decoder/test/spi/cc1101-burst-read.python b/decoder/test/spi/cc1101-burst-read.python new file mode 100644 index 0000000..3abcd18 --- /dev/null +++ b/decoder/test/spi/cc1101-burst-read.python @@ -0,0 +1,55 @@ +0-0 spi: ['CS-CHANGE', None, 1] +18446744073709551615-0 spi: ['TRANSFER', [], []] +51-51 spi: ['CS-CHANGE', 1, 0] +67-99 spi: ['BITS', [[1, 95, 99], [1, 91, 95], [0, 87, 91], [1, 83, 87], [1, 79, 83], [1, 75, 79], [1, 71, 75], [1, 67, 71]], [[1, 95, 99], [0, 91, 95], [1, 87, 91], [1, 83, 87], [0, 79, 83], [0, 75, 79], [0, 71, 75], [0, 67, 71]]] +67-99 spi: ['DATA', 251, 13] +117-150 spi: ['BITS', [[0, 146, 150], [0, 142, 146], [0, 137, 142], [0, 133, 137], [0, 129, 133], [0, 125, 129], [0, 121, 125], [0, 117, 121]], [[1, 146, 150], [0, 142, 146], [1, 137, 142], [1, 133, 137], [0, 129, 133], [0, 125, 129], [0, 121, 125], [0, 117, 121]]] +117-150 spi: ['DATA', 0, 13] +168-168 spi: ['CS-CHANGE', 0, 1] +51-168 spi: ['TRANSFER', [Data(ss=67, es=99, val=251), Data(ss=117, es=150, val=0)], [Data(ss=67, es=99, val=13), Data(ss=117, es=150, val=13)]] +234-234 spi: ['CS-CHANGE', 1, 0] +250-283 spi: ['BITS', [[1, 279, 283], [1, 275, 279], [1, 271, 275], [1, 267, 271], [1, 262, 267], [1, 258, 262], [0, 254, 258], [1, 250, 254]], [[1, 279, 283], [0, 275, 279], [1, 271, 275], [1, 267, 271], [0, 262, 267], [0, 258, 262], [0, 254, 258], [0, 250, 254]]] +250-283 spi: ['DATA', 191, 13] +301-333 spi: ['BITS', [[0, 329, 333], [0, 325, 329], [0, 321, 325], [0, 317, 321], [0, 313, 317], [0, 309, 313], [0, 305, 309], [0, 301, 305]], [[0, 329, 333], [1, 325, 329], [0, 321, 325], [1, 317, 321], [0, 313, 317], [0, 309, 313], [0, 305, 309], [0, 301, 305]]] +301-333 spi: ['DATA', 0, 10] +351-351 spi: ['CS-CHANGE', 0, 1] +234-351 spi: ['TRANSFER', [Data(ss=250, es=283, val=191), Data(ss=301, es=333, val=0)], [Data(ss=250, es=283, val=13), Data(ss=301, es=333, val=10)]] +391-391 spi: ['CS-CHANGE', 1, 0] +402-434 spi: ['BITS', [[1, 430, 434], [1, 426, 430], [1, 422, 426], [1, 418, 422], [1, 414, 418], [1, 410, 414], [1, 406, 410], [1, 402, 406]], [[0, 430, 434], [0, 426, 430], [1, 422, 426], [1, 418, 422], [0, 414, 418], [0, 410, 414], [0, 406, 410], [0, 402, 406]]] +402-434 spi: ['DATA', 255, 12] +460-492 spi: ['BITS', [[0, 488, 492], [0, 484, 488], [0, 480, 484], [0, 476, 480], [0, 472, 476], [0, 468, 472], [0, 464, 468], [0, 460, 464]], [[0, 488, 492], [0, 484, 488], [0, 480, 484], [0, 476, 480], [1, 472, 476], [1, 468, 472], [1, 464, 468], [0, 460, 464]]] +460-492 spi: ['DATA', 0, 112] +522-555 spi: ['BITS', [[0, 551, 555], [0, 547, 551], [0, 543, 547], [0, 539, 543], [0, 535, 539], [0, 531, 535], [0, 526, 531], [0, 522, 526]], [[0, 551, 555], [0, 547, 551], [1, 543, 547], [1, 539, 543], [0, 535, 539], [0, 531, 535], [1, 526, 531], [1, 522, 526]]] +522-555 spi: ['DATA', 0, 204] +585-617 spi: ['BITS', [[0, 613, 617], [0, 609, 613], [0, 605, 609], [0, 601, 605], [0, 597, 601], [0, 593, 597], [0, 589, 593], [0, 585, 589]], [[0, 613, 617], [1, 609, 613], [0, 605, 609], [1, 601, 605], [0, 597, 601], [1, 593, 597], [0, 589, 593], [1, 585, 589]]] +585-617 spi: ['DATA', 0, 170] +647-680 spi: ['BITS', [[0, 676, 680], [0, 672, 676], [0, 668, 672], [0, 664, 668], [0, 660, 664], [0, 655, 660], [0, 651, 655], [0, 647, 651]], [[0, 676, 680], [0, 672, 676], [0, 668, 672], [1, 664, 668], [1, 660, 664], [0, 655, 660], [0, 651, 655], [1, 647, 651]]] +647-680 spi: ['DATA', 0, 152] +710-742 spi: ['BITS', [[0, 738, 742], [0, 734, 738], [0, 730, 734], [0, 726, 730], [0, 722, 726], [0, 718, 722], [0, 714, 718], [0, 710, 714]], [[1, 738, 742], [0, 734, 738], [0, 730, 734], [0, 726, 730], [0, 722, 726], [0, 718, 722], [1, 714, 718], [0, 710, 714]]] +710-742 spi: ['DATA', 0, 65] +772-805 spi: ['BITS', [[0, 801, 805], [0, 797, 801], [0, 793, 797], [0, 789, 793], [0, 784, 789], [0, 780, 784], [0, 776, 780], [0, 772, 776]], [[0, 801, 805], [0, 797, 801], [0, 793, 797], [1, 789, 793], [1, 784, 789], [0, 780, 784], [0, 776, 780], [1, 772, 776]]] +772-805 spi: ['DATA', 0, 152] +835-867 spi: ['BITS', [[0, 863, 867], [0, 859, 863], [0, 855, 859], [0, 851, 855], [0, 847, 851], [0, 843, 847], [0, 839, 843], [0, 835, 839]], [[0, 863, 867], [1, 859, 863], [0, 855, 859], [0, 851, 855], [0, 847, 851], [1, 843, 847], [0, 839, 843], [0, 835, 839]]] +835-867 spi: ['DATA', 0, 34] +897-930 spi: ['BITS', [[0, 926, 930], [0, 922, 926], [0, 918, 922], [0, 913, 918], [0, 909, 913], [0, 905, 909], [0, 901, 905], [0, 897, 901]], [[0, 926, 930], [1, 922, 926], [0, 918, 922], [1, 913, 918], [1, 909, 913], [1, 905, 909], [0, 901, 905], [1, 897, 901]]] +897-930 spi: ['DATA', 0, 186] +960-992 spi: ['BITS', [[0, 988, 992], [0, 984, 988], [0, 980, 984], [0, 976, 980], [0, 972, 976], [0, 968, 972], [0, 964, 968], [0, 960, 964]], [[1, 988, 992], [1, 984, 988], [1, 980, 984], [1, 976, 980], [1, 972, 976], [1, 968, 972], [0, 964, 968], [0, 960, 964]]] +960-992 spi: ['DATA', 0, 63] +1022-1055 spi: ['BITS', [[0, 1051, 1055], [0, 1047, 1051], [0, 1042, 1047], [0, 1038, 1042], [0, 1034, 1038], [0, 1030, 1034], [0, 1026, 1030], [0, 1022, 1026]], [[0, 1051, 1055], [0, 1047, 1051], [0, 1042, 1047], [0, 1038, 1042], [0, 1034, 1038], [0, 1030, 1034], [0, 1026, 1030], [1, 1022, 1026]]] +1022-1055 spi: ['DATA', 0, 128] +1081-1081 spi: ['CS-CHANGE', 0, 1] +391-1081 spi: ['TRANSFER', [Data(ss=402, es=434, val=255), Data(ss=460, es=492, val=0), Data(ss=522, es=555, val=0), Data(ss=585, es=617, val=0), Data(ss=647, es=680, val=0), Data(ss=710, es=742, val=0), Data(ss=772, es=805, val=0), Data(ss=835, es=867, val=0), Data(ss=897, es=930, val=0), Data(ss=960, es=992, val=0), Data(ss=1022, es=1055, val=0)], [Data(ss=402, es=434, val=12), Data(ss=460, es=492, val=112), Data(ss=522, es=555, val=204), Data(ss=585, es=617, val=170), Data(ss=647, es=680, val=152), Data(ss=710, es=742, val=65), Data(ss=772, es=805, val=152), Data(ss=835, es=867, val=34), Data(ss=897, es=930, val=186), Data(ss=960, es=992, val=63), Data(ss=1022, es=1055, val=128)]] +1109-1109 spi: ['CS-CHANGE', 1, 0] +1119-1151 spi: ['BITS', [[1, 1147, 1151], [1, 1143, 1147], [1, 1139, 1143], [1, 1135, 1139], [1, 1131, 1135], [1, 1127, 1131], [1, 1123, 1127], [1, 1119, 1123]], [[0, 1147, 1151], [1, 1143, 1147], [0, 1139, 1143], [0, 1135, 1139], [0, 1131, 1135], [0, 1127, 1131], [0, 1123, 1127], [0, 1119, 1123]]] +1119-1151 spi: ['DATA', 255, 2] +1178-1210 spi: ['BITS', [[0, 1206, 1210], [0, 1202, 1206], [0, 1198, 1202], [0, 1194, 1198], [0, 1190, 1194], [0, 1186, 1190], [0, 1182, 1186], [0, 1178, 1182]], [[1, 1206, 1210], [0, 1202, 1206], [0, 1198, 1202], [1, 1194, 1198], [0, 1190, 1194], [1, 1186, 1190], [0, 1182, 1186], [0, 1178, 1182]]] +1178-1210 spi: ['DATA', 0, 41] +1240-1272 spi: ['BITS', [[0, 1268, 1272], [0, 1264, 1268], [0, 1260, 1264], [0, 1256, 1260], [0, 1252, 1256], [0, 1248, 1252], [0, 1244, 1248], [0, 1240, 1244]], [[0, 1268, 1272], [1, 1264, 1268], [1, 1260, 1264], [0, 1256, 1260], [0, 1252, 1256], [0, 1248, 1252], [0, 1244, 1248], [1, 1240, 1244]]] +1240-1272 spi: ['DATA', 0, 134] +1299-1299 spi: ['CS-CHANGE', 0, 1] +1109-1299 spi: ['TRANSFER', [Data(ss=1119, es=1151, val=255), Data(ss=1178, es=1210, val=0), Data(ss=1240, es=1272, val=0)], [Data(ss=1119, es=1151, val=2), Data(ss=1178, es=1210, val=41), Data(ss=1240, es=1272, val=134)]] +1319-1319 spi: ['CS-CHANGE', 1, 0] +1333-1365 spi: ['BITS', [[0, 1361, 1365], [1, 1357, 1361], [0, 1353, 1357], [1, 1349, 1353], [1, 1345, 1349], [1, 1341, 1345], [0, 1337, 1341], [0, 1333, 1337]], [[1, 1361, 1365], [1, 1357, 1361], [1, 1353, 1357], [1, 1349, 1353], [0, 1345, 1349], [0, 1341, 1345], [0, 1337, 1341], [0, 1333, 1337]]] +1333-1365 spi: ['DATA', 58, 15] +1381-1381 spi: ['CS-CHANGE', 0, 1] +1319-1381 spi: ['TRANSFER', [Data(ss=1333, es=1365, val=58)], [Data(ss=1333, es=1365, val=15)]] diff --git a/decoder/test/spi/test.conf b/decoder/test/spi/test.conf index e604708..f720a45 100644 --- a/decoder/test/spi/test.conf +++ b/decoder/test/spi/test.conf @@ -75,6 +75,22 @@ test 152bit_spi output spi binary class miso match 152bit_spi.bin_miso output spi binary class mosi match 152bit_spi.bin_mosi +test cc1101-burst-read + protocol-decoder spi channel mosi=0 channel miso=2 channel clk=1 channel cs=5 + input spi/cc1101/cc1101-burst-read.sr + output spi annotation match cc1101-burst-read.output + output spi python match cc1101-burst-read.python + output spi binary class miso match cc1101-burst-read.bin_miso + output spi binary class mosi match cc1101-burst-read.bin_mosi + +test adf4351-set-4000mhz + protocol-decoder spi channel cs=0 channel mosi=1 channel clk=2 + input spi/adf4351/set-4000mhz.sr + output spi annotation match adf4351-set-4000mhz.output + output spi python match adf4351-set-4000mhz.python + output spi binary class miso match adf4351-set-4000mhz.bin_miso + output spi binary class mosi match adf4351-set-4000mhz.bin_mosi + test exception_channel protocol-decoder spi channel cs=1 channel clk=0 input spi/spi-count-msb.sr