From: Jens Steinhauser Date: Tue, 8 Jul 2014 15:48:56 +0000 (+0200) Subject: spi: Fix order of MISO/MOSI data items. X-Git-Tag: libsigrokdecode-0.4.0~210 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=34929ee00c976842196ca95240b6cb1a7f5d8c75 spi: Fix order of MISO/MOSI data items. --- diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 4e5627b..5c7df19 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -28,11 +28,11 @@ Packet: [, , ] : - - 'DATA': contains the MISO data, contains the MOSI data. + - 'DATA': contains the MOSI data, contains the MISO data. The data is _usually_ 8 bits (but can also be fewer or more bits). Both data items are Python numbers (not strings), or None if the respective channel was not supplied. - - 'BITS': / contain a list of bit values in this MISO/MOSI data + - 'BITS': / contain a list of bit values in this MOSI/MISO data item, and for each of those also their respective start-/endsample numbers. - 'CS CHANGE': is the old CS# pin value, is the new value. Both data items are Python numbers (0/1), not strings.