X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fzeroplus-logic-cube%2Fprotocol.h;h=b0c358be09923a61a86b2ef049d42b75a7a23eb8;hb=076d59b7e62e9cef40f2a9edd63b42c99f442b4f;hp=e179f1f8a2280b86b89e5f5e1c811ab6f52eaa1e;hpb=fd86380b48f1abff31f523e33c7c12280be1c1f7;p=libsigrok.git diff --git a/src/hardware/zeroplus-logic-cube/protocol.h b/src/hardware/zeroplus-logic-cube/protocol.h index e179f1f8..b0c358be 100644 --- a/src/hardware/zeroplus-logic-cube/protocol.h +++ b/src/hardware/zeroplus-logic-cube/protocol.h @@ -30,24 +30,21 @@ #define LOG_PREFIX "zeroplus-logic-cube" +struct zp_model; struct dev_context { uint64_t cur_samplerate; uint64_t max_samplerate; uint64_t limit_samples; - int num_channels; - int memory_size; - unsigned int max_sample_depth; - //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]; + size_t num_channels; + size_t memory_size; + size_t max_sample_depth; int trigger; uint64_t capture_ratio; double cur_threshold; const struct zp_model *prof; }; -SR_PRIV unsigned int get_memory_size(int type); +SR_PRIV size_t 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_voltage_threshold(struct dev_context *devc, double thresh);