comment[0] = '\0';
if (o->device->plugin) {
samplerate = *((uint64_t *) o->device->plugin->get_device_info(
- o->device->plugin_index, DI_CUR_SAMPLERATE));
- if (!(frequency_s = sigrok_samplerate_string(samplerate))) {
+ o->device->plugin_index, SR_DI_CUR_SAMPLERATE));
+ if (!(frequency_s = sr_samplerate_string(samplerate))) {
free(ctx->header);
free(ctx);
return SR_ERR;
sprintf(c, "# %d\t\t%s\n", i + 1, ctx->probelist[i]);
}
- if (!(frequency_s = sigrok_period_string(samplerate))) {
+ if (!(frequency_s = sr_period_string(samplerate))) {
free(ctx->header);
free(ctx);
return SR_ERR;
ctx = o->internal;
switch (event_type) {
- case DF_TRIGGER:
+ case SR_DF_TRIGGER:
/* TODO: can a trigger mark be in a gnuplot data file? */
break;
- case DF_END:
+ case SR_DF_END:
free(o->internal);
o->internal = NULL;
break;
comment[0] = '\0';
if (o->device->plugin) {
samplerate = *((uint64_t *) o->device->plugin->get_device_info(
- o->device->plugin_index, DI_CUR_SAMPLERATE));
- if (!(frequency_s = sigrok_samplerate_string(samplerate))) {
+ o->device->plugin_index, SR_DI_CUR_SAMPLERATE));
+ if (!(frequency_s = sr_samplerate_string(samplerate))) {
free(ctx->header);
free(ctx);
return SR_ERR;
sprintf(c, "# %d\t\t%s\n", i + 1, ctx->probelist[i]);
}
- if (!(frequency_s = sigrok_period_string(samplerate))) {
+ if (!(frequency_s = sr_period_string(samplerate))) {
free(ctx->header);
free(ctx);
return SR_ERR;
struct sr_output_format output_gnuplot = {
"gnuplot",
"Gnuplot",
- DF_LOGIC,
+ SR_DF_LOGIC,
init,
data,
event,
struct sr_output_format output_analog_gnuplot = {
"analog_gnuplot",
"Gnuplot analog",
- DF_ANALOG,
+ SR_DF_ANALOG,
analog_init,
analog_data,
event,