]> sigrok.org Git - libsigrokdecode.git/commitdiff
mdio: Add 'TURNAROUND' long/full annotation.
authorUwe Hermann <redacted>
Wed, 4 May 2016 01:42:24 +0000 (03:42 +0200)
committerUwe Hermann <redacted>
Wed, 4 May 2016 01:43:32 +0000 (03:43 +0200)
(useful in GUIs for displaying more useful annotations at certain
zoom levels)

decoders/mdio/pd.py

index 2900444fe923a1b401e2b01c60e5fd5fcea87016..873079ab879eeb86508bc4f43b5672bc9250edd0 100644 (file)
@@ -273,9 +273,10 @@ class Decoder(srd.Decoder):
     def state_DATA(self, mdio):
         if self.data == -1:
             self.data = 0
-            self.putff([2, ['TA', 'T']])
+            self.putff([2, ['TURNAROUND', 'TA', 'T']])
             if self.ta_invalid:
-                self.putff([4, ['TA%s' % self.ta_invalid, 'TA', 'T']])
+                self.putff([4, ['TURNAROUND%s' % self.ta_invalid,
+                                'TA%s' % self.ta_invalid, 'TA', 'T']])
             self.ss_frame_field = self.samplenum
         self.data_bits -= 1
         self.data |= mdio << self.data_bits