From: Daniel Ribeiro Date: Fri, 21 Jan 2011 13:25:50 +0000 (-0200) Subject: reduce analog_sample sizes. X-Git-Tag: libsigrok-0.1.0~392 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c3579621d569f4b1ef3c21c7e2ed3bdc855c617b;p=libsigrok.git reduce analog_sample sizes. To save resources, reduce the max ADC resolution and max probes per device. Just increase when needed. Soft limit: 256 probes, 16bit adc Hard limit: 2^64 probes, 64 bit adc --- diff --git a/sigrok.h b/sigrok.h index 11f01542..e3b6ac78 100644 --- a/sigrok.h +++ b/sigrok.h @@ -119,12 +119,12 @@ struct datafeed_header { struct analog_probe { uint8_t att; - uint8_t res; - uint64_t val; + uint8_t res; /* Needs to be a power of 2, FIXME */ + uint16_t val; /* Max hardware ADC width is 16bits */ }; struct analog_sample { - uint16_t num_probes; + uint8_t num_probes; /* Max hardware probes is 256 */ struct analog_probe probes[]; };