X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fatten-pps3xxx%2Fprotocol.h;h=633c0a20d39835f7beb3be79b430ba92bc3b98a9;hb=e5ef649be3167dbb9f6403e2c1d0e2e1b09d3a0c;hp=1441305d9730c0d28552f0147615c3b63c6c041a;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/atten-pps3xxx/protocol.h b/src/hardware/atten-pps3xxx/protocol.h index 1441305d..633c0a20 100644 --- a/src/hardware/atten-pps3xxx/protocol.h +++ b/src/hardware/atten-pps3xxx/protocol.h @@ -22,7 +22,7 @@ #include #include -#include "libsigrok.h" +#include #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,6 +82,8 @@ struct dev_context { /* Operational state */ gboolean config_dirty; struct per_channel_config *config; + /* Blocking write timeout for packet. */ + int delay_ms; /* Received from device. */ int channel_mode; gboolean over_current_protection;