From 48d783e4b5e557b6b7beee3907f0e8bd88741426 Mon Sep 17 00:00:00 2001 From: Daniel Ribeiro Date: Fri, 21 Jan 2011 01:14:53 -0200 Subject: [PATCH] introduce analog_sample datafeed packet These structs define the packet format used to exchange data using the DF_ANALOG packet type. --- sigrok.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;