]> sigrok.org Git - libsigrok.git/blobdiff - hardware/zeroplus-logic-cube/protocol.h
zeroplus: Add voltage threshold support
[libsigrok.git] / hardware / zeroplus-logic-cube / protocol.h
index 718dd217ad83f3378b3c8675dc800e415ee213cd..09f82287bd87db9eddbed913611ce480b5b61460 100644 (file)
@@ -44,6 +44,7 @@ struct dev_context {
        // uint8_t trigger_buffer[NUM_TRIGGER_STAGES];
        int trigger;
        unsigned int capture_ratio;
+       double cur_threshold;
        const struct zp_model *prof;
 };
 
@@ -51,6 +52,7 @@ 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);
 SR_PRIV int set_capture_ratio(struct dev_context *devc, uint64_t ratio);
+SR_PRIV int set_voltage_threshold(struct dev_context *devc, double thresh);
 SR_PRIV void set_triggerbar(struct dev_context *devc);
 
 #endif