diff --git a/hardware/chronovu-la8/api.c b/hardware/chronovu-la8/api.c index a05a7a94..3d5a5658 100644 --- a/hardware/chronovu-la8/api.c +++ b/hardware/chronovu-la8/api.c @@ -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; } diff --git a/hardware/chronovu-la8/protocol.h b/hardware/chronovu-la8/protocol.h index a7de26d1..146fc112 100644 --- a/hardware/chronovu-la8/protocol.h +++ b/hardware/chronovu-la8/protocol.h @@ -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 */