sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING
This commit is contained in:
parent
313deed219
commit
e1c8b2abfb
|
@ -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_TIMEBASE, SR_T_RATIONAL_PERIOD, "Time base", "timebase"},
|
||||||
{SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
|
{SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
|
||||||
{SR_HWCAP_VDIV, SR_T_RATIONAL_VOLT, "Volts/div", "vdiv"},
|
{SR_HWCAP_VDIV, SR_T_RATIONAL_VOLT, "Volts/div", "vdiv"},
|
||||||
|
{SR_HWCAP_COUPLING, SR_T_CHAR, "Coupling", "coupling"},
|
||||||
{0, 0, NULL, NULL},
|
{0, 0, NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -323,6 +323,9 @@ enum {
|
||||||
/** Volts/div. */
|
/** Volts/div. */
|
||||||
SR_HWCAP_VDIV,
|
SR_HWCAP_VDIV,
|
||||||
|
|
||||||
|
/** Coupling. */
|
||||||
|
SR_HWCAP_COUPLING,
|
||||||
|
|
||||||
/*--- Special stuff -------------------------------------------------*/
|
/*--- Special stuff -------------------------------------------------*/
|
||||||
|
|
||||||
/* TODO: Better description. */
|
/* TODO: Better description. */
|
||||||
|
@ -433,6 +436,8 @@ enum {
|
||||||
SR_DI_FILTERS,
|
SR_DI_FILTERS,
|
||||||
/* Valid volts/div values */
|
/* Valid volts/div values */
|
||||||
SR_DI_VDIVS,
|
SR_DI_VDIVS,
|
||||||
|
/* Coupling options */
|
||||||
|
SR_DI_COUPLING,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue