gr-baz Package
baz_burster_config.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2004 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022 
00023 /*
00024  * gr-baz by Balint Seeber (http://spench.net/contact)
00025  * Information, documentation & samples: http://wiki.spench.net/wiki/gr-baz
00026  */
00027 
00028 #ifndef INCLUDED_BAZ_BURSTER_CONFIG_H
00029 #define INCLUDED_BAZ_BURSTER_CONFIG_H
00030 
00031 typedef struct baz_burster_config_t
00032 {
00033         int sample_rate;                // Hz
00034         int item_size;                  // bytes
00035         int burst_length;               // # items (= vlen)
00036         double interval;                // seconds|samples
00037         bool sample_interval;   // false: interval is seconds, true: interval is # samples
00038         bool relative_time;             // false: absolute time (calculate from absolute burst time), true: calculate from when last burst was transmitted
00039         bool drop_current;              // false: hold current message until queue can accept, true: drop current and try with future burst
00040         bool use_host_time;             // false: derive time from stream, true: use wall time
00041         bool read_time_tag;             // false: derive time only from stream, true: derive time from time tag AND sample count
00042         bool output_messages;   // output bursts as messages
00043         gr_msg_queue_sptr msgq; // message destination
00044         bool output_stream;             // output bursts on output stream
00045         bool trigger_on_tags;   // false: ignore tags, true: process tags
00046         bool use_tag_lengths;   // false: ignore lengths in tag, true: override burst_length with length in tag
00047         std::vector<std::string> trigger_tags;          // <sob>
00048         std::vector<std::string> length_tags;           // <length> -> contains 'int' with length in samples
00049         std::map<std::string,std::string> eob_tags;     // <sob,eob>
00050 } baz_burster_config;
00051 
00052 #endif /* INCLUDED_BAZ_BURSTER_CONFIG_H */