From: Uwe Hermann Date: Tue, 15 Apr 2014 06:43:22 +0000 (+0200) Subject: All PDs: More consistent OUTPUT_PYTHON format docs. X-Git-Tag: libsigrokdecode-0.3.0~26 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bf69977d12886794ac597083403859ac99ab38ac;p=libsigrokdecode.git All PDs: More consistent OUTPUT_PYTHON format docs. --- diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index a8a2226..2d6e5c2 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -28,10 +28,10 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -I²C packet: -[, ] +Packet: +[, ] - is one of: +: - 'START' (START condition) - 'START REPEAT' (Repeated START condition) - 'ADDRESS READ' (Slave address, read) @@ -41,12 +41,12 @@ I²C packet: - 'STOP' (STOP condition) - 'ACK' (ACK bit) - 'NACK' (NACK bit) - - 'BITS' (: list of data/address bits and their ss/es numbers) + - 'BITS' (: list of data/address bits and their ss/es numbers) - is the data or address byte associated with the 'ADDRESS*' and '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). For example, a slave address field could be 0x51 (instead of 0xa2). -For 'START', 'START REPEAT', 'STOP', 'ACK', and 'NACK' is None. +For 'START', 'START REPEAT', 'STOP', 'ACK', and 'NACK' is None. ''' # CMD: [annotation-type-index, long annotation, short annotation] diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index 95e5d28..25f2634 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -23,11 +23,11 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -JTAG packet: -[, ] +Packet: +[, ] - is one of: - - 'NEW STATE': is the new state of the JTAG state machine. +: + - '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', diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 7250dbd..5bab8f7 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -24,10 +24,10 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -SPI packet: -[, , ] +Packet: +[, , ] -Commands: +: - 'DATA': contains the MISO data, 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 diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index a0b1326..ae99874 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -23,10 +23,10 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -UART packet: -[, , ] +Packet: +[, , ] -This is the list of s and their respective : +This is the list of s and their respective values: - '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).