]> sigrok.org Git - libsigrokdecode.git/commitdiff
onewire_link: Define annotation rows.
authorUwe Hermann <redacted>
Sat, 1 Feb 2014 14:25:53 +0000 (15:25 +0100)
committerUwe Hermann <redacted>
Sat, 1 Feb 2014 14:59:13 +0000 (15:59 +0100)
decoders/onewire_link/pd.py

index c27abc6b0225d38f319921f3e10f9f40482ecb32..51eebe84af9e749de87daa95119b136442f5c9dc 100644 (file)
@@ -55,6 +55,11 @@ class Decoder(srd.Decoder):
         ['presence', 'Presence'],
         ['overdrive', 'Overdrive mode notifications'],
     ]
+    annotation_rows = (
+        ('bits', 'Bits', (0, 2, 3)),
+        ('info', 'Info', (4,)),
+        ('warnings', 'Warnings', (1,)),
+    )
 
     def putm(self, data):
         self.put(0, 0, self.out_ann, data)