global: Add configuration key for output frequency target

This will be used to set up the output frequency of AC sources.
This commit is contained in:
Alexandru Gagniuc 2015-04-29 17:05:59 -07:00 committed by Uwe Hermann
parent b94dd07b08
commit a77585d4ae
2 changed files with 5 additions and 0 deletions

View File

@ -880,6 +880,9 @@ enum sr_configkey {
/** Equivalent circuit model. */
SR_CONF_EQUIV_CIRCUIT_MODEL,
/* Output frequency target in Hz. */
SR_CONF_OUTPUT_FREQUENCY_TARGET,
/*--- Special stuff -------------------------------------------------*/
/** Scan options supported by the driver. */

View File

@ -159,6 +159,8 @@ static struct sr_config_info sr_config_info_data[] = {
"Over-temperature protection", NULL},
{SR_CONF_OUTPUT_FREQUENCY, SR_T_FLOAT, "output_frequency",
"Output frequency", NULL},
{SR_CONF_OUTPUT_FREQUENCY_TARGET, SR_T_FLOAT, "output_frequency_target",
"Output frequency target", NULL},
{SR_CONF_MEASURED_QUANTITY, SR_T_STRING, "measured_quantity",
"Measured quantity", NULL},
{SR_CONF_MEASURED_2ND_QUANTITY, SR_T_STRING, "measured_2nd_quantity",