]> sigrok.org Git - libsigrok.git/blobdiff - src/hwdriver.c
Revamp PPS-related config keys.
[libsigrok.git] / src / hwdriver.c
index 914fc337cf79e3474b42d7d851e4e18660e00c7e..8cd9cdea736b068b4f09e41a0134c318be7f7bad 100644 (file)
@@ -114,18 +114,30 @@ static struct sr_config_info sr_config_info_data[] = {
                "Maximum output current", NULL},
        {SR_CONF_OUTPUT_ENABLED, SR_T_BOOL, "output_enabled",
                "Output enabled", NULL},
-       {SR_CONF_OUTPUT_CHANNEL, SR_T_STRING, "output_channel",
+       {SR_CONF_OUTPUT_CHANNEL_CONFIG, SR_T_STRING, "output_channel_config",
                "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},
+       {SR_CONF_OVER_VOLTAGE_PROTECTION_ENABLED, SR_T_BOOL, "ovp_enabled",
+               "Over-voltage protection enabled", NULL},
+       {SR_CONF_OVER_VOLTAGE_PROTECTION_ACTIVE, SR_T_BOOL, "ovp_active",
+               "Over-voltage protection active", NULL},
+       {SR_CONF_OVER_VOLTAGE_PROTECTION_THRESHOLD, SR_T_FLOAT, "ovp_threshold",
+               "Over-voltage protection threshold", NULL},
+       {SR_CONF_OVER_CURRENT_PROTECTION_ENABLED, SR_T_BOOL, "ocp_enabled",
+               "Over-current protection enabled", NULL},
+       {SR_CONF_OVER_CURRENT_PROTECTION_ACTIVE, SR_T_BOOL, "ocp_active",
+               "Over-current protection active", NULL},
+       {SR_CONF_OVER_CURRENT_PROTECTION_THRESHOLD, SR_T_FLOAT, "ocp_threshold",
+               "Over-current protection threshold", NULL},
        {SR_CONF_LIMIT_SAMPLES, SR_T_UINT64, "limit_samples",
                "Sample limit", NULL},
        {SR_CONF_CLOCK_EDGE, SR_T_STRING, "clock_edge",
                "Clock edge", NULL},
        {SR_CONF_AMPLITUDE, SR_T_FLOAT, "amplitude",
                "Amplitude", NULL},
+       {SR_CONF_OVER_TEMPERATURE_PROTECTION, SR_T_BOOL, "otp",
+               "Over-temperature protection", NULL},
+       {SR_CONF_OUTPUT_REGULATION, SR_T_STRING, "output_regulation",
+               "Output channel regulation", NULL},
        {0, 0, NULL, NULL, NULL},
 };