Add config key for amplitude.

This is intended for setting (or getting) the amplitude of a source
which doesn't really have an MQ associated with it, such as the demo
driver's analog channels.
This commit is contained in:
Bert Vermeulen 2014-07-27 23:59:49 +02:00
parent 7a958e2a07
commit cff7d8d60d
2 changed files with 5 additions and 0 deletions

View File

@ -756,6 +756,9 @@ enum sr_configkey {
/** Choice of clock edge for external clock ("r" or "f"). */
SR_CONF_CLOCK_EDGE,
/** Amplitude of a source without strictly-defined MQ. */
SR_CONF_AMPLITUDE,
/*--- Special stuff -------------------------------------------------*/
/** Scan options supported by the driver. */

View File

@ -124,6 +124,8 @@ static struct sr_config_info sr_config_info_data[] = {
"Sample limit", NULL},
{SR_CONF_CLOCK_EDGE, SR_T_STRING, "clock_edge",
"Clock edge", NULL},
{SR_CONF_AMPLITUDE, SR_T_FLOAT, "amplitude",
"Amplitude", NULL},
{0, 0, NULL, NULL, NULL},
};