X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fdriver.h;h=ea89645a969cd4581a65f14a37a4eebabfb55bc2;hb=aee878fa2efb8483bf93fa3bb03508357fc713a8;hp=f3a8e0135cb444e8e3580987e8c2dfb1105f01ac;hpb=b908f067f25f7c307e46ba05a23fd3cc5187379f;p=libsigrok.git diff --git a/hardware/chronovu-la8/driver.h b/hardware/chronovu-la8/driver.h index f3a8e013..ea89645a 100644 --- a/hardware/chronovu-la8/driver.h +++ b/hardware/chronovu-la8/driver.h @@ -24,11 +24,10 @@ #include #include #include -#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);