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:
parent
f3163a6c2e
commit
48d783e4b5
11
sigrok.h
11
sigrok.h
|
@ -117,6 +117,17 @@ struct datafeed_header {
|
||||||
int num_logic_probes;
|
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 {
|
||||||
struct input_format *format;
|
struct input_format *format;
|
||||||
char *param;
|
char *param;
|
||||||
|
|
Loading…
Reference in New Issue