summaryrefslogtreecommitdiff
path: root/decoders/spi
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/spi
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/spi')
-rw-r--r--decoders/spi/pd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py
index a7830cd..7761f31 100644
--- a/decoders/spi/pd.py
+++ b/decoders/spi/pd.py
@@ -22,7 +22,7 @@
import sigrokdecode as srd
'''
-Protocol output format:
+OUTPUT_PYTHON format:
SPI packet:
[<cmd>, <data1>, <data2>]
@@ -108,13 +108,13 @@ class Decoder(srd.Decoder):
self.samplerate = value
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)
self.out_bitrate = self.register(srd.OUTPUT_META,
meta=(int, 'Bitrate', 'Bitrate during transfers'))
def putpw(self, data):
- self.put(self.startsample, self.samplenum, self.out_proto, data)
+ self.put(self.startsample, self.samplenum, self.out_python, data)
def putw(self, data):
self.put(self.startsample, self.samplenum, self.out_ann, data)
@@ -179,7 +179,7 @@ class Decoder(srd.Decoder):
def find_clk_edge(self, miso, mosi, clk, cs):
if self.have_cs and self.oldcs != cs:
# Send all CS# pin value changes.
- self.put(self.samplenum, self.samplenum, self.out_proto,
+ self.put(self.samplenum, self.samplenum, self.out_python,
['CS-CHANGE', self.oldcs, cs])
self.oldcs = cs
# Reset decoder state when CS# changes (and the CS# pin is used).