]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/protocol.c
kingst-la2016: more checks on configured rate/depth/channels
authorGerhard Sittig <redacted>
Mon, 24 Jan 2022 20:30:11 +0000 (21:30 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commitea436ba7c5dc89e87c24200850fe458d6e6576d1
treebd2e228a28729d177a3fd9330ec0670dfdb37999
parentda25c28726adb3e77680b26f763389f898cbcb10
kingst-la2016: more checks on configured rate/depth/channels

Extend the list of supported samplerates, start from 10kHz (used to
start at 20kHz before). Comment on hardware constraints which limit
the available rates, for awareness during maintenance.

Move the check for enabled channels from api.c to protocol.c, it was
only used for the trigger configuration. Rename the routine since it
never configured any channels, only got the list of currently enabled
channels to pass on to the device. Extend the range checks for the
rate and depth on acquisition start, also check the lower limits.

Moving codes which references declarations required that definitions
also moved to public location of greater scope. This is acceptable since
all of them remain local to the kingst-la2016 driver. Stick with names
as they are used right now to reduce the diff and help reviewers, these
can get unified in a later commit.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.c
src/hardware/kingst-la2016/protocol.h