summaryrefslogtreecommitdiff
path: root/decoders/lin
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2023-07-28 07:56:46 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2023-07-29 21:29:08 +0200
commit6d1cde1daeea93b36c1c2c09e160e5b8042ef22b (patch)
tree8737e573670611b1829dca4b22c0c6558211f8b2 /decoders/lin
parent192a9e78f97ea82f7ee69a683b4639847cbf4e5a (diff)
downloadlibsigrokdecode-6d1cde1daeea93b36c1c2c09e160e5b8042ef22b.tar.gz
libsigrokdecode-6d1cde1daeea93b36c1c2c09e160e5b8042ef22b.zip
rgb_led_ws281x: refactor bit/bits handling, use more common code
Pass all .decode() routine's bit handling through a common bit handler. Accumulate the bit values as well as their ss/es timestamps. Reduce code duplication in the bits handler. Use common support code to get the 24/32 bit wide integer from the list of bits. Prepare to handle streams of different per-pixel length or layout. This commit remains backwards compatible, and keeps all warts of the previous implementation including inconsistent annotation order. Just eliminates unnecessary instance members and hidden coupling, to keep timestamp handling in the .decode() method.
Diffstat (limited to 'decoders/lin')
0 files changed, 0 insertions, 0 deletions