]> sigrok.org Git - libsigrok.git/blobdiff - hardware/genericdmm/genericdmm.h
sr: add new analog output module
[libsigrok.git] / hardware / genericdmm / genericdmm.h
index d961949415ae0c4a505cc0b7ac53a4854426c44a..cb323e41a77d39e4091f707a335433da1fde9601 100644 (file)
@@ -41,10 +41,17 @@ struct dev_profile {
        char *model;
        struct dmmchip *chip;
        int transport;
+       int poll_timeout;
        struct sr_hwopt *defaults_opts;
 };
 
-struct context {
+/* Private driver context. */
+struct drv_context {
+       GSList *instances;
+};
+
+/* Private, per-device-instance driver context. */
+struct dev_context {
        struct dev_profile *profile;
        uint64_t limit_samples;
        uint64_t limit_msec;
@@ -77,7 +84,7 @@ struct dmmchip {
        GSList *(*scan) (GSList *options);
 
        /* Called whenever a chunk of data arrives. */
-       int (*data) (struct sr_dev_inst *sdi, unsigned char *data);
+       int (*data) (struct sr_dev_inst *sdi);
 };