]> sigrok.org Git - libsigrok.git/commit
binary_helpers: Add helper for devices with binary data
authorAndreas Sandberg <redacted>
Fri, 6 Mar 2020 14:41:19 +0000 (14:41 +0000)
committerUwe Hermann <redacted>
Thu, 4 Jun 2020 22:07:30 +0000 (00:07 +0200)
commit18698b40d19fa4b15000a2d29c1dee85df0f578f
tree540ff5b55dd2321146b7fa6a9228f6593f005ac5
parent0cc3d090b7d3039ae096952e8db5c8a468d721ff
binary_helpers: Add helper for devices with binary data

Many devices receive a struct with binary values when polled. Many of
these values will correspond channels in sigrok. This
change introduces helper functions for automatically reading and
scaling such values and sending them down a sigrok analog channel.

Signed-off-by: Andreas Sandberg <redacted>
Makefile.am
src/binary_helpers.c [new file with mode: 0644]
src/libsigrok-internal.h