hwdriver: Add SR_CONF_DUTY_CYCLE & SR_CONF_PHASE.

This commit is contained in:
Timo Kokkonen 2020-08-29 12:37:46 -07:00 committed by Gerhard Sittig
parent 2dddd5bd5e
commit 63eec38073
2 changed files with 10 additions and 0 deletions

View File

@ -1041,6 +1041,12 @@ enum sr_configkey {
/** The number of digits (e.g. for a DMM). */
SR_CONF_DIGITS,
/** Phase of a source signal. */
SR_CONF_PHASE,
/** Duty cycle of a source signal. */
SR_CONF_DUTY_CYCLE,
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Special stuff -------------------------------------------------*/

View File

@ -201,6 +201,10 @@ static struct sr_key_info sr_key_info_config[] = {
"Range", NULL},
{SR_CONF_DIGITS, SR_T_STRING, "digits",
"Digits", NULL},
{SR_CONF_PHASE, SR_T_FLOAT, "phase",
"Phase", NULL},
{SR_CONF_DUTY_CYCLE, SR_T_FLOAT, "output_duty_cycle",
"Duty Cycle", NULL},
/* Special stuff */
{SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",