]> sigrok.org Git - libsigrokdecode.git/commitdiff
i2c: add support for 10bit slave addresses
authorGerhard Sittig <redacted>
Fri, 14 Jul 2023 15:28:32 +0000 (17:28 +0200)
committerGerhard Sittig <redacted>
Tue, 18 Jul 2023 19:09:40 +0000 (21:09 +0200)
Slave addresses can be of 7bit or 10bit type, which occupies one or two
bytes at the start of the frame. Detect when a 10bit address is seen,
and classify the following byte as yet another address byte (which the
previous implementation incorrectly classified as data byte).

This commit only accumulates the address value and adjusts the class of
annotations. It does not introduce new annotation classes or rows, to
not change the decoder in incompatible ways.


No differences found