summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-06-12 20:38:08 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-06-12 20:40:39 +0200
commit71077f34ffbd7d4015886a229edb2f2f827cb442 (patch)
tree010a5984f412f6ab76929ae8dcfc242aa8900b4f
parent74244cdae2309d444034fc7647171afab9dddf75 (diff)
downloadlibsigrokdecode-71077f34ffbd7d4015886a229edb2f2f827cb442.tar.gz
libsigrokdecode-71077f34ffbd7d4015886a229edb2f2f827cb442.zip
srd: Cosmetics.
-rw-r--r--decoders/edid/__init__.py4
-rw-r--r--decoders/i2c/__init__.py18
-rw-r--r--decoders/jtag/__init__.py20
-rw-r--r--decoders/spi/__init__.py3
-rw-r--r--decoders/uart/__init__.py2
-rw-r--r--decoders/usb/__init__.py3
6 files changed, 27 insertions, 23 deletions
diff --git a/decoders/edid/__init__.py b/decoders/edid/__init__.py
index 9932a81..0987d17 100644
--- a/decoders/edid/__init__.py
+++ b/decoders/edid/__init__.py
@@ -25,7 +25,7 @@ The three-character vendor ID as specified in the EDID standard refers to
a Plug and Play ID (PNPID). The list of PNPID assignments is done by Microsoft.
More information is available on this page:
- http://msdn.microsoft.com/en-us/windows/hardware/gg463195
+ http://msdn.microsoft.com/en-us/windows/hardware/gg463195
The 'pnpids.txt' file included with this protocol decoder is derived from
the list of assignments downloadable from that page. It was retrieved in
@@ -33,7 +33,7 @@ January 2012.
More information on EDID is available here:
- https://en.wikipedia.org/wiki/Extended_display_identification_data
+ https://en.wikipedia.org/wiki/Extended_display_identification_data
'''
from .edid import *
diff --git a/decoders/i2c/__init__.py b/decoders/i2c/__init__.py
index 5216e01..14262d1 100644
--- a/decoders/i2c/__init__.py
+++ b/decoders/i2c/__init__.py
@@ -62,15 +62,15 @@ I2C packet:
[<cmd>, <data>]
<cmd> is one of:
- - 'START' (START condition)
- - 'START REPEAT' (Repeated START condition)
- - 'ADDRESS READ' (Slave address, read)
- - 'ADDRESS WRITE' (Slave address, write)
- - 'DATA READ' (Data, read)
- - 'DATA WRITE' (Data, write)
- - 'STOP' (STOP condition)
- - 'ACK' (ACK bit)
- - 'NACK' (NACK bit)
+ - 'START' (START condition)
+ - 'START REPEAT' (Repeated START condition)
+ - 'ADDRESS READ' (Slave address, read)
+ - 'ADDRESS WRITE' (Slave address, write)
+ - 'DATA READ' (Data, read)
+ - 'DATA WRITE' (Data, write)
+ - 'STOP' (STOP condition)
+ - 'ACK' (ACK bit)
+ - 'NACK' (NACK bit)
<data> is the data or address byte associated with the 'ADDRESS*' and 'DATA*'
command. Slave addresses do not include bit 0 (the READ/WRITE indication bit).
diff --git a/decoders/jtag/__init__.py b/decoders/jtag/__init__.py
index 79fc6c1..4a53502 100644
--- a/decoders/jtag/__init__.py
+++ b/decoders/jtag/__init__.py
@@ -33,16 +33,16 @@ JTAG packet:
[<packet-type>, <data>]
<packet-type> is one of:
- - 'NEW STATE': <data> is the new state of the JTAG state machine.
- Valid values: 'TEST-LOGIC-RESET', 'RUN-TEST/IDLE', 'SELECT-DR-SCAN',
- 'CAPTURE-DR', 'SHIFT-DR', 'EXIT1-DR', 'PAUSE-DR', 'EXIT2-DR', 'UPDATE-DR',
- 'SELECT-IR-SCAN', 'CAPTURE-IR', 'SHIFT-IR', 'EXIT1-IR', 'PAUSE-IR',
- 'EXIT2-IR', 'UPDATE-IR'.
- - 'IR TDI': Bitstring that was clocked into the IR register.
- - 'IR TDO': Bitstring that was clocked out of the IR register.
- - 'DR TDI': Bitstring that was clocked into the DR register.
- - 'DR TDO': Bitstring that was clocked out of the DR register.
- - ...
+ - 'NEW STATE': <data> is the new state of the JTAG state machine.
+ Valid values: 'TEST-LOGIC-RESET', 'RUN-TEST/IDLE', 'SELECT-DR-SCAN',
+ 'CAPTURE-DR', 'SHIFT-DR', 'EXIT1-DR', 'PAUSE-DR', 'EXIT2-DR', 'UPDATE-DR',
+ 'SELECT-IR-SCAN', 'CAPTURE-IR', 'SHIFT-IR', 'EXIT1-IR', 'PAUSE-IR',
+ 'EXIT2-IR', 'UPDATE-IR'.
+ - 'IR TDI': Bitstring that was clocked into the IR register.
+ - 'IR TDO': Bitstring that was clocked out of the IR register.
+ - 'DR TDI': Bitstring that was clocked into the DR register.
+ - 'DR TDO': Bitstring that was clocked out of the DR register.
+ - ...
All bitstrings are a sequence of '1' and '0' characters. The right-most
character in the bitstring is the LSB. Example: '01110001' (1 is LSB).
diff --git a/decoders/spi/__init__.py b/decoders/spi/__init__.py
index 8734acf..fedcc5f 100644
--- a/decoders/spi/__init__.py
+++ b/decoders/spi/__init__.py
@@ -36,11 +36,12 @@ Commands:
- 'CS CHANGE': <data1> is the old CS# pin value, <data2> is the new value.
Both data items are Python numbers (0/1), not strings.
-Example:
+Examples:
['CS-CHANGE', 1, 0]
['DATA', 0xff, 0x3a]
['DATA', 0x65, 0x00]
['CS-CHANGE', 0, 1]
+
'''
from .spi import *
diff --git a/decoders/uart/__init__.py b/decoders/uart/__init__.py
index d41a964..ecba2e1 100644
--- a/decoders/uart/__init__.py
+++ b/decoders/uart/__init__.py
@@ -96,7 +96,7 @@ Protocol output format:
UART packet:
[<packet-type>, <rxtx>, <packet-data>]
-This is the list of <packet-types>s and their respective <packet-data>:
+This is the list of <packet-type>s and their respective <packet-data>:
- 'STARTBIT': The data is the (integer) value of the start bit (0/1).
- 'DATA': The data is the (integer) value of the UART data. Valid values
range from 0 to 512 (as the data can be up to 9 bits in size).
diff --git a/decoders/usb/__init__.py b/decoders/usb/__init__.py
index 77b58d1..a7204db 100644
--- a/decoders/usb/__init__.py
+++ b/decoders/usb/__init__.py
@@ -35,6 +35,9 @@ transition. This is known as bit stuffing. Data is transferred at a rate
of 12Mbit/s. The SE0 transmitted to signal an end-of-packet is two bit
intervals long.
+Protocol output format:
+TODO
+
Details:
https://en.wikipedia.org/wiki/USB
http://www.usb.org/developers/docs/