X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fprotocol.h;h=09f82287bd87db9eddbed913611ce480b5b61460;hb=4914dd4b9a9e38b72aa351a0322e812c9d6a0384;hp=718dd217ad83f3378b3c8675dc800e415ee213cd;hpb=3544f848e0d7f67af8e11ce7ec344b34cd797df3;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/protocol.h b/hardware/zeroplus-logic-cube/protocol.h index 718dd217..09f82287 100644 --- a/hardware/zeroplus-logic-cube/protocol.h +++ b/hardware/zeroplus-logic-cube/protocol.h @@ -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