]> sigrok.org Git - libsigrok.git/blobdiff - hardware/zeroplus-logic-cube/protocol.h
fs9922: Fix diode mode parsing.
[libsigrok.git] / hardware / zeroplus-logic-cube / protocol.h
index e2c5d9e31baf1eef7f85ca2af1463f6a5b7c0455..ce06a8ce7c8472e8fbbaeb1a7ae8ff393e2bd0a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
  *
@@ -42,7 +42,7 @@ struct dev_context {
        uint64_t cur_samplerate;
        uint64_t max_samplerate;
        uint64_t limit_samples;
-       int num_channels; /* TODO: This isn't initialized before it's needed :( */
+       int num_channels;
        int memory_size;
        unsigned int max_memory_size;
        //uint8_t probe_mask;
@@ -51,13 +51,9 @@ struct dev_context {
        // uint8_t trigger_buffer[NUM_TRIGGER_STAGES];
        int trigger;
        unsigned int capture_ratio;
-
-       /* TODO: this belongs in the device instance */
-       struct sr_usb_dev_inst *usb;
+       const struct zp_model *prof;
 };
 
-extern const uint64_t zp_supported_samplerates[];
-
 SR_PRIV unsigned int get_memory_size(int type);
 SR_PRIV int zp_set_samplerate(struct dev_context *devc, uint64_t samplerate);
 SR_PRIV int set_limit_samples(struct dev_context *devc, uint64_t samples);