From: Daniel Ribeiro Date: Mon, 10 Jan 2011 17:08:43 +0000 (-0200) Subject: Support for analog probes X-Git-Tag: libsigrok-0.1.0~457 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=921e753f7e2bef9590b1e344200b736a0faa18cc;p=libsigrok.git Support for analog probes Add a field to the probe struct to store the probe type. Change DF_HEADER to report the quantity of each type of probe. --- diff --git a/sigrok.h b/sigrok.h index 5e6f2314..5606a1e5 100644 --- a/sigrok.h +++ b/sigrok.h @@ -110,7 +110,8 @@ struct datafeed_header { struct timeval starttime; uint64_t samplerate; int protocol_id; - int num_probes; + int num_analog_probes; + int num_logic_probes; }; /* @@ -219,8 +220,14 @@ struct device { struct datastore *datastore; }; +enum { + PROBE_TYPE_LOGIC, + PROBE_TYPE_ANALOG, +}; + struct probe { int index; + int type; gboolean enabled; char *name; char *trigger;