]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.h
fx2lafw: Made fx2lafw profiles const
[libsigrok.git] / hardware / fx2lafw / fx2lafw.h
index 6da663c90f5a66c102785f5ada10cb87f6123cb6..a2e6bcfbbe6d5ac0cb3b31d26d3b48fc46698219 100644 (file)
@@ -25,9 +25,6 @@
 #define TRIGGER_TYPES          "01rf"
 #define FIRMWARE               FIRMWARE_DIR "/fx2lafw-cwav-usbeeax.fw"
 
-#define FIRMWARE_VID           0x0925
-#define FIRMWARE_PID           0x3881
-
 #define MAX_RENUM_DELAY                3000 /* ms */
 #define NUM_SIMUL_TRANSFERS    10
 #define MAX_EMPTY_TRANSFERS    (NUM_SIMUL_TRANSFERS * 2)
@@ -36,15 +33,15 @@ struct fx2lafw_profile {
        uint16_t vid;
        uint16_t pid;
 
-       char *vendor;
-       char *model;
-       char *model_version;
+       const char *vendor;
+       const char *model;
+       const char *model_version;
 
        int num_probes;
 };
 
 struct context {
-       struct fx2lafw_profile *profile;
+       const struct fx2lafw_profile *profile;
 
        /*
         * Since we can't keep track of an fx2lafw device after upgrading
@@ -58,6 +55,8 @@ struct context {
        uint64_t cur_samplerate;
        uint64_t limit_samples;
 
+       int num_samples;
+
        void *session_dev_id;
 
        struct sr_usb_dev_inst *usb;