summaryrefslogtreecommitdiff
path: root/decoders
AgeCommit message (Collapse)Author
2018-09-09usb_power_delivery: better PD 3.0 support and other changesdavidanger
- better PD 3.0 support - display PD revision in output - different flags for source and sink PDO's and RDO's [Note: This commit is the remaining set of manually merged changes of the recent commits from Peetz0r <peter@haas-en-berg.nl> and the improvements from davidanger <davidanger@163.com> over at https://github.com/davidanger/libsigrokdecode]
2018-09-09usb_power_delivery: wait 1ms instead of 100k samplesPeetz0r
2018-09-09usb_power_delivery: improve wordingPeetz0r
Control channel => Configuration Channel
2018-09-09usb_power_delivery: PPS supportPeetz0r
2018-09-09usb_power_delivery: Move stored PDO's inside Decoder classPeetz0r
Also add timeout functionality to properly decode the last packet in a capture.
2018-09-09usb_power_delivery: print more useful stuffPeetz0r
including: - power in watts - type of PDO (fixed, pps, etc) - which PDO belongs to an RDO also deduplicated get_source_cap() and get_sink_cap()
2018-09-06swim: Simplify a code snippet.Uwe Hermann
2018-09-06Decoder for STM8 series MCUs SWIM protocol.Mike Jagdis
Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk> (github: mjagdis)
2018-08-30counter: Consider edge counter offset also in word processingSoeren Apel
2018-08-30counter: Let user decide how to handle the initial dead_cycles stateSoeren Apel
edge_off and word_off are not included in the if block because a user may want to use edge_off to dismiss unwanted clocks instead of dead_cycles.
2018-08-30counter: Introduce option to ignore edgesGerhard Sittig
2018-08-30counter: Use initial counter values also after a resetSoeren Apel
2018-08-30spi: Create the out_bitrate annotation unconditionallyJosef Gajdusek
The start() method is called before the metadata() method, which results in the the out_bitrate instance variable never getting created and ending up as an AttributeError when decoding. (observed with sigrok-cli and VCD file as the input)
2018-08-29edid: Shorten two code snippets.Uwe Hermann
2018-08-29edid: Add support for extension blocks, cleanupsStefan Brüns
Extension blocks are widely used by e.g. HDMI to signal support for audio, colorspaces and much more. Cleanups: - support short forms for annotations - join overlapping annotations, these were unreadable in PV, and the positions were inaccurate (aligned to bytes instead of bits, no notion of used bits in split fields).
2018-08-11counter: add support for user specified initial counter valuesGerhard Sittig
Introduce options for the initial edge and word counter values. Default to 0 for compatibility with the previous implementation. This fixes bug #1229.
2018-08-11mdio: accept MDIO READ without previous ADDRESS commandGerhard Sittig
Fix a Python string formatting issue, where the format string disagreed with the argument list. A READ command could unexpectedly terminate the decoder instance when there was no previous ADDRESS command. This fixes bug #1258.
2018-07-15uart: rephrase data bits to data value conversionGerhard Sittig
Use the already available .databits[] information which holds sample data and bit time edge positions, and the common bitpack() routine. This shall increase readability of the bits to value conversion. [ best viewed with more context, like 'git diff -U5' ]
2018-07-15common: rephrase bitpack(), use list comprehension Python idiomGerhard Sittig
2018-06-22jtag_ejtag: Simplify some code snippets.Uwe Hermann
2018-06-22jtag_ejtag: Fix short/long annotation order.Uwe Hermann
The list of annotation strings is sorted from longest to shortest.
2018-06-22jtag_ejtag: Add short description in __init__.py.Uwe Hermann
2018-06-22jtag_ejtag: Move bin2int() to common/srdhelper.Uwe Hermann
Also, rename from bin_to_int to bin2int() for consistency.
2018-06-22jtag_ejtag: Simplify two code snippets.Uwe Hermann
2018-06-22jtag_ejtag: Shorten variable names to ss/es.Uwe Hermann
These abbreviations are commonly-used in all other PDs.
2018-06-21Add MIPS EJTAG decoderVlad Ivanov
Signed-off-by: Vlad Ivanov <vlad.ivanov@lab-systems.ru>
2018-06-10cfp: Add reset() method.Uwe Hermann
2018-06-10cfp: Use the Python in/range keywords.Uwe Hermann
2018-06-10cfp: Shorten two variable names.Uwe Hermann
2018-06-10cfp: Factor out self.putx().Uwe Hermann
This improves readability and avoids some duplication.
2018-06-10cfp: Reduce indentation level.Uwe Hermann
2018-06-10cfp: Drop unneeded annotation prefix; plural fixes.Uwe Hermann
2018-06-10cfp: Drop unused self.out_python.Uwe Hermann
2018-06-10cfp: Fix incorrect copy-paste description.Uwe Hermann
2018-06-10Revert "mdio: Add 'TURNAROUND' long/full annotation." in order to comply ↵Elias Oenal
with the naming used in the Ethernet standard. This reverts commit 30d775b095a4b76e5fa755b19d5521affa3c053c.
2018-06-10Add a CFP decoder.Elias Oenal
2018-05-30counter: Drop unneeded tuple braces.Uwe Hermann
(minor readability / consistency improvement)
2018-05-30counter: emit wider annotations for data and word countsGerhard Sittig
Track the start of a data or word cycle. Avoid narrow ss=es annotations which may be tedious to inspect by users in GUI applications. This resolves the issue initially reported in bug #1210.
2018-05-30counter: prepare for variable width annotationsGerhard Sittig
Explicitly pass a start sample number to the .putc() method, to prepare annotations where ss differs from es. This is motivated by bug #1210. Stick with the narrow ss=es annotations for backwards compatibility.
2018-05-29counter: explicit string formatting for annotation textGerhard Sittig
Replace str() conversion with explicit number text formatting, for improved awareness and easier future adjustment during maintenance.
2018-05-29counter: use local variables instead of instance variablesGerhard Sittig
Since values get accessed within the .decode() method exclusively, we need not store data in instance variables of the decoder object. Use another variable for the "reset edge" option as well for consistency.
2018-05-29counter: move some init code to the start of decode()Gerhard Sittig
Since PD API v3 the .decode() method is called exactly once, and contains a main loop itself. Move initialization code that sets up .decode() related logic to the start of the .decode() routine.
2018-05-29counter: use symbolic names for input pins, wait conditions, annotation rowsGerhard Sittig
Replace magic numbers by symbolic references to (fixed and optional) decoder input signals, .wait() conditions, as well as annotation rows. Move some empty lines, to better reflect which code lines form groups of similar activity ("blocks" that logically belong together).
2018-05-29counter: explicit option text to .wait() edge mappingGerhard Sittig
The previous implementation used the fact that libsigrok's internal API happens to use the first letter of the user visible English option text. Two locations mapped edge choices to API literals in different ways. Unify them, introduce an explicit option text to literal value mapping. (Many if not all decoder implementations do that. More adjustment to use common code could be beneficial.)
2018-05-26atsha204a: Add the reset() method.Uwe Hermann
2018-05-26atsha204a: Rename a few methods for consistency.Uwe Hermann
2018-05-26atsha204a: Shorten a few more code chunks, add helpers.Uwe Hermann
2018-05-26atsha204a: Shorten self.opcode to op in a few places.Uwe Hermann
2018-05-26atsha204a: Use the Python 'in' keyword to improve readability.Uwe Hermann
2018-05-26atsha204a: Shorten output_tx_bytes()/output_rx_bytes() a bit.Uwe Hermann