]> sigrok.org Git - libsigrok.git/commitdiff
Support for analog probes
authorDaniel Ribeiro <redacted>
Mon, 10 Jan 2011 17:08:43 +0000 (15:08 -0200)
committerDaniel Ribeiro <redacted>
Mon, 10 Jan 2011 17:08:43 +0000 (15:08 -0200)
Add a field to the probe struct to store the probe type.
Change DF_HEADER to report the quantity of each type of probe.

sigrok.h

index 5e6f2314c86874538feb79cd64c0c87016bc99dd..5606a1e5f118e94132fb8009804e8bbe398f7844 100644 (file)
--- 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;