summaryrefslogtreecommitdiff
path: root/decoders
AgeCommit message (Collapse)Author
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
2018-05-26Add decoder for Microchip ATSHA204A crypto moduleMichalis Pappas
2018-05-21Add ON Semi CAT24C256, CAT24M01.whitequark
2018-05-13st7735: Merge reset_state() into reset().Uwe Hermann
2018-05-13Simple decoder for ST7735 TFT controllerAleksander Alekseev
2018-05-12mcs48: add reset method, make A12 optional, unassorted adjustmentGerhard Sittig
Add the reset() method which recently has become essential. Make the A12 "memory bank" address line optional. Use more Python idioms. Update comments. The control signals had to move, to avoid gaps between D7 and A8 as well as between A11 and A12 in the GUI decoder properties dialog. With dynamic assignment in the UI and with named references in the CLI this shall not harm. Unmodified automated tests still pass. The logic is prepared to handle data, address, and "bank" pin groups at arbitrary locations, A[11:8] and D[7:0] need not be adjacent any longer. Support for more than one memory bank pin is prepared, but the number of bank pins needs to get determined at the start of decode(), when this feature is to get added in the future.
2018-05-12Add new decoder: Intel MCS-48fenugrec
Decodes addresses and data read from an external ROM. The MCS-48 processors (8048, 8049, 8039, etc.) have an 8-bit data bus that latches first the address then the data.
2018-05-03jtag_stm32: Always switch state on new instructionGeorge Hopkins
2018-05-03jtag_stm32: Fix handling of boundary scan TAPGeorge Hopkins
2018-05-03jtag: Fix shifting of registersGeorge Hopkins
This fixes bug #1066.
2018-05-03spiflash: Add Adesto AT45DB161E metadata.Uwe Hermann
2018-05-03spiflash: Add basic Adesto AT45DBxx support (WRITE1/2, STATUS).Aleksander Alekseev
2018-04-24dcf77: annotate unexpected bit numbers and values, do not abort executionGerhard Sittig
Improve robustness of the DCF77 decoder. Cope with "neiter 0 nor 1" bit values (glitches can break the detection of pulse widths), as well as unexpected bit numbers (more than 59 pulses per minute, can be a follow-up error after e.g. glitches break one long pulse into two short pulses). Do not process this invalid data, do emit error annotations.
2018-04-24dcf77: annotate invalid dow and month fields, do not abort executionGerhard Sittig
Emit error annotations for invalid day of the week or month numbers, instead of aborting decoder execution with an exception. Implementation detail: Neither the Python 'in' keyword nor a .get() method are available. That's why we have to catch the IndexError exception. This fixes bug #1173.
2018-04-23dcf77, lpc: rephrase bit string formattingGerhard Sittig
Create the text representation of a bit string by means of the builtin .format() method and an appropriate specifier. Drop the non-obvious sequence of bin() and slice and zfill() calls.
2018-04-12can: Fix incorrect stuff bit handling.Uwe Hermann
The decoder assumed a CRC cannot end with a stuffed bit but it actually can, and the CRC delimiter then comes after the stuffed bit. Patch by IRC/github user celeron55, wide testing by PeterMortensen, thanks!
2018-04-08sda2506/qi: Add missing full stop in 'desc' field.Uwe Hermann
2018-04-08rc_encode: Use different annotation classes for code word addr/data.Uwe Hermann
2018-04-08rc_encode: Use different annotation classes for different bits.Uwe Hermann
2018-04-08rc_encode: Add self.putx() helper.Uwe Hermann
2018-04-08rc_encode: Use common self.ss/self.es naming.Uwe Hermann
2018-04-08rc_encode: Use += operator where possible.Uwe Hermann
2018-04-08rc_encode: Drop unneeded casts.Uwe Hermann
2018-04-08Add initial rc_encode protocol decoder.steversig
2018-03-31adns5020: Python style nit, fixup whitespaceGerhard Sittig
2018-03-31max7219: introduce constructor and reset() methodGerhard Sittig
The "max7219" decoder used to have no constructor, which made me miss it when reset() got introduced. Implement those two methods (which do nothing, and thus won't change behaviour).
2018-03-31microwire: introduce constructor and reset() methodGerhard Sittig
The "microwire" decoder used to have no constructor, which made me miss it when reset() got introduced. Implement those two methods (which do nothing, and thus won't change behaviour).