]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spi/pd.py
spi: Define annotation rows.
[libsigrokdecode.git] / 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