+#define MAX_RENUM_DELAY_MS 3000
+
+#define DEFAULT_VOLTAGE 2
+#define DEFAULT_COUPLING COUPLING_DC
+#define DEFAULT_SAMPLERATE SR_MHZ(8)
+
+#define NUM_CHANNELS 2
+
+#define SAMPLERATE_VALUES \
+ SR_MHZ(48), SR_MHZ(30), SR_MHZ(24), \
+ SR_MHZ(16), SR_MHZ(8), SR_MHZ(4), \
+ SR_MHZ(1), SR_KHZ(500), SR_KHZ(200), \
+ SR_KHZ(100),
+
+#define SAMPLERATE_REGS \
+ 48, 30, 24, 16, 8, 4, 1, 50, 20, 10,
+
+#define VDIV_VALUES \
+ { 1, 1 }, \
+ { 500, 1000 }, \
+ { 250, 1000 }, \
+ { 100, 1000 },
+
+#define VDIV_VALUES_INSTRUSTAR \
+ { 128, 100 }, \
+ { 705, 1000 }, \
+ { 288, 1000 }, \
+ { 140, 1000 }, \
+ { 576, 10000 }, \
+ { 176, 10000 },
+
+#define VDIV_REG \
+ 1, 2, 5, 10, 11, 12, 13,
+
+#define VDIV_MULTIPLIER 10
+
+/* Weird flushing needed for filtering glitch away. */
+#define FLUSH_PACKET_SIZE 1024
+
+#define MIN_PACKET_SIZE 512
+#ifdef _WIN32
+#define MAX_PACKET_SIZE (2 * 1024 * 1024)
+#else
+#define MAX_PACKET_SIZE (12 * 1024 * 1024)
+#endif