]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/appa-55ii/protocol.h
scpi-pps: don't break SCPI devices when scanning for HP-IB devices
[libsigrok.git] / src / hardware / appa-55ii / protocol.h
index eeae8e1ad4c4ce3e124095a4c68809d6c070cfef..171ac63670cb959391e8cfc640144042f8846c37 100644 (file)
 
 #define LOG_PREFIX "appa-55ii"
 
-#define APPA_55II_NUM_CHANNELS  2
-#define APPA_55II_BUF_SIZE    (4 + 32 + 1)
-#define DEFAULT_DATA_SOURCE   DATA_SOURCE_LIVE
+#define APPA_55II_NUM_CHANNELS 2
+#define APPA_55II_BUF_SIZE     (4 + 32 + 1)
+#define DEFAULT_DATA_SOURCE    DATA_SOURCE_LIVE
 
 enum {
        DATA_SOURCE_LIVE,
        DATA_SOURCE_MEMORY,
 };
 
-/** Private, per-device-instance driver context. */
 struct dev_context {
-       /* Acquisition settings */
        struct sr_sw_limits limits;
-       gboolean data_source;     /**< Whether to read live samples or memory */
+       gboolean data_source; /**< Whether to read live samples or memory */
 
-       /* Temporary state across callbacks */
        uint8_t buf[APPA_55II_BUF_SIZE];
        unsigned int buf_len;
        uint8_t log_buf[64];