sr: support for SR_HWCAP_VDIV and SR_DI_VDIVS
This commit is contained in:
parent
79afc8cac4
commit
bd8db307da
|
@ -43,6 +43,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
|
|||
{SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"},
|
||||
{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"},
|
||||
{0, 0, NULL, NULL},
|
||||
};
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ enum {
|
|||
SR_T_BOOL,
|
||||
SR_T_FLOAT,
|
||||
SR_T_RATIONAL_PERIOD,
|
||||
SR_T_RATIONAL_VOLT,
|
||||
};
|
||||
|
||||
struct sr_rational {
|
||||
|
@ -319,6 +320,9 @@ enum {
|
|||
/** Filter. */
|
||||
SR_HWCAP_FILTER,
|
||||
|
||||
/** Volts/div. */
|
||||
SR_HWCAP_VDIV,
|
||||
|
||||
/*--- Special stuff -------------------------------------------------*/
|
||||
|
||||
/* TODO: Better description. */
|
||||
|
@ -427,6 +431,8 @@ enum {
|
|||
SR_DI_TRIGGER_SOURCES,
|
||||
/* Supported filter targets */
|
||||
SR_DI_FILTERS,
|
||||
/* Valid volts/div values */
|
||||
SR_DI_VDIVS,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue