]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Allow retrieving frame limit
authorValentin Ochs <redacted>
Sat, 27 Jun 2020 20:44:53 +0000 (22:44 +0200)
committerValentin Ochs <redacted>
Sat, 27 Jun 2020 20:57:10 +0000 (22:57 +0200)
src/hardware/rigol-ds/api.c

index eb3aabf7624f8ebb9a6712a16e9d2ca1658ba02a..426b9f9072339bff1bad95a53d82705720a17fdf 100644 (file)
@@ -42,7 +42,7 @@ static const uint32_t drvopts[] = {
 };
 
 static const uint32_t devopts[] = {
-       SR_CONF_LIMIT_FRAMES | SR_CONF_SET,
+       SR_CONF_LIMIT_FRAMES | SR_CONF_GET | SR_CONF_SET,
        SR_CONF_SAMPLERATE | SR_CONF_GET,
        SR_CONF_TIMEBASE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
        SR_CONF_NUM_HDIV | SR_CONF_GET,
@@ -572,6 +572,9 @@ static int config_get(uint32_t key, GVariant **data,
                else
                        *data = g_variant_new_string("Segmented");
                break;
+       case SR_CONF_LIMIT_FRAMES:
+               *data = g_variant_new_uint64(devc->limit_frames);
+               break;
        case SR_CONF_SAMPLERATE:
                *data = g_variant_new_uint64(devc->sample_rate);
                break;