]> sigrok.org Git - sigrok-cli.git/commit
decode: assign logic channels to PD inputs (by name or by index)
authorGerhard Sittig <redacted>
Fri, 7 Apr 2023 16:48:46 +0000 (18:48 +0200)
committerGerhard Sittig <redacted>
Sun, 9 Apr 2023 22:18:50 +0000 (00:18 +0200)
commit1f90599fa522afb9cfb9f603e2a27f89a6cb222f
tree0b1942566959fb94d05658abcce459b8cdd93ded
parenta2dbd8488c1d18c39d55ebbf6e4c3c83db0296ba
decode: assign logic channels to PD inputs (by name or by index)

Add support for the -P <name>:assign_channels=auto_index or =auto_names
keywords. Which assigns sigrok logic channels to decoder input signals,
but requires explicit initiation by users. The default behaviour remains
backwards compatible, exclusively assigns individual channels as mapped
by user specs, assigns nothing by default.

Name matching is implemented as a simple case insensitive comparison.
Neither weaker name checks (optional separators) nor advanced heuristics
are supported as seen in the Pulseview GUI application. Future versions
could implement these once the set of transformation rules has settled.
decode.c