hwdriver: Add SR_CONF_CLOCK_EDGE option.

Allow the edge of an external clock input to be configured by
means of an SR_CONF_CLOCK_EDGE configuration setting.  This is
a string option with the same format as SR_CONF_TRIGGER_SLOPE.
This commit is contained in:
Daniel Elstner 2014-01-29 20:53:51 +01:00 committed by Bert Vermeulen
parent 625763e2c2
commit 860bc59b0f
2 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,8 @@ static struct sr_config_info sr_config_info_data[] = {
"Over-current protection", NULL},
{SR_CONF_LIMIT_SAMPLES, SR_T_UINT64, "limit_samples",
"Sample limit", NULL},
{SR_CONF_CLOCK_EDGE, SR_T_CHAR, "clock_edge",
"Clock edge", NULL},
{0, 0, NULL, NULL, NULL},
};

View File

@ -834,6 +834,9 @@ enum {
/** Over-current protection (OCP) */
SR_CONF_OVER_CURRENT_PROTECTION,
/** Choice of clock edge for external clock ("r" or "f"). */
SR_CONF_CLOCK_EDGE,
/*--- Special stuff -------------------------------------------------*/
/** Scan options supported by the driver. */