if (o->device->plugin) {
ctx->samplerate = *((uint64_t *) o->device->plugin->get_device_info(
- o->device->plugin_index, DI_CUR_SAMPLERATE));
- if (!((samplerate_s = sigrok_samplerate_string(ctx->samplerate)))) {
+ o->device->plugin_index, SR_DI_CUR_SAMPLERATE));
+ if (!((samplerate_s = sr_samplerate_string(ctx->samplerate)))) {
g_string_free(ctx->header, TRUE);
free(ctx);
return SR_ERR;
ctx->period = MHZ(1);
else
ctx->period = KHZ(1);
- if (!(frequency_s = sigrok_period_string(ctx->period))) {
+ if (!(frequency_s = sr_period_string(ctx->period))) {
g_string_free(ctx->header, TRUE);
free(ctx);
return SR_ERR;
ctx = o->internal;
switch (event_type) {
- case DF_END:
+ case SR_DF_END:
outbuf = strdup("$dumpoff\n$end\n");
*data_out = outbuf;
*length_out = strlen(outbuf);
struct sr_output_format output_vcd = {
"vcd",
"Value Change Dump (VCD)",
- DF_LOGIC,
+ SR_DF_LOGIC,
init,
data,
event,