summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2016-05-04 03:42:24 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-05-04 03:43:32 +0200
commit30d775b095a4b76e5fa755b19d5521affa3c053c (patch)
treeae27f449d96de58cd7547d4d6b6f6cd36db0fa91
parent2452e2a32baaf818a92318165ca0bfeb7d75715b (diff)
downloadlibsigrokdecode-30d775b095a4b76e5fa755b19d5521affa3c053c.tar.gz
libsigrokdecode-30d775b095a4b76e5fa755b19d5521affa3c053c.zip
mdio: Add 'TURNAROUND' long/full annotation.
(useful in GUIs for displaying more useful annotations at certain zoom levels)
-rw-r--r--decoders/mdio/pd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/decoders/mdio/pd.py b/decoders/mdio/pd.py
index 2900444..873079a 100644
--- a/decoders/mdio/pd.py
+++ b/decoders/mdio/pd.py
@@ -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