From: Daniel Ribeiro Date: Fri, 21 Jan 2011 03:14:53 +0000 (-0200) Subject: introduce analog_sample datafeed packet X-Git-Tag: libsigrok-0.1.0~395 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=48d783e4b5e557b6b7beee3907f0e8bd88741426;p=libsigrok.git introduce analog_sample datafeed packet These structs define the packet format used to exchange data using the DF_ANALOG packet type. --- diff --git a/sigrok.h b/sigrok.h index 3d56106f..11f01542 100644 --- a/sigrok.h +++ b/sigrok.h @@ -117,6 +117,17 @@ struct datafeed_header { int num_logic_probes; }; +struct analog_probe { + uint8_t att; + uint8_t res; + uint64_t val; +}; + +struct analog_sample { + uint16_t num_probes; + struct analog_probe probes[]; +}; + struct input { struct input_format *format; char *param;