From: Alexandru Gagniuc Date: Thu, 30 Apr 2015 00:05:59 +0000 (-0700) Subject: global: Add configuration key for output frequency target X-Git-Tag: libsigrok-0.4.0~511 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a77585d4ae95e103ebf3ae03fc0a219366c4c0c7;p=libsigrok.git global: Add configuration key for output frequency target This will be used to set up the output frequency of AC sources. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 7b4ca15b..3c204798 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -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. */ diff --git a/src/hwdriver.c b/src/hwdriver.c index c6c56456..dea7c9e4 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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",