summaryrefslogtreecommitdiff
path: root/decoders/maxim_ds28ea00
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2016-10-16 18:25:28 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-10-19 22:26:37 +0200
commit6ffd71c169f0562134b5e7548ea0a36f93604d86 (patch)
tree7753fbe664044058590379bb08a0eb4e253b7851 /decoders/maxim_ds28ea00
parente9a3c933ea8d77a46b881e525c2cfaf71b23041d (diff)
downloadlibsigrokdecode-6ffd71c169f0562134b5e7548ea0a36f93604d86.tar.gz
libsigrokdecode-6ffd71c169f0562134b5e7548ea0a36f93604d86.zip
uart: rework text formatting of communicated data values, plus nits
Factor out the code which generates a textual representation for the numeric values that were communicated via UART bit patterns. Make the width of the output text depend on the number of bits in the UART frame (five to nine) instead of assuming bytes of exactly eight bits. Fix other minor issues while we are here: Nine bits result in a number range of 0 to 511 (not 512). ASCII codes 30 and 31 are non-printables. The previous implementation skipped a significant leading digit in the octal representation. Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
Diffstat (limited to 'decoders/maxim_ds28ea00')
0 files changed, 0 insertions, 0 deletions