]> sigrok.org Git - libsigrokdecode.git/commitdiff
xfp: Add annotation rows.
authorUwe Hermann <redacted>
Tue, 31 Dec 2019 23:18:09 +0000 (00:18 +0100)
committerUwe Hermann <redacted>
Wed, 1 Jan 2020 01:00:33 +0000 (02:00 +0100)
decoders/xfp/pd.py

index e217d7d1e4b9d827bbe945eee8a3c4326d340f32..86f1e9d1ef192cb0df6fc4d42021a0d139d30c39 100644 (file)
@@ -36,6 +36,10 @@ class Decoder(srd.Decoder):
         ('field-name-and-val', 'Field name and value'),
         ('field-val', 'Field value'),
     )
+    annotation_rows = (
+        ('field-names-and-vals', 'Field names and values', (0,)),
+        ('field-vals', 'Field values', (1,)),
+    )
 
     def __init__(self):
         self.reset()