]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF_POWERMETER.
authorUwe Hermann <redacted>
Wed, 19 Jul 2017 06:31:16 +0000 (08:31 +0200)
committerUwe Hermann <redacted>
Wed, 19 Jul 2017 13:40:41 +0000 (15:40 +0200)
include/libsigrok/libsigrok.h
src/hwdriver.c

index f0ad4d04c855714e8396f1893b3610600224ae8d..6a79acb529d8b20fe1ad42cf6496f265f192fa77 100644 (file)
@@ -703,6 +703,9 @@ enum sr_configkey {
        /** The device can act as a function generator. */
        SR_CONF_SIGNAL_GENERATOR,
 
+       /** The device can measure power. */
+       SR_CONF_POWERMETER,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Driver scan options -------------------------------------------*/
index 96b6cfac0d48b4d24c67c61e88cc8074599f5fe9..5378d74adf32a4460e2dd16482ff707d8fecbbf9 100644 (file)
@@ -62,6 +62,7 @@ static struct sr_key_info sr_key_info_config[] = {
        {SR_CONF_ELECTRONIC_LOAD, SR_T_STRING, NULL, "Electronic load", NULL},
        {SR_CONF_SCALE, SR_T_STRING, NULL, "Scale", NULL},
        {SR_CONF_SIGNAL_GENERATOR, SR_T_STRING, NULL, "Signal generator", NULL},
+       {SR_CONF_POWERMETER, SR_T_STRING, NULL, "Power meter", NULL},
 
        /* Driver scan options */
        {SR_CONF_CONN, SR_T_STRING, "conn",