X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fbrymen-bm86x%2Fprotocol.h;h=57af1552217dbdc79cff2d41f224991994f96bda;hb=102f12396660e0784134bccce5cc0679db325751;hp=db6f7d9be5e298f93c832515532a9254a08d9700;hpb=8d9c8554a53d3c22305558e6064a6a4873e83fe1;p=libsigrok.git diff --git a/hardware/brymen-bm86x/protocol.h b/hardware/brymen-bm86x/protocol.h index db6f7d9b..57af1552 100644 --- a/hardware/brymen-bm86x/protocol.h +++ b/hardware/brymen-bm86x/protocol.h @@ -25,19 +25,21 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with subsystem-specific prefix string. */ #define LOG_PREFIX "brymen-bm86x" /** Private, per-device-instance driver context. */ struct dev_context { - /* Model-specific information */ - /* 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 */ - + int interrupt_pending; }; SR_PRIV int brymen_bm86x_receive_data(int fd, int revents, void *cb_data);