]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/api.c
kingst-la2016: adjust sample memory interpretation for LA5032
authorGerhard Sittig <redacted>
Sun, 16 Oct 2022 10:50:55 +0000 (12:50 +0200)
committerGerhard Sittig <redacted>
Sun, 23 Oct 2022 05:05:49 +0000 (07:05 +0200)
commit2b7d35b4d8777fdb630c6775f9d6e139e7b856f6
treecc1f32b71fcb9b432a44437bc401cced42851ff1
parent92ca309ffb3b387e4e1e78d99a5dd8ef5119587a
kingst-la2016: adjust sample memory interpretation for LA5032

The 32-channel model in the Kingst LA series uses a different sample
memory layout than 16-channel models. The previously encoded assumption
of 3x (u32 + u8) to hold 32 channels within the same 15 bytes as other
models was incorrect. User feedback in bug #1805 suggests that the
transfer size and the sequence number size differs as well. Thus the
packet count per transfer differs, too. LA5032 holds 6 packets within
a transfer that spans 32 bytes.

Reported-By: Roman Shishkin <redacted>
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.c
src/hardware/kingst-la2016/protocol.h