#include <sigrok.h>
#include "config.h"
-
static int data(struct sr_output *o, const char *data_in, uint64_t length_in,
char **data_out, uint64_t *length_out)
{
#define MAX_HEADER_LEN \
(1024 + (SR_MAX_NUM_PROBES * (SR_MAX_PROBENAME_LEN + 10)))
-const char *gnuplot_header = "\
+static const char *gnuplot_header = "\
# Sample data in space-separated columns format usable by gnuplot\n\
#\n\
# Generated by: %s on %s%s\
----------------------------------------\n\
# 0\t\tSample counter (for internal gnuplot purposes)\n%s\n";
-const char *gnuplot_header_comment = "\
+static const char *gnuplot_header_comment = "\
# Comment: Acquisition with %d/%d probes at %s\n";
static int init(struct sr_output *o)
unsigned int unitsize;
};
-
static int init(struct sr_output *o)
{
struct context *ctx;
$enddefinitions $end\n\
$dumpvars\n";
-const char *vcd_header_comment = "\
+static const char *vcd_header_comment = "\
$comment\n Acquisition with %d/%d probes at %s\n$end\n";
static int init(struct sr_output *o)
#include <sigrok.h>
#include "text.h"
-
int init_ascii(struct sr_output *o)
{
return init(o, DEFAULT_BPL_ASCII, MODE_ASCII);
return SR_OK;
}
-
struct sr_output_format output_text_ascii = {
"ascii",
"ASCII (takes argument, default 74)",
data_ascii,
event,
};
-
#include <sigrok.h>
#include "text.h"
-
int init_bits(struct sr_output *o)
{
return init(o, DEFAULT_BPL_BITS, MODE_BITS);
return SR_OK;
}
-
struct sr_output_format output_text_bits = {
"bits",
"Bits (takes argument, default 64)",
data_bits,
event,
};
-
#include <sigrok.h>
#include "text.h"
-
int init_hex(struct sr_output *o)
{
return init(o, DEFAULT_BPL_HEX, MODE_HEX);
return SR_OK;
}
-
struct sr_output_format output_text_hex = {
"hex",
"Hexadecimal (takes argument, default 192)",
data_hex,
event,
};
-
#include "config.h"
#include "text.h"
-
void flush_linebufs(struct context *ctx, char *outbuf)
{
static int max_probename_len = 0;
return SR_OK;
}
-