sr: support for SR_HWCAP_VDIV and SR_DI_VDIVS

This commit is contained in:
Bert Vermeulen 2012-05-17 01:55:59 +02:00
parent 79afc8cac4
commit bd8db307da
2 changed files with 7 additions and 0 deletions

View File

@ -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},
};

View File

@ -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,
};
/*