summaryrefslogtreecommitdiff
path: root/decoders/usb_signalling/__init__.py
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2023-07-14 17:18:30 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2023-07-18 21:09:40 +0200
commit14ba515be7d292a7c4e0f623d83b6631203cf1e8 (patch)
tree3e86331219f3c232bc8179a30e9816023ddca39f /decoders/usb_signalling/__init__.py
parentd7da8b9ea27ba271857d265b8ee66b40ae7079fc (diff)
downloadlibsigrokdecode-14ba515be7d292a7c4e0f623d83b6631203cf1e8.tar.gz
libsigrokdecode-14ba515be7d292a7c4e0f623d83b6631203cf1e8.zip
i2c: rename variables and adjust data types for readability
Use longer names for variables and adjust their data types to improve readability of the "is write?", "is repeated start?" conditions. Use a boolean when the condition is known, and preset to None when the state is yet uncertain. Rename .bits[] to .data_bits[] to reflect that they exclusively hold the byte's bits and not the ACK/NAK bit.
Diffstat (limited to 'decoders/usb_signalling/__init__.py')
0 files changed, 0 insertions, 0 deletions