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.
This commit is contained in:
parent
ac4a2ea45a
commit
921e753f7e
9
sigrok.h
9
sigrok.h
|
@ -110,7 +110,8 @@ struct datafeed_header {
|
||||||
struct timeval starttime;
|
struct timeval starttime;
|
||||||
uint64_t samplerate;
|
uint64_t samplerate;
|
||||||
int protocol_id;
|
int protocol_id;
|
||||||
int num_probes;
|
int num_analog_probes;
|
||||||
|
int num_logic_probes;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -219,8 +220,14 @@ struct device {
|
||||||
struct datastore *datastore;
|
struct datastore *datastore;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
PROBE_TYPE_LOGIC,
|
||||||
|
PROBE_TYPE_ANALOG,
|
||||||
|
};
|
||||||
|
|
||||||
struct probe {
|
struct probe {
|
||||||
int index;
|
int index;
|
||||||
|
int type;
|
||||||
gboolean enabled;
|
gboolean enabled;
|
||||||
char *name;
|
char *name;
|
||||||
char *trigger;
|
char *trigger;
|
||||||
|
|
Loading…
Reference in New Issue