]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/agilent-dmm/agilent-dmm.h
Introduce standard implementation of the dev_list() callback
[libsigrok.git] / src / hardware / agilent-dmm / agilent-dmm.h
index 2277111f62c3d3ecc74f760af40f7b437dbc3799..2c5da1f8b68722dad1486c03dc7aaffade8cd3d0 100644 (file)
 
 #define AGDMM_BUFSIZE  256
 
+/* Always USB-serial, 1ms is plenty. */
+#define SERIAL_WRITE_TIMEOUT_MS 1
+
 /* Supported models */
 enum {
-       AGILENT_U1231A = 1,
-       AGILENT_U1232A,
-       AGILENT_U1233A,
-       AGILENT_U1251A,
-       AGILENT_U1252A,
-       AGILENT_U1253A,
+       AGILENT_U1231 = 1,
+       AGILENT_U1232,
+       AGILENT_U1233,
+
+       AGILENT_U1241,
+       AGILENT_U1242,
+
+       AGILENT_U1251,
+       AGILENT_U1252,
+       AGILENT_U1253,
 };
 
 /* Supported device profiles */
@@ -48,9 +55,6 @@ struct dev_context {
        uint64_t limit_samples;
        uint64_t limit_msec;
 
-       /* Opaque pointer passed in by the frontend. */
-       void *cb_data;
-
        /* Runtime. */
        uint64_t num_samples;
        int64_t jobqueue[8];