]> sigrok.org Git - libsigrok.git/commitdiff
Add config keys for programmable power supplies.
authorBert Vermeulen <redacted>
Wed, 8 Jan 2014 20:15:45 +0000 (21:15 +0100)
committerBert Vermeulen <redacted>
Thu, 9 Jan 2014 23:39:36 +0000 (00:39 +0100)
hwdriver.c
libsigrok.h

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},
 };
 
index 239820a1169fe09a5c44d484b584a09a010a698d..e43338e52dc0561985e5fb3ccc6a93643c55d472 100644 (file)
@@ -683,6 +683,9 @@ enum {
        /** The device can demodulate signals. */
        SR_CONF_DEMODULATOR,
 
+       /** Programmable power supply. */
+       SR_CONF_POWER_SUPPLY,
+
        /*--- Driver scan options -------------------------------------------*/
 
        /**
@@ -807,6 +810,30 @@ enum {
        /** The device supports setting the number of analog probes. */
        SR_CONF_NUM_ANALOG_PROBES,
 
+       /** Output voltage. */
+       SR_CONF_OUTPUT_VOLTAGE,
+
+       /** Maximum output voltage. */
+       SR_CONF_OUTPUT_VOLTAGE_MAX,
+
+       /** Output current. */
+       SR_CONF_OUTPUT_CURRENT,
+
+       /** Maximum output current. */
+       SR_CONF_OUTPUT_CURRENT_MAX,
+
+       /** Enabling/disabling output. */
+       SR_CONF_OUTPUT_ENABLED,
+
+       /** Channel output configuration. */
+       SR_CONF_OUTPUT_CHANNEL,
+
+       /** Over-voltage protection (OVP) */
+       SR_CONF_OVER_VOLTAGE_PROTECTION,
+
+       /** Over-current protection (OCP) */
+       SR_CONF_OVER_CURRENT_PROTECTION,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */