X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fconrad-digi-35-cpu%2Fapi.c;h=141a3d9715eedd55d7d2903eafa780d6f35b8f9a;hb=ca314e060f653e6a0b5ec0f58914bac4d426217f;hp=38ae352d65e3216be6a4cc116702ce851e0ba152;hpb=e66d1892d0dd16ed166fc8f13493f95de0607362;p=libsigrok.git diff --git a/src/hardware/conrad-digi-35-cpu/api.c b/src/hardware/conrad-digi-35-cpu/api.c index 38ae352d..141a3d97 100644 --- a/src/hardware/conrad-digi-35-cpu/api.c +++ b/src/hardware/conrad-digi-35-cpu/api.c @@ -17,14 +17,6 @@ * along with this program. If not, see . */ -/** - * @file - * - * Conrad DIGI 35 CPU power supply driver - * - * @internal - */ - #include #include "protocol.h" @@ -35,8 +27,11 @@ static const uint32_t scanopts[] = { SR_CONF_SERIALCOMM, }; -static const uint32_t devopts[] = { +static const uint32_t drvopts[] = { SR_CONF_POWER_SUPPLY, +}; + +static const uint32_t devopts[] = { SR_CONF_VOLTAGE | SR_CONF_SET, SR_CONF_CURRENT | SR_CONF_SET, SR_CONF_OVER_CURRENT_PROTECTION_ENABLED | SR_CONF_SET, @@ -136,7 +131,7 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { - return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, NULL, devopts); + return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts); } static struct sr_dev_driver conrad_digi_35_cpu_driver_info = {