]> sigrok.org Git - libsigrokdecode.git/commitdiff
spi: Define annotation rows.
authorUwe Hermann <redacted>
Fri, 31 Jan 2014 13:56:14 +0000 (14:56 +0100)
committerUwe Hermann <redacted>
Fri, 31 Jan 2014 16:04:13 +0000 (17:04 +0100)
decoders/spi/pd.py

index 7761f31de946e7a95106169034dfdef0dc421265..03a45da3b088575b473e27b4f751c1b1ba6588b7 100644 (file)
@@ -86,6 +86,11 @@ class Decoder(srd.Decoder):
         ['mosi-data', 'MOSI SPI data'],
         ['warnings', 'Human-readable warnings'],
     ]
+    annotation_rows = (
+        ('miso', 'MISO', (0,)),
+        ('mosi', 'MOSI', (1,)),
+        ('other', 'Other', (2,)),
+    )
 
     def __init__(self):
         self.samplerate = None