]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spi/pd.py
All PDs: More consistent OUTPUT_PYTHON format docs.
[libsigrokdecode.git] / decoders / spi / pd.py
index 7250dbd518eedec23f2c4afd52879c4f3dba74df..5bab8f75f16c4d305e08b4937deb57b1be44791f 100644 (file)
@@ -24,10 +24,10 @@ import sigrokdecode as srd
 '''
 OUTPUT_PYTHON format:
 
 '''
 OUTPUT_PYTHON format:
 
-SPI packet:
-[<cmd>, <data1>, <data2>]
+Packet:
+[<ptype>, <data1>, <data2>]
 
 
-Commands:
+<ptype>:
  - 'DATA': <data1> contains the MISO data, <data2> contains the MOSI 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
  - 'DATA': <data1> contains the MISO data, <data2> contains the MOSI 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