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

Similar to the recently added [rx|tx]_packet_delimiter options, these
emit summary annotations ("packets") when a certain number of data values
have been decoded.

This is a convenience feature which can be useful when a user wants to
view data which doesn't have a specified delimiter value (as last data
value in the "packet"), but rather fixed-length "packets".

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