sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING

This commit is contained in:
Bert Vermeulen 2012-05-17 03:16:01 +02:00
parent 313deed219
commit e1c8b2abfb
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
{SR_HWCAP_TIMEBASE, SR_T_RATIONAL_PERIOD, "Time base", "timebase"},
{SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
{SR_HWCAP_VDIV, SR_T_RATIONAL_VOLT, "Volts/div", "vdiv"},
{SR_HWCAP_COUPLING, SR_T_CHAR, "Coupling", "coupling"},
{0, 0, NULL, NULL},
};

View File

@ -323,6 +323,9 @@ enum {
/** Volts/div. */
SR_HWCAP_VDIV,
/** Coupling. */
SR_HWCAP_COUPLING,
/*--- Special stuff -------------------------------------------------*/
/* TODO: Better description. */
@ -433,6 +436,8 @@ enum {
SR_DI_FILTERS,
/* Valid volts/div values */
SR_DI_VDIVS,
/* Coupling options */
SR_DI_COUPLING,
};
/*