X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fprotocol.h;h=4b55b332f702128fe7a53e06b742cfe3bdd9401c;hb=7b3567126c22622180d82463f4f848606d52d2cd;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..4b55b332 100644 --- a/hardware/zeroplus-logic-cube/protocol.h +++ b/hardware/zeroplus-logic-cube/protocol.h @@ -38,12 +38,13 @@ struct dev_context { int num_channels; int memory_size; unsigned int max_sample_depth; - //uint8_t probe_mask; + //uint8_t channel_mask; //uint8_t trigger_mask[NUM_TRIGGER_STAGES]; //uint8_t trigger_value[NUM_TRIGGER_STAGES]; // 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