X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-bm86x%2Fprotocol.h;h=c5c4d596807330ee3ce994abddf93d34df86136c;hb=7d1a4a52392a048c24ec25459f462a0126c9ad2c;hp=57af1552217dbdc79cff2d41f224991994f96bda;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/brymen-bm86x/protocol.h b/src/hardware/brymen-bm86x/protocol.h index 57af1552..c5c4d596 100644 --- a/src/hardware/brymen-bm86x/protocol.h +++ b/src/hardware/brymen-bm86x/protocol.h @@ -22,23 +22,14 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "brymen-bm86x" -/** Private, per-device-instance driver context. */ struct dev_context { - /* Acquisition settings */ - uint64_t limit_samples; /**< The sampling limit (in number of samples).*/ - uint64_t limit_msec; /**< The time limit (in milliseconds). */ - - /* Operational state */ - int detached_kernel_driver;/**< Whether kernel driver was detached or not */ - uint64_t num_samples; /**< The number of already received samples. */ - int64_t start_time; /**< The time at which sampling started. */ - - /* Temporary state across callbacks */ + struct sr_sw_limits sw_limits; + int detached_kernel_driver; /**< Whether kernel driver was detached or not */ int interrupt_pending; };