#include "sigrok.h"
-extern struct output_format output_text_binary;
+extern struct output_format output_text_bits;
extern struct output_format output_text_hex;
extern struct output_format output_binary;
extern struct output_format output_vcd;
extern struct output_format output_gnuplot;
struct output_format *output_module_list[] = {
- &output_text_binary,
+ &output_text_bits,
&output_text_hex,
&output_binary,
&output_vcd,
#include <glib.h>
#include <sigrok.h>
-#define DEFAULT_BPL_BIN 64
-#define DEFAULT_BPL_HEX 256
+#define DEFAULT_BPL_BITS 64
+#define DEFAULT_BPL_HEX 256
struct context {
unsigned int num_enabled_probes;
}
-static int init_binary(struct output *o)
+static int init_bits(struct output *o)
{
- return init(o, DEFAULT_BPL_BIN);
+ return init(o, DEFAULT_BPL_BITS);
}
-static int data_binary(struct output *o, char *data_in, uint64_t length_in, char **data_out, uint64_t *length_out)
+static int data_bits(struct output *o, char *data_in, uint64_t length_in, char **data_out, uint64_t *length_out)
{
struct context *ctx;
unsigned int outsize, offset, p;
static int init_hex(struct output *o)
{
- return init(o, DEFAULT_BPL_BIN);
+ return init(o, DEFAULT_BPL_BITS);
}
-struct output_format output_text_binary = {
+struct output_format output_text_bits = {
"bits",
"Text (bits)",
- init_binary,
- data_binary,
+ init_bits,
+ data_bits,
event
};