]> sigrok.org Git - libsigrok.git/commit
asix-sigma: keep remaining samplerate handling in protocol.c
authorGerhard Sittig <redacted>
Fri, 15 May 2020 11:59:29 +0000 (13:59 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 06:06:18 +0000 (08:06 +0200)
commitabcd47719689178ebb5e9050eb128312b17d82fa
tree66d198a61adae97d1b2ad5e04d4620939911a664
parenta426f74aca4319b0edc2b3e5283d14458a2d3787
asix-sigma: keep remaining samplerate handling in protocol.c

Make the list of supported samplerates an internal detail of the
protocol.c source file. Have the api.c source file retrieve the list
as well as the currently configured value by means of query routines.

Ideally the current rate could get retrieved from hardware at runtime.
A future driver implementation could do that. This version sticks with
the lowest supported rate, as in the previous version.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h