]> sigrok.org Git - libsigrok.git/blobdiff - hardware/chronovu-la8/driver.h
sr: fix initialization for output from driverless devices
[libsigrok.git] / hardware / chronovu-la8 / driver.h
index f3a8e0135cb444e8e3580987e8c2dfb1105f01ac..ea89645a969cd4581a65f14a37a4eebabfb55bc2 100644 (file)
 #include <glib.h>
 #include <ftdi.h>
 #include <stdint.h>
-#include "sigrok.h"
-#include "sigrok-internal.h"
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
 
 #define USB_VENDOR_ID                  0x0403
-#define USB_PRODUCT_ID                 0x6001
 #define USB_DESCRIPTION                        "ChronoVu LA8"
 #define USB_VENDOR_NAME                        "ChronoVu"
 #define USB_MODEL_NAME                 "LA8"
@@ -98,6 +97,9 @@ struct context {
 
        /** The divcount value (determines the sample period) for the LA8. */
        uint8_t divcount;
+
+       /** This ChronoVu LA8's USB PID (multiple versions exist). */
+       uint16_t usb_pid;
 };
 
 /* driver.c */
@@ -114,7 +116,7 @@ SR_PRIV int la8_close(struct context *ctx);
 SR_PRIV int la8_close_usb_reset_sequencer(struct context *ctx);
 SR_PRIV int la8_reset(struct context *ctx);
 SR_PRIV int configure_probes(struct context *ctx, const GSList *probes);
-SR_PRIV int set_samplerate(struct sr_dev_inst *sdi, uint64_t samplerate);
+SR_PRIV int set_samplerate(const struct sr_dev_inst *sdi, uint64_t samplerate);
 SR_PRIV int la8_read_block(struct context *ctx);
 SR_PRIV void send_block_to_session_bus(struct context *ctx, int block);