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:
Daniel Ribeiro 2011-01-10 15:08:43 -02:00
parent ac4a2ea45a
commit 921e753f7e
1 changed files with 8 additions and 1 deletions

View File

@ -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;