From: Uwe Hermann Date: Tue, 12 Jun 2012 18:38:08 +0000 (+0200) Subject: srd: Cosmetics. X-Git-Tag: libsigrokdecode-0.1.1~85 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=71077f34ffbd7d4015886a229edb2f2f827cb442;p=libsigrokdecode.git srd: Cosmetics. --- 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: [, ] 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) 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: [, ] is one of: - - 'NEW STATE': 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': 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': is the old CS# pin value, 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: [, , ] -This is the list of s and their respective : +This is the list of s and their respective : - '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/