summaryrefslogtreecommitdiff
path: root/decoders/parallel
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-01-30 22:37:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-01-30 22:42:24 +0100
commitc515eed7ef7a04a42b5b34abd308e08d6942835e (patch)
tree90d12109e96a091898a1d2961f8abc685d6fd06c /decoders/parallel
parent4467372a2e39bb72648eebbb96934147681110c2 (diff)
downloadlibsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.tar.gz
libsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.zip
s/out_proto/out_python/.
The output type is now called OUTPUT_PYTHON, adapt all PDs to that.
Diffstat (limited to 'decoders/parallel')
-rw-r--r--decoders/parallel/pd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py
index 540ab24..b2903d2 100644
--- a/decoders/parallel/pd.py
+++ b/decoders/parallel/pd.py
@@ -21,7 +21,7 @@
import sigrokdecode as srd
'''
-Protocol output format:
+OUTPUT_PYTHON format:
Packet:
[<ptype>, <pdata>]
@@ -95,17 +95,17 @@ class Decoder(srd.Decoder):
self.state = 'IDLE'
def start(self):
- self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_python = self.register(srd.OUTPUT_PYTHON)
self.out_ann = self.register(srd.OUTPUT_ANN)
def putpb(self, data):
- self.put(self.ss_item, self.es_item, self.out_proto, data)
+ self.put(self.ss_item, self.es_item, self.out_python, data)
def putb(self, data):
self.put(self.ss_item, self.es_item, self.out_ann, data)
def putpw(self, data):
- self.put(self.ss_word, self.es_word, self.out_proto, data)
+ self.put(self.ss_word, self.es_word, self.out_python, data)
def putw(self, data):
self.put(self.ss_word, self.es_word, self.out_ann, data)
@@ -142,7 +142,7 @@ class Decoder(srd.Decoder):
if self.itemcount < ws:
return
- # Output annotations/proto for a word (a collection of items).
+ # Output annotations/python for a word (a collection of items).
word = 0
for i in range(ws):
if endian == 'little':