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