]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/protocol.h
Constify sr_dev_driver::name and sr_dev_driver::long_name.
[libsigrok.git] / src / hardware / atten-pps3xxx / protocol.h
index 2ad9e857b3f3d377df2b81e926fabda060026e5d..633c0a20d39835f7beb3be79b430ba92bc3b98a9 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <stdint.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "atten-pps3xxx"
@@ -74,7 +74,7 @@ struct per_channel_config {
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Model-specific information */
-       struct pps_model *model;
+       const struct pps_model *model;
 
        /* Acquisition state */
        gboolean acquisition_running;
@@ -82,7 +82,8 @@ struct dev_context {
        /* Operational state */
        gboolean config_dirty;
        struct per_channel_config *config;
-       float byte_delay_ms;
+       /* Blocking write timeout for packet. */
+       int delay_ms;
        /* Received from device. */
        int channel_mode;
        gboolean over_current_protection;