]> sigrok.org Git - libsigrok.git/commitdiff
chronovu-la8: Publish SR_CONF_MAX_UNCOMPRESSED_SAMPLES.
authorBert Vermeulen <redacted>
Thu, 9 Jan 2014 15:28:29 +0000 (16:28 +0100)
committerBert Vermeulen <redacted>
Thu, 9 Jan 2014 15:28:29 +0000 (16:28 +0100)
hardware/chronovu-la8/api.c
hardware/chronovu-la8/protocol.h

index a05a7a94f10da3352f99bc941da4c796402e7169..3d5a5658e16293e9b3dd8f64261edf123d943332 100644 (file)
@@ -42,6 +42,7 @@ SR_PRIV const int32_t chronovu_la8_hwcaps[] = {
        SR_CONF_SAMPLERATE,
        SR_CONF_LIMIT_MSEC, /* TODO: Not yet implemented. */
        SR_CONF_LIMIT_SAMPLES, /* TODO: Not yet implemented. */
+       SR_CONF_MAX_UNCOMPRESSED_SAMPLES,
 };
 
 /*
@@ -279,6 +280,9 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi,
                } else
                        return SR_ERR;
                break;
+       case SR_CONF_MAX_UNCOMPRESSED_SAMPLES:
+               *data = g_variant_new_uint64(MAX_NUM_SAMPLES);
+               break;
        default:
                return SR_ERR_NA;
        }
index a7de26d18e6be64bbdcad3bec5a1592571c4990f..146fc112d5955feb4b8fb6c031bb76e665711267 100644 (file)
@@ -39,6 +39,7 @@
 #define TRIGGER_TYPE                   "01"
 #define SDRAM_SIZE                     (8 * 1024 * 1024)
 #define MIN_NUM_SAMPLES                        1
+#define MAX_NUM_SAMPLES                        SDRAM_SIZE
 
 #define BS                             4096 /* Block size */
 #define NUM_BLOCKS                     2048 /* Number of blocks */