Uwe Hermann [Thu, 18 Apr 2019 22:02:54 +0000 (00:02 +0200)]
cc1101: Simplify format_command().
Uwe Hermann [Thu, 18 Apr 2019 21:55:39 +0000 (23:55 +0200)]
cc1101: Factor out and simplify ANN_* names.
Marco [Wed, 27 Mar 2019 22:47:36 +0000 (23:47 +0100)]
Add a TI CC1101 decoder.
Uwe Hermann [Mon, 15 Apr 2019 18:19:19 +0000 (20:19 +0200)]
sdcard_spi: Fix duplicated 'End bit' annotation emission.
Uwe Hermann [Mon, 15 Apr 2019 18:13:32 +0000 (20:13 +0200)]
sdcard_spi: Fix incorrect annotation row indices.
This fixes the remaining parts of bug #1365.
Uwe Hermann [Mon, 15 Apr 2019 17:46:04 +0000 (19:46 +0200)]
sdcard_spi: handle_data_response(): Shorten a few lines.
Uwe Hermann [Mon, 15 Apr 2019 17:40:55 +0000 (19:40 +0200)]
sdcard_spi: handle_data_response(): Add comment, cosmetics.
Uwe Hermann [Mon, 15 Apr 2019 16:50:12 +0000 (18:50 +0200)]
sdcard_spi: Fix some abbreviations and names to match the spec.
The official abbreviation for CMD24 in the spec is "WRITE_BLOCK", as
opposed to "WRITE_MULTIPLE_BLOCK" for CMD25 (chapter 4.7.4,
"Detailed Command Description", table 4-24).
The byte preceeding e.g. the CMD24 block data is called "Start Block" token
(chapter 7.3.3.2, "Start Block Tokens and Stop Tran Token"). We don't
include the "token" itself for consistency, since the decoder doesn't do
that for any other tokens either.
Gerhard Sittig [Wed, 3 Apr 2019 17:10:46 +0000 (19:10 +0200)]
sdcard_spi: touch up CMD24 handling
Address some nits in the SDCard (SPI mode) protocol decoder. Rename
identifiers to eliminate comments. Determine the default block size at
the start of the write command instead of the iteration over payload
data bytes. Remove a print() statement which would break regression
tests. Allow re-use of the data handler for other commands, too. Use
lower case hex digits for consistency across the source file, and
slightly unobfuscate a bit pattern check while we are here. Improve
robustness of response handlers and how internal state gets advanced.
Replace constant lookups by direct method calls.
Pierre Poulain [Fri, 15 Mar 2019 17:37:24 +0000 (18:37 +0100)]
sdcard_spi: add support for CMD24 including payload data
The previous implementation advanced from the start of CMD24 to IDLE.
This commit introduces support for the data phase and data response of
CMD24. Which results in improved usability of the decoder output, and
reduced probability of false positives (don't detect "commands" in the
payload data).
This commit addresses the missing CMD24 handling part of bug #1365.
Uwe Hermann [Tue, 2 Apr 2019 19:35:32 +0000 (21:35 +0200)]
srd_inst_stack(): Warn upon potentially incorrect stacking.
Currently there must be at least one match of inputs/outputs for
decoders that are stacked. If not, we emit an informational warning
(but this is not a hard error for the time being).
Uwe Hermann [Tue, 2 Apr 2019 19:33:58 +0000 (21:33 +0200)]
decoders: Fix incorrect 'outputs' fields.
Only add items to 'outputs' if the respective PD actually has
OUTPUT_PYTHON support implemented as of right now.
Various decoders might get OUTPUT_PYTHON support later, but the
'outputs' field should reflect the current status.
Uwe Hermann [Thu, 28 Mar 2019 21:49:39 +0000 (22:49 +0100)]
ds2408: Add missing tags.
Mariusz Bialonczyk [Thu, 14 Mar 2019 11:25:54 +0000 (12:25 +0100)]
add a Maxim DS2408 decoder
This is a 1-Wire 8-channel addressable switch.
Mariusz Bialonczyk [Sat, 16 Mar 2019 10:57:22 +0000 (11:57 +0100)]
onewire_network: add a 'Disable Test Mode' command for DS2408
For details see the DS2408 datasheet, section "Power-up timing".
This commit is adding this missing command so now a full decoding
is possible:
Annotations from 1-Wire network layer:
8990980-
8991220 1-Wire network layer: : Reset/presence: true
8994163-
8994437 1-Wire network layer: : ROM command: 0x96 'DS2408: Disable Test Mode'
8995026-
9008178 1-Wire network layer: : ROM: 0xa30000001246a929
9008785-
9009060 1-Wire network layer: : Data: 0x3c
9012290-
9012530 1-Wire network layer: : Reset/presence: true
And from the specific stacked DS2408 slave:
8990980-
8991220 DS2408: : Reset/presence: true
8995026-
9008178 DS2408: : ROM: 0xa30000001246a929 (family code 0x29)
9008785-
9009060 DS2408: : Disable Test Mode (0x3c)
9012290-
9012530 DS2408: : Reset/presence: true
Mariusz Bialonczyk [Wed, 13 Mar 2019 17:47:38 +0000 (18:47 +0100)]
onewire_network: add a missing 'Resume ROM' command
For details see the DS2408 datasheet, section "Resume Command [A5h]".
Uwe Hermann [Sat, 16 Mar 2019 17:46:01 +0000 (18:46 +0100)]
decoders: Various cosmetic/consistency/typo fixes.
Uwe Hermann [Thu, 14 Mar 2019 23:57:31 +0000 (00:57 +0100)]
HACKING: Document current tags and their intention/usage.
Uwe Hermann [Thu, 14 Mar 2019 23:57:04 +0000 (00:57 +0100)]
decoders: Add/update tags for each PD.
Soeren Apel [Fri, 28 Dec 2018 10:41:41 +0000 (11:41 +0100)]
Add PD tags handling and some tags
Uwe Hermann [Tue, 29 Jan 2019 23:03:23 +0000 (00:03 +0100)]
jtag_ejtag: Shorten a variable name.
Ryan Jarvis [Sat, 19 Jan 2019 08:05:07 +0000 (00:05 -0800)]
Rename values that shadow built-in keywords
Ryan Jarvis [Sat, 19 Jan 2019 07:51:23 +0000 (23:51 -0800)]
Remove trailing semicolons
Ryan Jarvis [Sat, 19 Jan 2019 07:49:47 +0000 (23:49 -0800)]
Fix obvious typos with string formatters
Ryan Jarvis [Sat, 19 Jan 2019 07:46:36 +0000 (23:46 -0800)]
Typo preventing "Personal preference settings" & "Display user info on screen" from functioning
Source: https://en.wikipedia.org/wiki/RC-5#Command_Tables
Ryan Jarvis [Sat, 19 Jan 2019 07:43:26 +0000 (23:43 -0800)]
Comparison to None should use "is/is not" instead of "==/!="
Libor Gabaj [Wed, 23 Jan 2019 20:58:26 +0000 (21:58 +0100)]
DS1307: Bugs fixes.
- Square wave frequencies above 1 Hz are in Hz not in kHz.
- AM/PM flag is in the bit 5 of hours register not in bit 6.
- AM flag is valid at 0 value of AM/PM flag not at 1 value.
Gerhard Sittig [Sat, 24 Nov 2018 10:57:38 +0000 (11:57 +0100)]
uart: remove obsolete TODO (Python annotation for frame errors)
The "Frame error?" TODO comment on Python annotations has become
obsolete. Individual bit errors within the frame immediately get
communicated as they are detected (START, parity, STOP). The overall
frame's validity has become available with the FRAME annotation.
Gerhard Sittig [Fri, 23 Nov 2018 18:10:34 +0000 (19:10 +0100)]
uart: add FRAME Python annotation, communicate frame validity
Internally keep track of the UART frame's validity. Emit a FRAME Python
annotation for aborted as well as for completed frames. This obsoletes a
TODO comment in the STOP bit code path.
This annotation also spans the complete frame's length, including start
and parity and stop bits, which the DATA annotation doesn't cover.
Stacked decoders can individually decide whether to strictly reference
the mere data bits section or the complete UART frame which happened to
communicate the data value.
Gerhard Sittig [Fri, 23 Nov 2018 18:09:09 +0000 (19:09 +0100)]
uart: document the Python annotation for BREAK
Weixiao Zhang [Wed, 21 Nov 2018 03:41:45 +0000 (21:41 -0600)]
i2s: Fix 2 issues.
1. WS = 0, Left Channel; WS = 1, Right Channel
2. Data start and end at falling edge of SCK
Uwe Hermann [Sat, 10 Nov 2018 17:48:37 +0000 (18:48 +0100)]
x2444m: Add some shorter annotation strings as well.
Uwe Hermann [Sat, 10 Nov 2018 17:31:38 +0000 (18:31 +0100)]
x2444m: Move variable initializations to reset().
Uwe Hermann [Sat, 10 Nov 2018 17:31:04 +0000 (18:31 +0100)]
x2444m: Make each command an extra annotation class.
Stefan Petersen [Wed, 31 Oct 2018 13:27:44 +0000 (14:27 +0100)]
Decoder for Xicor X2444M, nonvolatile static RAM.
Gerhard Sittig [Sun, 21 Oct 2018 15:14:59 +0000 (17:14 +0200)]
decoder: consider reset() a mandatory decoder method
In theory support for PD reset is optional, applications are not
required to make use of it. But it's essential to receive correct
decoding results when used with the popular Pulseview mainline
application.
So let's consider the absence of the reset() method fatal. All mainline
decoders have it. Out-of-tree decoders are easy to adjust, and very
probably should support reset() as well. Thus this change is considered
beneficial, and not harmful.
Gerhard Sittig [Sun, 21 Oct 2018 19:25:34 +0000 (21:25 +0200)]
miller: add reset() method
Uwe Hermann [Sun, 21 Oct 2018 17:43:10 +0000 (19:43 +0200)]
lin: Simplify state handling a bit.
Uwe Hermann [Sun, 21 Oct 2018 17:30:32 +0000 (19:30 +0200)]
lin: handle_break(): Use self.putx().
Uwe Hermann [Sun, 21 Oct 2018 17:28:31 +0000 (19:28 +0200)]
lin: Simplify LinFsm._transition_allowed().
stephan.thiele [Wed, 17 Oct 2018 09:40:23 +0000 (11:40 +0200)]
add LIN protocol decoder
Vesa-Pekka Palmu [Wed, 17 Oct 2018 22:57:28 +0000 (01:57 +0300)]
spiflash: Remember write protection latch from status registers
Vesa-Pekka Palmu [Wed, 17 Oct 2018 22:56:26 +0000 (01:56 +0300)]
spiflash: Bugfix: WRSR was using miso for register decode
Vesa-Pekka Palmu [Wed, 17 Oct 2018 15:49:29 +0000 (18:49 +0300)]
spiflash: Initial support for write enable state tracking
Vesa-Pekka Palmu [Wed, 17 Oct 2018 12:53:35 +0000 (15:53 +0300)]
spiflash: Handle chip erase
Minimal implementation of chip erase 0x60 and 0xc7 command handling
Uwe Hermann [Sun, 21 Oct 2018 15:32:57 +0000 (17:32 +0200)]
spiflash: Add Winbond W25Q80DV metadata.
Jon Burgess [Sun, 14 Oct 2018 18:11:21 +0000 (19:11 +0100)]
Fix GVariant memory leaks in session test code
==187759== 88 (40 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 2,262 of 3,218
==187759== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299)
==187759== by 0x563C435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187759== by 0x5654056: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187759== by 0x5673630: g_variant_new_from_bytes (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187759== by 0x566C5E6: ??? (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187759== by 0x566C7D2: g_variant_new_uint64 (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187759== by 0x403D41: conf_check_fail.constprop.6 (session.c:152)
==187759== by 0x403E06: test_session_metadata_set_bogus (session.c:215)
==187759== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0)
==187759== by 0x401237: main (main.c:51)
Jon Burgess [Sun, 14 Oct 2018 18:10:16 +0000 (19:10 +0100)]
Fix memory leak in decoder test code
==187724== 917 bytes in 1 blocks are definitely lost in loss record 3,046 of 3,207
==187724== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299)
==187724== by 0x563C435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187724== by 0x5655D82: g_strdup (in /usr/lib64/libglib-2.0.so.0.5600.3)
==187724== by 0x4E43937: py_str_as_str (util.c:371)
==187724== by 0x4E415E1: srd_decoder_doc_get (decoder.c:892)
==187724== by 0x40281D: test_doc_get (decoder.c:395)
==187724== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0)
==187724== by 0x401237: main (main.c:51)
Jon Burgess [Sun, 14 Oct 2018 17:55:47 +0000 (18:55 +0100)]
Fix memory leak in print_searchpaths()
==175453== 522 bytes in 8 blocks are definitely lost in loss record 2,923 of 3,201
==175453== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299)
==175453== by 0x59E9BB5: PyObject_Malloc (in /usr/lib64/libpython3.6m.so.1.0)
==175453== by 0x5A35A76: PyBytes_FromStringAndSize (in /usr/lib64/libpython3.6m.so.1.0)
==175453== by 0x4E3FA6E: print_searchpaths (srd.c:173)
==175453== by 0x4E3FA6E: srd_init (srd.c:287)
==175453== by 0x4034BE: test_session_reset_nodata (session.c:238)
==175453== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0)
==175453== by 0x401237: main (main.c:51)
Jon Burgess [Sun, 14 Oct 2018 17:49:52 +0000 (18:49 +0100)]
Fix bad memory accesses during srd_exit()
When the decoder and session unload functions are called they
remove themselves from the list. The code walking the list
must be careful to avoid accessing the next pointer which
might now be invalid. The g_slist_foreach() takes care of
this.
Reports from Valgrind before fix:
==175436== Invalid read of size 8
--
==175436== Address 0xe3f2598 is 8 bytes inside a block of size 16 free'd
==175436== at 0x4C2FDAC: free (vg_replace_malloc.c:530)
==175436== by 0x563C541: g_free (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x5654783: g_slice_free1 (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x56552A2: g_slist_remove (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x4E3FEFF: srd_session_destroy (session.c:343)
==175436== by 0x4E3F5C7: srd_exit (srd.c:311)
==175436== by 0x40336F: test_inst_new (inst.c:40)
==175436== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0)
==175436== by 0x401237: main (main.c:51)
==175436== Block was alloc'd at
==175436== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299)
==175436== by 0x563C435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x5654056: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x5655797: g_slist_append (in /usr/lib64/libglib-2.0.so.0.5600.3)
==175436== by 0x4E3FC75: srd_session_new (session.c:71)
==175436== by 0x403345: test_inst_new (inst.c:37)
==175436== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0)
==175436== by 0x401237: main (main.c:51)
Uwe Hermann [Sun, 14 Oct 2018 22:16:51 +0000 (00:16 +0200)]
Update a few Doxygen @since tags.
Drop @since tags for non-public functions.
Uwe Hermann [Sun, 14 Oct 2018 22:09:41 +0000 (00:09 +0200)]
instance.c: Avoid 4 unneeded forward declarations.
Gerhard Sittig [Sun, 14 Oct 2018 18:17:35 +0000 (20:17 +0200)]
uart: add support for break condition detection
There are the "traffic inspecting" wait() conditions, which check an
edge to find the start of START, then wait for sample points to grab the
bit values. Bit times are sampled in their respective center, potential
glitches around sample points get ignored.
Add another independent set of wait() conditions which check _all_ edges
regardless of any data communication. This results in the most reliable
and maintainable detection of break conditions, regardless of how they
align to data frames. Break is defined as a period of low input signal
which spans at least one frame's length. Run the edge inspection after
data inspection, which results in the most appropriate annotation output
like leading data bits (of incomplete frames), frame errors (violated
STOP bit expectations), then break conditions. This approach is most
robust in the presence of incomplete input streams.
Uwe Hermann [Sat, 13 Oct 2018 15:49:04 +0000 (17:49 +0200)]
ook: Fix two typos which affect the decoding results.
Uwe Hermann [Fri, 12 Oct 2018 23:29:03 +0000 (01:29 +0200)]
Various log message improvements.
Uwe Hermann [Fri, 12 Oct 2018 23:02:30 +0000 (01:02 +0200)]
log: Use human-readable output type name everywhere.
Uwe Hermann [Fri, 12 Oct 2018 22:53:22 +0000 (00:53 +0200)]
instance.c: Make oldpins_array_*() static.
Uwe Hermann [Fri, 12 Oct 2018 22:49:06 +0000 (00:49 +0200)]
Decoder_put(): Add more info to OTUPUT_PYTHON log messages.
Uwe Hermann [Sat, 6 Oct 2018 13:57:49 +0000 (15:57 +0200)]
srd.c: Fix a compiler warning with gcc 8.
srd.c: In function ‘srd_searchpaths_get’:
srd.c:399:40: warning: cast between incompatible function types from ‘gchar * (*)(const gchar *)’ {aka ‘char * (*)(const char *)’} to ‘void * (*)(const void *, void *)’ [-Wcast-function-type]
return g_slist_copy_deep(searchpaths, (GCopyFunc)g_strdup, NULL);
^
Upstream glib issue / documentation change:
https://gitlab.gnome.org/GNOME/glib/issues/1492
https://gitlab.gnome.org/pwithnall/glib/commit/
e81f4c2acea5ada6ae989426e462613f7c612cac
Uwe Hermann [Sat, 6 Oct 2018 13:39:53 +0000 (15:39 +0200)]
type_decoder.c: Fix trailing whitespace.
Christoph Rackwitz [Tue, 11 Sep 2018 19:55:38 +0000 (21:55 +0200)]
morse: fix for #1278
Uwe Hermann [Tue, 11 Sep 2018 19:44:40 +0000 (21:44 +0200)]
ook_vis: Minor code simplifications.
Uwe Hermann [Tue, 11 Sep 2018 19:42:56 +0000 (21:42 +0200)]
ook_oregon: Minor code simplifications.
Uwe Hermann [Tue, 11 Sep 2018 19:35:16 +0000 (21:35 +0200)]
ook: Minor code simplifications.
Steve R [Sun, 10 Jun 2018 17:27:37 +0000 (18:27 +0100)]
added ook_vis
Steve R [Sun, 10 Jun 2018 17:24:28 +0000 (18:24 +0100)]
added ook_oregon
Steve R [Mon, 10 Sep 2018 16:21:19 +0000 (17:21 +0100)]
added ook
Uwe Hermann [Mon, 10 Sep 2018 20:10:40 +0000 (22:10 +0200)]
miller: Minor description/whitespace fixes.
Uwe Hermann [Mon, 10 Sep 2018 20:07:45 +0000 (22:07 +0200)]
atsha204a: Add missing full stop in description.
Uwe Hermann [Sun, 9 Sep 2018 17:18:02 +0000 (19:18 +0200)]
miller: Add missing 'binary' meta-data.
Christoph Rackwitz [Mon, 6 Aug 2018 02:48:06 +0000 (04:48 +0200)]
Miller encoding PD
Uwe Hermann [Sun, 9 Sep 2018 15:38:43 +0000 (17:38 +0200)]
cec: Drop uneeded self.set_stat().
Uwe Hermann [Sun, 9 Sep 2018 15:35:55 +0000 (17:35 +0200)]
cec: Replace unneeded decode_opcode().
Uwe Hermann [Sun, 9 Sep 2018 15:31:04 +0000 (17:31 +0200)]
cec: Simplify a few code snippets.
Jorge Solla [Sun, 2 Sep 2018 20:01:33 +0000 (22:01 +0200)]
Add HDMI CEC protocol decoder.
Uwe Hermann [Sun, 9 Sep 2018 14:06:59 +0000 (16:06 +0200)]
usb_power_delivery: Whitespace/consistency cosmetics.
All annotation classes/rows have all-lowercase IDs.
Also fix a few minor whitespace/consistency issues.
Uwe Hermann [Sun, 9 Sep 2018 13:55:06 +0000 (15:55 +0200)]
usb_power_delivery: Drop currently unused self.out_python.
Uwe Hermann [Sun, 9 Sep 2018 13:20:50 +0000 (15:20 +0200)]
usb_power_delivery: Drop non-existing max_w for now.
davidanger [Fri, 7 Sep 2018 21:56:52 +0000 (23:56 +0200)]
usb_power_delivery: better PD 3.0 support and other changes
- 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]
Peetz0r [Fri, 7 Sep 2018 05:45:24 +0000 (07:45 +0200)]
usb_power_delivery: wait 1ms instead of 100k samples
Peetz0r [Fri, 7 Sep 2018 02:07:17 +0000 (04:07 +0200)]
usb_power_delivery: improve wording
Control channel => Configuration Channel
Peetz0r [Fri, 3 Aug 2018 20:08:59 +0000 (22:08 +0200)]
usb_power_delivery: PPS support
Peetz0r [Mon, 30 Jul 2018 13:05:27 +0000 (15:05 +0200)]
usb_power_delivery: Move stored PDO's inside Decoder class
Also add timeout functionality to properly decode the last packet in a capture.
Peetz0r [Thu, 19 Jul 2018 07:01:13 +0000 (09:01 +0200)]
usb_power_delivery: print more useful stuff
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()
Uwe Hermann [Wed, 5 Sep 2018 23:26:22 +0000 (01:26 +0200)]
swim: Simplify a code snippet.
Mike Jagdis [Wed, 8 Aug 2018 08:58:02 +0000 (09:58 +0100)]
Decoder for STM8 series MCUs SWIM protocol.
Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk> (github: mjagdis)
Uwe Hermann [Thu, 30 Aug 2018 18:46:43 +0000 (20:46 +0200)]
srd_exit(): Fix a -Wcast-function-type compiler warning.
srd.c: In function ‘srd_exit’:
srd.c:310:28: warning: cast between incompatible function types from ‘int (*)(struct srd_session *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
g_slist_foreach(sessions, (GFunc)srd_session_destroy, NULL);
^
Uwe Hermann [Thu, 30 Aug 2018 18:42:05 +0000 (20:42 +0200)]
srd_decoder_unload_all(): Fix a -Wcast-function-type compiler warning.
decoder.c: In function ‘srd_decoder_unload_all’:
decoder.c:1080:27: warning: cast between incompatible function types from ‘int (*)(struct srd_decoder *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
g_slist_foreach(pd_list, (GFunc)srd_decoder_unload, NULL);
^
Gerhard Sittig [Wed, 15 Aug 2018 21:09:11 +0000 (23:09 +0200)]
log: add a public srd_log_callback_get() API routine
Allow applications to query the currently registered log callback. So
they can either restore the previously registered routine, or register
another routine _and_ log to the previously registered routine as well.
Soeren Apel [Mon, 9 Jul 2018 20:20:24 +0000 (22:20 +0200)]
Make srd_inst_decode() return the actual decoder state, not SRD_OK
Soeren Apel [Sun, 12 Aug 2018 10:22:44 +0000 (12:22 +0200)]
counter: Consider edge counter offset also in word processing
Soeren Apel [Sat, 11 Aug 2018 21:14:45 +0000 (23:14 +0200)]
counter: Let user decide how to handle the initial dead_cycles state
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.
Gerhard Sittig [Sat, 11 Aug 2018 20:59:47 +0000 (22:59 +0200)]
counter: Introduce option to ignore edges
Soeren Apel [Sat, 11 Aug 2018 19:12:16 +0000 (21:12 +0200)]
counter: Use initial counter values also after a reset
Josef Gajdusek [Fri, 17 Aug 2018 14:35:50 +0000 (16:35 +0200)]
spi: Create the out_bitrate annotation unconditionally
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)
Uwe Hermann [Wed, 29 Aug 2018 18:44:17 +0000 (20:44 +0200)]
edid: Shorten two code snippets.
Stefan Brüns [Sat, 25 Aug 2018 18:19:21 +0000 (20:19 +0200)]
edid: Add support for extension blocks, cleanups
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).
Gerhard Sittig [Sat, 25 Aug 2018 13:20:10 +0000 (15:20 +0200)]
install: unbreak installation with Python 3.7 (os.errno)
The os.errno module has not been an official feature. Python 3.7
removed the corresponding import. This broke the installation of
decoders. Prefer 'errno' over 'os.errno'.
Uwe Hermann [Sun, 12 Aug 2018 18:02:22 +0000 (20:02 +0200)]
configure.ac: Also check for Python 3.7.
Gerhard Sittig [Tue, 12 Jun 2018 17:06:15 +0000 (19:06 +0200)]
counter: add support for user specified initial counter values
Introduce options for the initial edge and word counter values. Default
to 0 for compatibility with the previous implementation. This fixes
bug #1229.