diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-04-13 21:10:00 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-04-23 19:50:35 +0200 |
commit | 42d4d65c3d34ae9bfa74c40fafd1ca657d05a91b (patch) | |
tree | c028ca8caeed64be6c11ac7b4a8cefa744871ad2 /decoders/tdm_audio | |
parent | f035667239e6f7d012b496c434e50161014a263d (diff) | |
download | libsigrokdecode-42d4d65c3d34ae9bfa74c40fafd1ca657d05a91b.tar.gz libsigrokdecode-42d4d65c3d34ae9bfa74c40fafd1ca657d05a91b.zip |
uart: handle zero stop bits configuration
Use common code to advance internal state during UART frame inspection.
This reduces redundancy, and improves robustness. Data bits collectors
need not worry about the optional presence of subsequent fields (parity,
stop bits, both can be absent).
Improve the separation of implementation details of the lower layer UART
frame decoding from upper layer protocol handling. Concentrate the post
processing of UART frames, BREAK and IDLE conditions in the source, and
keep the ss/es determination at the caller which detected the condition
by arbitrary means.
This unbreaks the decoder's operation when 0 stop bits are configured.
The implementation still assumes that the line goes idle between frames
even when zero stop bits are configured. Strictly speaking this decoder
now copes with traffic that uses "less than half a stop bit".
Diffstat (limited to 'decoders/tdm_audio')
0 files changed, 0 insertions, 0 deletions