X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fhameg-hmo%2Fprotocol.h;h=bdf70fc55ca3b6262162cb95f761e2436056c0f6;hb=5a7e62211c4714ea2aac35baac10cf448373d4f5;hp=18dde31f66b19dd2c746b6bdd13d8e6ee9398a8a;hpb=8de2dc3b2e6ee1cb2df31db567e59f197623007c;p=libsigrok.git diff --git a/hardware/hameg-hmo/protocol.h b/hardware/hameg-hmo/protocol.h index 18dde31f..bdf70fc5 100644 --- a/hardware/hameg-hmo/protocol.h +++ b/hardware/hameg-hmo/protocol.h @@ -85,6 +85,7 @@ struct scope_state { int trigger_source; int trigger_slope; + uint64_t sample_rate; }; /** Private, per-device-instance driver context. */ @@ -92,11 +93,11 @@ struct dev_context { void *model_config; void *model_state; - struct sr_probe_group *analog_groups; - struct sr_probe_group *digital_groups; + struct sr_channel_group *analog_groups; + struct sr_channel_group *digital_groups; - GSList *enabled_probes; - GSList *current_probe; + GSList *enabled_channels; + GSList *current_channel; uint64_t num_frames; uint64_t frame_limit; @@ -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