introduce analog_sample datafeed packet

These structs define the packet format used to exchange data using
the DF_ANALOG packet type.
This commit is contained in:
Daniel Ribeiro 2011-01-21 01:14:53 -02:00
parent f3163a6c2e
commit 48d783e4b5
1 changed files with 11 additions and 0 deletions

View File

@ -117,6 +117,17 @@ struct datafeed_header {
int num_logic_probes;
};
struct analog_probe {
uint8_t att;
uint8_t res;
uint64_t val;
};
struct analog_sample {
uint16_t num_probes;
struct analog_probe probes[];
};
struct input {
struct input_format *format;
char *param;