]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/parallel/pd.py
parallel: increase number of data lines to 16
[libsigrokdecode.git] / decoders / parallel / pd.py
index b4dbdb3dbc1fd53a8c5365c1c2a31f2e085ae08a..5acfb67c05ecb669466185ec3cbaeda98e56fff7 100644 (file)
@@ -54,7 +54,7 @@ Packet:
    word <worditemcount> is 7, and so on.
 '''
 
-NUM_CHANNELS = 8
+NUM_CHANNELS = 16
 
 class Pin:
     CLOCK = 0
@@ -140,8 +140,7 @@ class Decoder(srd.Decoder):
 
         txts = [self.fmt_word.format(word)]
         self.putg(ss, es, Ann.WORD, txts)
-        self.putpy(ss, es, 'WORD', word)
-        # self.putpy(ss, es, 'WORD', (word, bus_width, word_size))
+        self.putpy(ss, es, 'WORD', (word, bus_width, word_size))
 
         if len(items) != word_size:
             txts = ['incomplete word size', 'word size', 'ws']
@@ -177,8 +176,7 @@ class Decoder(srd.Decoder):
             es = now
             txts = [self.fmt_item.format(data)]
             self.putg(ss, es, Ann.ITEM, txts)
-            self.putpy(ss, es, 'ITEM', data)
-            # self.putpy(ss, es, 'ITEM', (data, bus_width))
+            self.putpy(ss, es, 'ITEM', (data, bus_width))
 
         # Optionally queue the currently seen item.
         if item is not None: