]> sigrok.org Git - libsigrok.git/commitdiff
global: Add configuration key for output frequency target
authorAlexandru Gagniuc <redacted>
Thu, 30 Apr 2015 00:05:59 +0000 (17:05 -0700)
committerUwe Hermann <redacted>
Wed, 6 May 2015 17:41:46 +0000 (19:41 +0200)
This will be used to set up the output frequency of AC sources.

include/libsigrok/libsigrok.h
src/hwdriver.c

index 7b4ca15bbe1410abdd06267819a539a5c8d9315c..3c204798ef8d3b056597b60463d573f7c1772225 100644 (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. */
index c6c5645659e44a50d81c230f0b1dcc70a97722a0..dea7c9e42c604760c999e2c0b0e7f22e0d0af797 100644 (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",