summaryrefslogtreecommitdiff
path: root/decoders/sdcard_spi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-02-02 14:24:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-02-09 19:38:15 +0100
commit86f685145345cabef1373a1242016b769ff199b4 (patch)
tree4592c4a99b5ffe6ef2663b5d18f7fa0159e3cfdc /decoders/sdcard_spi
parent361c1e76a85bb14dce7b9f3e97deb9fe09416a7b (diff)
downloadlibsigrokdecode-86f685145345cabef1373a1242016b769ff199b4.tar.gz
libsigrokdecode-86f685145345cabef1373a1242016b769ff199b4.zip
sdcard_spi: Define annotation rows.
This fixes parts of bug #309.
Diffstat (limited to 'decoders/sdcard_spi')
-rw-r--r--decoders/sdcard_spi/pd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py
index 122e9ea..cf2f487 100644
--- a/decoders/sdcard_spi/pd.py
+++ b/decoders/sdcard_spi/pd.py
@@ -96,6 +96,12 @@ class Decoder(srd.Decoder):
['r7', 'R7 reply'],
['bits', 'Bits'],
]
+ annotation_rows = (
+ ('bits', 'Bits', (70,)),
+ ('cmd-reply', 'Commands/replies',
+ tuple(range(0, 63 + 1)) + tuple(range(65, 69 + 1))),
+ ('cmd-token', 'Command tokens', (64,)),
+ )
def __init__(self, **kwargs):
self.state = 'IDLE'