diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:37:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:42:24 +0100 |
commit | c515eed7ef7a04a42b5b34abd308e08d6942835e (patch) | |
tree | 90d12109e96a091898a1d2961f8abc685d6fd06c /decoders/usb_signalling | |
parent | 4467372a2e39bb72648eebbb96934147681110c2 (diff) | |
download | libsigrokdecode-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/usb_signalling')
-rw-r--r-- | decoders/usb_signalling/pd.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index fbc390a..35ffce6 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -22,7 +22,7 @@ import sigrokdecode as srd ''' -Protocol output format: +OUTPUT_PYTHON format: Packet: [<ptype>, <pdata>] @@ -107,7 +107,7 @@ 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 metadata(self, key, value): @@ -118,14 +118,14 @@ class Decoder(srd.Decoder): self.halfbit = int(self.bitwidth / 2) def putpx(self, data): - self.put(self.samplenum, self.samplenum, self.out_proto, data) + self.put(self.samplenum, self.samplenum, self.out_python, data) def putx(self, data): self.put(self.samplenum, self.samplenum, self.out_ann, data) def putpm(self, data): s, h = self.samplenum, self.halfbit - self.put(self.ss_block - h, s + h, self.out_proto, data) + self.put(self.ss_block - h, s + h, self.out_python, data) def putm(self, data): s, h = self.samplenum, self.halfbit @@ -133,7 +133,7 @@ class Decoder(srd.Decoder): def putpb(self, data): s, h = self.samplenum, self.halfbit - self.put(s - h, s + h, self.out_proto, data) + self.put(s - h, s + h, self.out_python, data) def putb(self, data): s, h = self.samplenum, self.halfbit |