X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhwdriver.c;h=b31242ad7799dec7aef83d974bce5372b16f7e2b;hb=10e0d374cb9518d2d5e6d876bd72888478fd1900;hp=0aa7eb8c0f0517bf44dee0c30c964bdc679fcfe9;hpb=cffdc3e63b132795bfcaab91864c1c6b124e87fa;p=libsigrok.git diff --git a/src/hwdriver.c b/src/hwdriver.c index 0aa7eb8c..b31242ad 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -171,6 +171,10 @@ static struct sr_key_info sr_key_info_config[] = { "Equivalent circuit model", NULL}, {SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active", "Over-temperature protection active", NULL}, + {SR_CONF_UNDER_VOLTAGE_CONDITION, SR_T_BOOL, "uvc", + "Under-voltage condition", NULL}, + {SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE, SR_T_BOOL, "uvc_active", + "Under-voltage condition active", NULL}, /* Special stuff */ {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile", @@ -185,6 +189,8 @@ static struct sr_key_info sr_key_info_config[] = { "Data source", NULL}, {SR_CONF_PROBE_FACTOR, SR_T_UINT64, "probe_factor", "Probe factor", NULL}, + {SR_CONF_ADC_POWERLINE_CYCLES, SR_T_FLOAT, "nplc", + "Number of ADC powerline cycles", NULL}, /* Acquisition modes, sample limiting */ {SR_CONF_LIMIT_MSEC, SR_T_UINT64, "limit_time", @@ -391,7 +397,7 @@ SR_API int sr_driver_init(struct sr_context *ctx, struct sr_dev_driver *driver) /** * Enumerate scan options supported by this driver. * - * Before calling sr_driver_scan_options(), the user must have previously + * Before calling sr_driver_scan_options_list(), the user must have previously * initialized the driver by calling sr_driver_init(). * * @param driver The driver to enumerate options for. This must be a pointer @@ -404,7 +410,7 @@ SR_API int sr_driver_init(struct sr_context *ctx, struct sr_dev_driver *driver) * * @since 0.4.0 */ -SR_API GArray *sr_driver_scan_options(const struct sr_dev_driver *driver) +SR_API GArray *sr_driver_scan_options_list(const struct sr_dev_driver *driver) { GVariant *gvar; const uint32_t *opts;