]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/korad-kaxxxxp/protocol.h
drivers: Add and use STD_CONFIG_LIST().
[libsigrok.git] / src / hardware / korad-kaxxxxp / protocol.h
index 1a9dfe302dc5fd705e2a62c6b012be269f355108..e88360e7edcf0f10b0dc734746e766fac6a1114b 100644 (file)
 #define KAXXXXP_POLL_INTERVAL_MS 80
 
 enum {
-       VELLEMAN_LABPS_3005D,
+       VELLEMAN_PS3005D,
+       VELLEMAN_LABPS3005D,
+       KORAD_KA3005P,
+       KORAD_KA3005P_0X01,
        /* Support for future devices with this protocol. */
 };
 
@@ -73,15 +76,10 @@ struct dev_context {
        const struct korad_kaxxxxp_model *model; /**< Model information. */
 
        /* Acquisition settings */
-       uint64_t limit_samples;
-       uint64_t limit_msec;
-       uint64_t num_samples;
-       int64_t starttime;
+       struct sr_sw_limits limits;
        int64_t req_sent_at;
        gboolean reply_pending;
 
-       void *cb_data;
-
        /* Operational state */
        float current;          /**< Last current value [A] read from device. */
        float current_max;      /**< Output current set. */