summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-09type_decoder.c: Drop incorrect Py_DECREF() calls.Uwe Hermann
2018-05-09type_decoder: Fixup memory leak in Decoder.put() (meta, python)Uwe Hermann
This fixes parts of bug #329.
2018-05-09type_decoder: fixup memory leak in Decoder.put() (annotation, binary)Gerhard Sittig
The text presentation of decoder annotations' payload data was allocated but not freed. As were the byte strings of binary output. Fix it. This fixes parts of bug #329.
2018-05-06Doxyfile: Set CREATE_SUBDIRS to NO.Uwe Hermann
The API docs for libsigrokdecode are relatively small, no need for the many, many subdirectories this would otherwise create.
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-23instance: return SRD_ERR_TERM_REQ when execution shall terminateGerhard Sittig
The previous implementation internally noticed the "want terminate" request, and skipped decoder execution to faster get to the end of the input stream. But an OK return code was provided in that code path, and more input data was sent by applications (sometimes for many seconds or few minutes). Do return a new SRD_ERR_TERM_REQ error code, such that applications can tell failed execution from requested termination.
2018-04-23instance: drop an unneeded "want wait() to terminate" reset assignmentGerhard Sittig
It's uncertain why srd_inst_decode() which internally gets called by the public srd_session_send() routine used to clear the want_wait_terminate flag. This should be cleared upon decoder instance creation and state reset, gets raised upon termination request, but shall not get cleared in other spots, especially not upon the availability of new input data while the stream shall be considered in the "about to terminate, skip all subsequent execution" state.
2018-04-22log: Move log level check so that it affects all handlers.Uwe Hermann
Before this change, the loglevel check would only be performed for the default log handler in libsigrokdecode, but not for other handlers set via srd_log_callback_set(). This fixes bug #698.
2018-04-20srd_exception_catch(): Beautify traceback logging output.Uwe Hermann
2018-04-20Decoder_register(): Drop an overly verbose log message.Uwe Hermann
2018-04-20srd_logv(): Add an explicit fflush().Uwe Hermann
2018-04-20Show backtrace when decode() aborts due to an error.Uwe Hermann
The backtrace printing was actually already there, but was emitted using sr_dbg(), which doesn't show up by default for most users. Make it an srd_err() so that most users will see it. This fixes bug #1158.
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-08Drop overly verbose log messages about (un)loading PDs.Uwe Hermann
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-31test: add simple "no data" test case for decoder "terminate and reset"Gerhard Sittig
Introduce a "reset" group of tests. Whip up a first test step which runs the "terminate and reset" routine for decoder stacks after session creation, start, and meta data setup. No input data gets processed, no decoder output is tested yet.
2018-03-31session: add "terminate and reset" support for protocol stacksGerhard Sittig
Implement routines which terminate currently pending decoder operations and reset internal state (on the C and Python sides) for instances as well as sessions. This allows to re-use previously created stacks for new input data.
2018-03-31Decoder: check for duplicate register() calls in common backend codeGerhard Sittig
Future implementations might call decoders' start() routine several times, which makes them call register() again. It's desirable that the common backend code copes with this condition, such that (the multitude of) decoder implementations need not work around a specific constraint.
2018-03-31decoder: rephrase .has_channel() argument parse logicGerhard Sittig
Have the Python C API check the argument type and do the type conversion already. Raise an IndexError exception when the range check fails.
2018-03-31instance: make sure oldpins array is available after resetGerhard Sittig
Introduce an oldpins_array_seed() helper routine, to make sure that each call site which checks previous pin state will find valid data. This was not always the case after decoder reset, which released the old pin data while applications would not call srd_inst_new() again. Preset newly allocated arrays with the default initial pin state, allow optional application calls to specify differing initial values (when specified by users), and keep the current state after first data was processed.
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).
2018-03-18print_searchpaths(): Print decoder and system search paths.Uwe Hermann
2018-03-17Fix part of #1128 by adding a way to retrieve PD search pathsSoeren Apel
As this uses g_slist_copy_deep(), we now require glib 2.34.
2018-03-07Add support for SDA2506 EEPROM serial protocol.Max Weller
2018-03-07Minor whitespace/typo fixes.Uwe Hermann
2018-02-23dali: Avoid CamelCase in most places.Uwe Hermann
2018-02-15ir_nec: optionally accept input signals that include the carrierGerhard Sittig
Introduce optional detection of a carrier signal. Immediately "go active" when edges are seen. "Go inactive" again in the absence of edges in a specified period of time. Cope with input signals that already had the carrier removed. By default carrier detection is disabled, to remain pixel compatible to the previous implementation. When a carrier frequency is specified and thus detection is enabled, edges of already filtered input are shifted by one carrier period, and thus changes the output of the decoder. For unfiltered inputs that still contain the carrier, detection of activity is reliable and immediate, but the active phase is extended by one period of the carrier frequency (which is considered acceptable).
2018-02-13parallel: expand 'wordsize' description (bits vs cycles)Gerhard Sittig
Users may not know which unit the "wordsize" is supposed to get specified in. Especially when it's not a number of bits, but instead the number of bus cycles. Expand the description text accordingly.
2018-02-13stepper_motor: make samplerate meta data optionalGerhard Sittig
Only emit the speed annotations when a sample rate was specified. Cope with the absence of a sample rate for the input stream. Decoding is still possible, it's just that no timing information is available.
2018-02-13i2s: make samplerate meta data optionalGerhard Sittig
Only emit sound samplerate information when an input stream sample rate was specified. Cope with the absence of a sample rate for the input stream. Decoding is still possible, it's just that no timing information is available.
2018-02-13i2c: make input samplerate optionalGerhard Sittig
Absence of a samplerate for the input stream should not be fatal. The protocol decodes fine, we just cannot determine a bitrate for frames. This addresses part of bug 1076.