+
+ } else if (srci->key == SR_CONF_BUFFERSIZE) {
+ /* Supported buffer sizes */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_BUFFERSIZE,
+ (const void **)&integers, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported buffer sizes:\n");
+ for (i = 0; integers[i]; i++)
+ printf(" %"PRIu64"\n", integers[i]);
+
+ } else if (srci->key == SR_CONF_TIMEBASE) {
+ /* Supported time bases */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_TIMEBASE,
+ (const void **)&rationals, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported time bases:\n");
+ for (i = 0; rationals[i].p && rationals[i].q; i++)
+ printf(" %s\n", sr_period_string(
+ rationals[i].p * rationals[i].q));
+
+ } else if (srci->key == SR_CONF_TRIGGER_SOURCE) {
+ /* Supported trigger sources */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_TRIGGER_SOURCE,
+ (const void **)&stropts, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported trigger sources:\n");
+ for (i = 0; stropts[i]; i++)
+ printf(" %s\n", stropts[i]);
+
+ } else if (srci->key == SR_CONF_FILTER) {
+ /* Supported filters */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_FILTER,
+ (const void **)&stropts, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported filter targets:\n");
+ for (i = 0; stropts[i]; i++)
+ printf(" %s\n", stropts[i]);
+
+ } else if (srci->key == SR_CONF_VDIV) {
+ /* Supported volts/div values */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_VDIV,
+ (const void **)&rationals, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported volts/div:\n");
+ for (i = 0; rationals[i].p && rationals[i].q; i++)
+ printf(" %s\n", sr_voltage_string( &rationals[i]));
+
+ } else if (srci->key == SR_CONF_COUPLING) {
+ /* Supported coupling settings */
+ printf(" %s", srci->id);
+ if (sr_config_list(sdi->driver, SR_CONF_COUPLING,
+ (const void **)&stropts, sdi) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported coupling options:\n");
+ for (i = 0; stropts[i]; i++)
+ printf(" %s\n", stropts[i]);
+