]> sigrok.org Git - libsigrok.git/commit - src/hardware/korad-kaxxxxp/protocol.h
korad-kaxxxxp: factor voltage/current capability out of models[] table
authorGerhard Sittig <redacted>
Thu, 15 Sep 2022 20:02:20 +0000 (22:02 +0200)
committerGerhard Sittig <redacted>
Sat, 17 Sep 2022 09:24:37 +0000 (11:24 +0200)
commitecd4600bb15fc16d842936c452d4e7d5fb8e12f5
tree653ad67db00bd7864e9d82c16db45f12ab11b224
parent590d610ce779d23b0a31bfa60db894d685ceae88
korad-kaxxxxp: factor voltage/current capability out of models[] table

Move the number literals for supported voltage and current ranges and
their granularity out of the models[] table. Reference the ranges from
the models[] table by symbolic names, such that entries will read as
"a model which supports up to 30V and 5A", which is considered easier
to maintain. It's assumed that only few of these "templates" will be
required, the current set of supported devices gets away with 30V/60V,
and 3A/5A, and is able to express all of their combinations. See the
Korad KD6005, Tenma 72-2535, and Tenma 72-2550 models, which are the
only exceptions from the typical 30V/5A configuration.
src/hardware/korad-kaxxxxp/api.c
src/hardware/korad-kaxxxxp/protocol.h