From: Uwe Hermann Date: Sun, 2 Feb 2014 13:24:29 +0000 (+0100) Subject: sdcard_spi: Define annotation rows. X-Git-Tag: libsigrokdecode-0.3.0~115 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=86f685145345cabef1373a1242016b769ff199b4;p=libsigrokdecode.git sdcard_spi: Define annotation rows. This fixes parts of bug #309. --- 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'