]> sigrok.org Git - libsigrok.git/blobdiff - sigrok.h
Support for analog probes
[libsigrok.git] / 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;