X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Flecroy-xstream%2Fprotocol.h;h=f639dfffa665fd4fa7bf8549d044d1bb302b7be4;hb=584269fd2f44daa61497fb2cc9baa10a472577b0;hp=fecab8905147f20854bc0c48d88ff51df03254b9;hpb=692716f5d1aae4ef06c67b57aaf253f46f538c33;p=libsigrok.git diff --git a/src/hardware/lecroy-xstream/protocol.h b/src/hardware/lecroy-xstream/protocol.h index fecab890..f639dfff 100644 --- a/src/hardware/lecroy-xstream/protocol.h +++ b/src/hardware/lecroy-xstream/protocol.h @@ -47,10 +47,10 @@ struct scope_config { const char *(*trigger_slopes)[]; const uint8_t num_trigger_slopes; - const struct sr_rational *timebases; + const uint64_t (*timebases)[][2]; const uint8_t num_timebases; - const struct sr_rational *vdivs; + const uint64_t (*vdivs)[][2]; const uint8_t num_vdivs; const uint8_t num_xdivs; @@ -96,6 +96,9 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data); SR_PRIV void lecroy_xstream_state_free(struct scope_state *state); SR_PRIV int lecroy_xstream_state_get(struct sr_dev_inst *sdi); -SR_PRIV int lecroy_xstream_update_sample_rate(const struct sr_dev_inst *sdi); +SR_PRIV int lecroy_xstream_channel_state_set(const struct sr_dev_inst *sdi, + const int ch_index, gboolean ch_state); +SR_PRIV int lecroy_xstream_update_sample_rate(const struct sr_dev_inst *sdi, + int num_of_samples); #endif