]> sigrok.org Git - libsigrok.git/blobdiff - sigrok.h
reduce analog_sample sizes.
[libsigrok.git] / sigrok.h
index 3d56106f44fdce14ed3dc5f0853118b0b9054d66..e3b6ac78c56dbd5de0e27d626671ad9e3ce28fa6 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
@@ -117,6 +117,17 @@ struct datafeed_header {
        int num_logic_probes;
 };
 
+struct analog_probe {
+       uint8_t att;
+       uint8_t res;    /* Needs to be a power of 2, FIXME */
+       uint16_t val;   /* Max hardware ADC width is 16bits */
+};
+
+struct analog_sample {
+       uint8_t num_probes; /* Max hardware probes is 256 */
+       struct analog_probe probes[];
+};
+
 struct input {
        struct input_format *format;
        char *param;