summaryrefslogtreecommitdiff
path: root/decoders/spi.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-10 21:10:23 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-10 21:10:23 +0100
commit677d597b072c0a1d2df81c5c193cd3678aef8d03 (patch)
treecdb4f1faab0a22bd0c207d5ba97ea63f40f3fbc4 /decoders/spi.py
parente97b6ef569f73e387b2597dfa144c01838c0e27c (diff)
downloadlibsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.tar.gz
libsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.zip
srd: Use 'import sigrokdecode as srd' for brevity.
Diffstat (limited to 'decoders/spi.py')
-rw-r--r--decoders/spi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/spi.py b/decoders/spi.py
index a866767..5529025 100644
--- a/decoders/spi.py
+++ b/decoders/spi.py
@@ -18,9 +18,9 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-import sigrokdecode
+import sigrokdecode as srd
-class Decoder(sigrokdecode.Decoder):
+class Decoder(srd.Decoder):
id = 'spi'
name = 'SPI'
desc = '...desc...'
@@ -46,8 +46,8 @@ class Decoder(sigrokdecode.Decoder):
self.out_ann = None
def start(self, metadata):
- # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTO, 'spi')
- self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'spi')
+ # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'spi')
+ self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'spi')
def report(self):
return 'SPI: %d bytes received' % self.bytesreceived