]> sigrok.org Git - libsigrokdecode.git/commit - decoders/uart/pd.py
uart: Add [rx|tx]_packet_delimiter options.
authorUwe Hermann <redacted>
Tue, 12 Nov 2019 21:03:21 +0000 (22:03 +0100)
committerUwe Hermann <redacted>
Tue, 12 Nov 2019 22:03:32 +0000 (23:03 +0100)
commitab0522b8722c883275c2d695471b0746ab7372a0
tree721506a60e20162689ad65117c7620fe74a36924
parentafae4fa61ffd8dee62667e60f931e371061c7d7d
uart: Add [rx|tx]_packet_delimiter options.

This is a convenience feature that emits summary annotations ("packets")
that comprise all data values that were decoded until a specified delimiter
value is seen (as last data value of the "packet").

Example use-cases include ASCII data where it can be convenient to
"packetize" whenever a 10/0x0A value (newline) is seen, or some
protocols which have a fixed "marker" value (e.g. 0x55) as last
value in the "packet".

The annotations are affected by the selected 'format' option, i.e. the
user can get summaries in ASCII or hex or other formats.

This is just an (intentionally very simple) helper/convenience improvement
and is NOT meant to replace "proper" stacked decoders for UART-based protocols.
decoders/uart/pd.py