]> sigrok.org Git - libsigrok.git/blobdiff - hwdriver.c
Add config keys for programmable power supplies.
[libsigrok.git] / hwdriver.c
index 7f820766b0cb5755ad3b46639c516d2abd6ab7c1..eb0ac3d2c80fe065c06df67822ed5276d8c2da70 100644 (file)
@@ -102,6 +102,22 @@ static struct sr_config_info sr_config_info_data[] = {
                "Number of analog probes", NULL},
        {SR_CONF_MAX_UNCOMPRESSED_SAMPLES, SR_T_UINT64, "max_uncompressed_samples",
                "Maximum number of uncompressed samples", NULL},
+       {SR_CONF_OUTPUT_VOLTAGE, SR_T_FLOAT, "output_voltage",
+               "Current output voltage", NULL},
+       {SR_CONF_OUTPUT_VOLTAGE_MAX, SR_T_FLOAT, "output_voltage_max",
+               "Maximum output voltage", NULL},
+       {SR_CONF_OUTPUT_CURRENT, SR_T_FLOAT, "output_current",
+               "Current output current", NULL},
+       {SR_CONF_OUTPUT_CURRENT_MAX, SR_T_FLOAT, "output_current_max",
+               "Maximum output current", NULL},
+       {SR_CONF_OUTPUT_ENABLED, SR_T_BOOL, "output_enabled",
+               "Output enabled", NULL},
+       {SR_CONF_OUTPUT_CHANNEL, SR_T_CHAR, "output_channel",
+               "Output channel modes", NULL},
+       {SR_CONF_OVER_VOLTAGE_PROTECTION, SR_T_BOOL, "ovp",
+               "Over-voltage protection", NULL},
+       {SR_CONF_OVER_CURRENT_PROTECTION, SR_T_BOOL, "ocp",
+               "Over-current protection", NULL},
        {0, 0, NULL, NULL, NULL},
 };