summaryrefslogtreecommitdiff
path: root/decoders
AgeCommit message (Collapse)Author
2020-01-10sdcard_spi: Use ternary operator where possible.Uwe Hermann
2020-01-10sdcard_spi: Use SrdIntEnum for annotation classes.Uwe Hermann
This also fixes incorrect annotation classes for bit, bit warning, and R1. Also, auto-generate some more parts of the annotation class listing.
2020-01-10ds1307: Use SrdIntEnum for annotation classes.Uwe Hermann
2020-01-10ds1307: Consistently use _ instead of - for various IDs.Uwe Hermann
2020-01-10cc1101: Use SrdIntEnum for annotation classes.Uwe Hermann
2020-01-10amulet_ascii: Use SrdIntEnum for annotation classes.Uwe Hermann
Also, automate construction of the Ann SrdIntEnum. This avoids having to remember to manually keep two lists in sync.
2020-01-10srdhelper: Add SrdIntEnum with various helper methods.Uwe Hermann
2020-01-09cjtag: Drop no longer needed _real variable name suffix.Uwe Hermann
2020-01-09cjtag: Give each cJTAG state its own annotation class.Uwe Hermann
2020-01-09cjtag: Use correct TCKC/TMSC channel names.Uwe Hermann
2020-01-09cjtag: Drop some unused method arguments.Uwe Hermann
2020-01-09cjtag: Drop non-existing channels from the decoder.Uwe Hermann
cJTAG only has two wires/channels.
2020-01-09cjtag: Use ternary operator where possible.Uwe Hermann
2020-01-09cjtag: Use += operator where possible.Uwe Hermann
2020-01-09cjtag: Drop various unneeded parenthesis.Uwe Hermann
2020-01-09cjtag: Use plural for annotation row IDs/names.Uwe Hermann
2020-01-09cjtag: Add cJTAG OSCAN1 decoder.Kongou Hikari
[Note: This is a commit from Kongou Hikari ("diodep" on GitHub) that was "rebased" by Uwe Hermann on top of the current libsigrokdecode mainline JTAG decoder. There are various reasons for this, including avoiding non-mainline or outdated decoder changes, as well as making it easily visible what the changes vs. the current JTAG decoder are, in case we later need to apply some changes to both decoders or in case both decoders might be merged later on. Minor cosmetic and naming changes were also squashed in (no functional changes, though).]
2020-01-08cjtag: Use an exact copy of the jtag PD as basis for cjtag.Uwe Hermann
2020-01-05spiflash: Don't use ambiguous annotation class names.Uwe Hermann
This is not technically a bug since (at least some) datasheets refer to this command as "Chip erase", it just happens to have two different command codes (0x60 and 0xc7). In order to not confuse users with two annotation classes with the same name, we'll call the second one "Chip erase 2" to match the "CE2" short name. This fixes bug #1482.
2020-01-05dmx512: stack DMX512 on top of UART and improve usabilityGerhard Sittig
It was unfortunate that the previous DMX512 decoder implementation re-invented UART decoder features and introduced new issues in the process. Automatic polarity detection is just impossible when the full set of valid DMX timings is to get supported. Sample numbers suffered from floating point rounding errors. Introduce a stacked decoder on top of UART which exclusively deals with DMX512 details, and transparently benefits from all available UART features (adjustable polarity, robust and correct sampling, data byte accumulation, BREAK detection while silencing false STOP violations). On one hand this requires users to specify the bitrate (250kbps), on the other hand it results in reliable operation for all captures that have become available so far. Provide Python output for stacked decoders which can process protocol extensions like RDM. Prepare the DMX512 decoder itself to handle simple cases of protocol extensions (start codes other than 0). Add support for additional constraint checks, emit warnings when user specified limits are violated: short BREAK, long MARK, long RESET to RESET and short BREAK to BREAK intervals. This shall speedup the identification of bus health issues (data loss or corruption) or improper controller timing. Also hide all-zero values by default, to make used channels visually stand out, and help users focus their attention. For special cases (like 16bit data, or zero being a valid set-point for the channels) users can enforce the display of all values. Provide an option to present byte values to users in the most appropriate format for the use case. This resolves bug #1442.
2020-01-05dmx512: remove previous implementation before replacing itGerhard Sittig
The existing DMX512 decoder implementation duplicates UART specific knowledge, and implements some of the redundant logic in ways which fail to interpret correct input data. See bug #1442 for details. This commit removes the previous decoder implementation before adding a more recent version, to gain a more readable history across that decoder replacement.
2020-01-04ps2: end data byte at rising clock edge of the stop bitGerhard Sittig
Data byte transmission is complete when the STOP bit was communicated. End the STOP bit at the rising CLOCK edge of the 11th bit time, do not rely on the host's clock inhibit after data transmission. This avoids the unexpected expansion of a STOP bit well into the next data byte. This fixes bug #1460, where absence of host activity after the first data byte loses synchronization to the input stream. Rephrase pin level sampling while we are here. Reflect that the clock line is used for .wait() conditions, but its level is not evaluated. Only data line levels get processed. Comment on the implementation's assumption of specific input data (the device as transmitter, host transmit may not be supported, or can result in unexpected output). Which may be acceptable yet maintainers need to remain aware.
2020-01-02flexray: fix annotation for 'frame end sequence'Stephan Thiele
2020-01-01amulet_ascii: Minor consistency fix.Uwe Hermann
2020-01-01xfp: Add annotation rows.Uwe Hermann
2020-01-01modbus: Add missing annotation class names.Uwe Hermann
2020-01-01mlx90614: Add annotation rows.Uwe Hermann
Previously there were two different annotation classes with 100% overlap.
2020-01-01cc1101: Add missing annotation class.Uwe Hermann
This was causing incorrect annotation class indices to be used.
2020-01-01All PDs: Consistently use singular/plural for annotation classes/rows.Uwe Hermann
2019-12-31x2444m: Eliminate duplicate annotation class ID.Uwe Hermann
2019-12-30uart: Use human-readable names for binary classes.Uwe Hermann
2019-12-30uart: Fix incorrect stop bit annotation class.Uwe Hermann
This fixes bug #1474.
2019-12-30uart: Use human-readable names for annotation classes.Uwe Hermann
Using human-readable names for annotation classes (instead of numeric indices) improves readability and maintainability of the decoder, and can also prevent bugs due to incorrect indices.
2019-12-17uart: sample position nits, fix typo, float calculation awarenessGerhard Sittig
This commit amends bd50ceb314e4. Fix a typo in a comment. Rephrase the bit width percentage calculation such that readers remain aware of the necessity for floating point math in sample position calculations. This commit does not change behaviour, Python 3 always yields float results for divisions. It's about raising awareness.
2019-12-17uart: allow arbitrary sample positions for UART bit values (1-99%)Gerhard Sittig
The previous implementation of the UART decoder used to sample bit values strictly at the center position within a bit time. This commit introduces support to sample bit values at arbitrary positions in the range of 1-99% of the bit time. This allows to work around glitches in existing captures as well as using the decoder for UART like protocols which don't sample bit values at the center position (like EIB aka KNX). This implementation is incomplete (on purpose). Although this version improves the ability to extract data from captures, it also introduces inaccuracies in the annotation positions for non-default values of the sample point position. Addressing this issue is left for later, assuming that it'll be a byproduct of another commit series that is being worked on (general annotation position adjustment and stop bits support).
2019-12-12can: Drop an unused method.Uwe Hermann
2019-12-12signature: increase compatibility across Python versionsGerhard Sittig
Underscores in number literals are a recent Python feature which only was introduced in version 3.6. The sigrok project claims compatibility with previous Python versions, but the signature decoder fails to load with this error: $ pulseview srd: SyntaxError: Failed to load decoder signature: import by name failed: invalid syntax (pd.py, line 138) srd: Traceback (most recent call last): File "/home/user/share/libsigrokdecode/decoders/signature/__init__.py", line 25, in <module> from .pd import Decoder File "/home/user/share/libsigrokdecode/decoders/signature/pd.py", line 138 incoming = (bin(shiftreg & 0b0000_0010_1001_0001).count('1') + data) & 1 ^ SyntaxError: invalid syntax Use the more compact hex presentation for a magic binary pattern. This obsoletes the necessity to separate groups of bits for readability.
2019-12-10ac97/lin: Remove some unneeded code snippets.Uwe Hermann
2019-12-10i2cfilter: Improve description of the "address" option.Uwe Hermann
2019-12-10dsi: Add a TODO comment for proper self.wait() usage.Uwe Hermann
All PDs where "trivial" self.wait() conversion was used now have this specific comment, so it's easy to grep for.
2019-12-07decoders: Don't set self.samplenum.Uwe Hermann
This is managed by the backend and should be read-only for PDs.
2019-12-07hdcp: Add missing spaces.Uwe Hermann
2019-12-07hdcp: Reduce nesting level.Uwe Hermann
2019-12-07hdcp: Simplify some code snippets.Uwe Hermann
2019-12-07hdcp: Add tags.Uwe Hermann
2019-12-07Add HDCP traffic decoder to stack on i2cDave Craig
This decoder annotates i2c traffic to indicate the type of HDCP message contained. It includes HDCP2.2 and HDCP1.4. Useful for analysing HDCP negotiation failures.
2019-12-07ieee488: flush upper layer payload data when IFC assertsGerhard Sittig
Also flush previously accumulated payload data when the IFC signal asserts (interface clear, a controller requests ownership of the bus). This is in line with EOI (end of message) and ATN (start of a command, including change of "connected" peers or direction of communication).
2019-12-07ieee488: introduce 'delim' option for improved text outputGerhard Sittig
When a capture contains output from a talking device, but neither contains EOI (end of transmission) nor ATN (new commands, including changes in the set of communicating peers or communication direction), then lower layer data bytes would be shown but accumulated runs of upper layer payload data would not. The hp53131a-ton.sr capture demonstrates this behaviour. Add transparent support for the typical case of communicating SCPI over GPIB. Do emit upper layer payload data annotations when termination sequences for text lines were seen. Allow users to disable this feature when it's not appropriate for binary content. It's an internal implementation detail that accumulated data gets flushed. Communicate the user visible option as "payload data separation", which should most appropriately reflect the resulting behaviour. The specific implementation of this feature can also support different kinds of payload chunk separation.
2019-12-06Obsolete gpib and iec PDs in favor of ieee488.Uwe Hermann
2019-12-06ieee488: Mention more relevant keywords in longname.Uwe Hermann
This can be used by frontends for decoder search features.