]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hameg-hmo/protocol.h
hameg-hmo: Add support for sample rate fetching.
[libsigrok.git] / hardware / hameg-hmo / protocol.h
index 18dde31f66b19dd2c746b6bdd13d8e6ee9398a8a..e37a4d23466808915904d671bc738e7b16f9f163 100644 (file)
@@ -85,6 +85,7 @@ struct scope_state {
 
        int trigger_source;
        int trigger_slope;
+       uint64_t sample_rate;
 };
 
 /** Private, per-device-instance driver context. */
@@ -109,5 +110,6 @@ SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data);
 SR_PRIV struct scope_state *hmo_scope_state_new(struct scope_config *config);
 SR_PRIV void hmo_scope_state_free(struct scope_state *state);
 SR_PRIV int hmo_scope_state_get(struct sr_dev_inst *sdi);
+SR_PRIV int hmo_update_sample_rate(const struct sr_dev_inst *sdi);
 
 #endif