2 * This file is part of the sigrok project.
4 * Copyright (C) 2011 Bert Vermeulen <bert@biot.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #define DEFAULT_BPL_BITS 64
25 #define DEFAULT_BPL_HEX 192
26 #define DEFAULT_BPL_ASCII 74
35 unsigned int num_enabled_probes;
37 unsigned int unitsize;
50 void flush_linebufs(struct context *ctx, char *outbuf);
51 int init(struct sr_output *o, int default_spl, enum outputmode mode);
52 int event(struct sr_output *o, int event_type, char **data_out,
53 uint64_t *length_out);
56 int init_bits(struct sr_output *o);
57 int data_bits(struct sr_output *o, char *data_in, uint64_t length_in,
58 char **data_out, uint64_t *length_out);
60 int init_hex(struct sr_output *o);
61 int data_hex(struct sr_output *o, char *data_in, uint64_t length_in,
62 char **data_out, uint64_t *length_out);
64 int init_ascii(struct sr_output *o);
65 int data_ascii(struct sr_output *o, char *data_in, uint64_t length_in,
66 char **data_out, uint64_t *length_out);