From 3e3c03309ee21d839f85e981d361ca77b08d5ba0 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 16 May 2012 22:48:47 +0200 Subject: 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. --- decoders/mx25lxx05d/mx25lxx05d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/mx25lxx05d') 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 -- cgit v1.2.3-70-g09d2