static int new_saleae_logic_firmware = 0;
-static int hw_set_configuration(int dev_index, int hwcap, void *value);
+static int hw_config_set(int dev_index, int hwcap, void *value);
static int hw_stop_acquisition(int dev_index, gpointer session_dev_id);
/**
if (fx2->cur_samplerate == 0) {
/* Samplerate hasn't been set; default to the slowest one. */
- if (hw_set_configuration(dev_index, SR_HWCAP_SAMPLERATE,
+ if (hw_config_set(dev_index, SR_HWCAP_SAMPLERATE,
&supported_samplerates[0]) == SR_ERR)
return SR_ERR;
}
return 0;
}
-static int set_configuration_samplerate(struct sr_dev_inst *sdi,
- uint64_t samplerate)
+static int config_set_samplerate(struct sr_dev_inst *sdi, uint64_t samplerate)
{
struct fx2_dev *fx2;
uint8_t divider;
return SR_OK;
}
-static int hw_set_configuration(int dev_index, int hwcap, void *value)
+static int hw_config_set(int dev_index, int hwcap, void *value)
{
struct sr_dev_inst *sdi;
struct fx2_dev *fx2;
if (hwcap == SR_HWCAP_SAMPLERATE) {
tmp_u64 = value;
- ret = set_configuration_samplerate(sdi, *tmp_u64);
+ ret = config_set_samplerate(sdi, *tmp_u64);
} else if (hwcap == SR_HWCAP_PROBECONFIG) {
ret = configure_probes(fx2, (GSList *) value);
} else if (hwcap == SR_HWCAP_LIMIT_SAMPLES) {
.get_dev_info = hw_get_dev_info,
.get_status = hw_get_status,
.hwcap_get_all = hw_hwcap_get_all,
- .set_configuration = hw_set_configuration,
+ .config_set = hw_config_set,
.start_acquisition = hw_start_acquisition,
.stop_acquisition = hw_stop_acquisition,
};