#define MHZ(n) ((n) * 1000000)
#define GHZ(n) ((n) * 1000000000)
+#define HZ_TO_NS(n) (1000000000 / (n))
+
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#endif
struct timeval starttime;
uint64_t samplerate;
int protocol_id;
- int num_probes;
+ int num_analog_probes;
+ int num_logic_probes;
};
struct datastore *datastore;
};
+enum {
+ PROBE_TYPE_LOGIC,
+ PROBE_TYPE_ANALOG,
+};
+
struct probe {
int index;
+ int type;
gboolean enabled;
char *name;
char *trigger;