summaryrefslogtreecommitdiff
path: root/decoders/mx25lxx05d/mx25lxx05d.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-05-16 22:48:47 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-05-17 00:07:27 +0200
commit3e3c03309ee21d839f85e981d361ca77b08d5ba0 (patch)
tree63dbbb3ac20d9e120a9b4dec1c03aa3e9f14bf29 /decoders/mx25lxx05d/mx25lxx05d.py
parentbdd820e3c0c2681b171fc7cc0198244f40a64b34 (diff)
downloadlibsigrokdecode-3e3c03309ee21d839f85e981d361ca77b08d5ba0.tar.gz
libsigrokdecode-3e3c03309ee21d839f85e981d361ca77b08d5ba0.zip
srd: spi: Document output protocol, send CS# changes.
As per guidelines in HACKING, the protocol "commands"/items should be ALLCAPS, thus change 'data' to 'DATA'. Also, fix MX25Lxx05D protocol decoder accordingly, currently the only one we have which stacks on top of SPI. Add a new 'CS-CHANGE' output protocol item, which is sent upon every change of the CS# pin value (either 0->1, or vice versa). This is needed by various higher-level PDs.
Diffstat (limited to 'decoders/mx25lxx05d/mx25lxx05d.py')
-rw-r--r--decoders/mx25lxx05d/mx25lxx05d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/mx25lxx05d/mx25lxx05d.py b/decoders/mx25lxx05d/mx25lxx05d.py
index f7c8476..eb0e798 100644
--- a/decoders/mx25lxx05d/mx25lxx05d.py
+++ b/decoders/mx25lxx05d/mx25lxx05d.py
@@ -232,7 +232,7 @@ class Decoder(srd.Decoder):
ptype, mosi, miso = data
- if ptype != 'data':
+ if ptype != 'DATA':
return
cmd = mosi