]> sigrok.org Git - libsigrokdecode.git/commit
uart: Reduce redundancy in sample inspection (state machine)
authorGerhard Sittig <redacted>
Tue, 14 Mar 2017 17:15:51 +0000 (18:15 +0100)
committerGerhard Sittig <redacted>
Tue, 14 Mar 2017 18:29:57 +0000 (19:29 +0100)
commit0de2810f223fefc9e3040adaa7f1b97616c6931d
tree21635546d97a5d328f072a89488f1c0959511715
parentdcd3d6262c57d86581864e642ec00dda5342d1af
uart: Reduce redundancy in sample inspection (state machine)

Factor out the logic which inspects samples that were provided by the
PD version 3 query API, and dispatches their processing depending on
the progress of UART frame inspection. "Unroll" a loop over the RX and
TX signals.

This commit replaces some complicated variable assignments by easier to
verify invocations.
decoders/uart/pd.py