-static int check_probe_group(struct dev_context *devc,
- const struct sr_probe_group *probe_group)
+static int check_channel_group(struct dev_context *devc,
+ const struct sr_channel_group *channel_group)
return PG_INVALID;
}
static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi,
return PG_INVALID;
}
static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi,
}
static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
}
static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
}
g_variant_get(data, "(tt)", &p, &q);
}
g_variant_get(data, "(tt)", &p, &q);
continue;
state->analog_channels[j - 1].vdiv = i;
g_ascii_formatd(float_str, sizeof(float_str), "%E", (float) p / q);
continue;
state->analog_channels[j - 1].vdiv = i;
g_ascii_formatd(float_str, sizeof(float_str), "%E", (float) p / q);
if (strcmp(tmp, (*model->coupling_options)[i]) != 0)
continue;
for (j = 1; j <= model->analog_channels; ++j) {
if (strcmp(tmp, (*model->coupling_options)[i]) != 0)
continue;
for (j = 1; j <= model->analog_channels; ++j) {
}
static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi,
}
static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi,
*data = g_variant_new_strv(*model->coupling_options,
g_strv_length((char **)*model->coupling_options));
break;
*data = g_variant_new_strv(*model->coupling_options,
g_strv_length((char **)*model->coupling_options));
break;