X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhwdriver.c;h=8cd9cdea736b068b4f09e41a0134c318be7f7bad;hb=a1eaa9e066ff8d86db8a1fba6615204d442c53d7;hp=914fc337cf79e3474b42d7d851e4e18660e00c7e;hpb=ca1a7cb56fbfeeb1c5b27ea87eb8603ca3ca888b;p=libsigrok.git diff --git a/src/hwdriver.c b/src/hwdriver.c index 914fc337..8cd9cdea 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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}, };