libsigrok
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
output.c
Go to the documentation of this file.
00001 /*
00002  * This file is part of the sigrok project.
00003  *
00004  * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
00005  *
00006  * This program is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 #include "sigrok.h"
00021 #include "sigrok-internal.h"
00022 
00023 extern SR_PRIV struct sr_output_format output_text_bits;
00024 extern SR_PRIV struct sr_output_format output_text_hex;
00025 extern SR_PRIV struct sr_output_format output_text_ascii;
00026 extern SR_PRIV struct sr_output_format output_binary;
00027 extern SR_PRIV struct sr_output_format output_vcd;
00028 extern SR_PRIV struct sr_output_format output_ols;
00029 extern SR_PRIV struct sr_output_format output_gnuplot;
00030 extern SR_PRIV struct sr_output_format output_chronovu_la8;
00031 extern SR_PRIV struct sr_output_format output_csv;
00032 /* extern SR_PRIV struct sr_output_format output_analog_bits; */
00033 /* extern SR_PRIV struct sr_output_format output_analog_gnuplot; */
00034 
00035 static struct sr_output_format *output_module_list[] = {
00036         &output_text_bits,
00037         &output_text_hex,
00038         &output_text_ascii,
00039         &output_binary,
00040         &output_vcd,
00041         &output_ols,
00042         &output_gnuplot,
00043         &output_chronovu_la8,
00044         &output_csv,
00045         /* &output_analog_bits, */
00046         /* &output_analog_gnuplot, */
00047         NULL,
00048 };
00049 
00050 SR_API struct sr_output_format **sr_output_list(void)
00051 {
00052         return output_module_list;
00053 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines