gr-baz Package
baz_burster_config.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23/*
24 * gr-baz by Balint Seeber (http://spench.net/contact)
25 * Information, documentation & samples: http://wiki.spench.net/wiki/gr-baz
26 */
27
28#ifndef INCLUDED_BAZ_BURSTER_CONFIG_H
29#define INCLUDED_BAZ_BURSTER_CONFIG_H
30
32{
33 int sample_rate; // Hz
34 int item_size; // bytes
35 int burst_length; // # items (= vlen)
36 double interval; // seconds|samples
37 bool sample_interval; // false: interval is seconds, true: interval is # samples
38 bool relative_time; // false: absolute time (calculate from absolute burst time), true: calculate from when last burst was transmitted
39 bool drop_current; // false: hold current message until queue can accept, true: drop current and try with future burst
40 bool use_host_time; // false: derive time from stream, true: use wall time
41 bool read_time_tag; // false: derive time only from stream, true: derive time from time tag AND sample count
42 bool output_messages; // output bursts as messages
43 gr::msg_queue::sptr msgq; // message destination
44 bool output_stream; // output bursts on output stream
45 bool trigger_on_tags; // false: ignore tags, true: process tags
46 bool use_tag_lengths; // false: ignore lengths in tag, true: override burst_length with length in tag
47 std::vector<std::string> trigger_tags; // <sob>
48 std::vector<std::string> length_tags; // <length> -> contains 'int' with length in samples
49 std::map<std::string,std::string> eob_tags; // <sob,eob>
51
52#endif /* INCLUDED_BAZ_BURSTER_CONFIG_H */
struct baz_burster_config_t baz_burster_config
Definition: baz_burster_config.h:32
int burst_length
Definition: baz_burster_config.h:35
bool output_stream
Definition: baz_burster_config.h:44
std::vector< std::string > trigger_tags
Definition: baz_burster_config.h:47
bool drop_current
Definition: baz_burster_config.h:39
bool use_tag_lengths
Definition: baz_burster_config.h:46
std::map< std::string, std::string > eob_tags
Definition: baz_burster_config.h:49
bool output_messages
Definition: baz_burster_config.h:42
bool use_host_time
Definition: baz_burster_config.h:40
std::vector< std::string > length_tags
Definition: baz_burster_config.h:48
bool trigger_on_tags
Definition: baz_burster_config.h:45
double interval
Definition: baz_burster_config.h:36
bool relative_time
Definition: baz_burster_config.h:38
gr::msg_queue::sptr msgq
Definition: baz_burster_config.h:43
int item_size
Definition: baz_burster_config.h:34
bool sample_interval
Definition: baz_burster_config.h:37
int sample_rate
Definition: baz_burster_config.h:33
bool read_time_tag
Definition: baz_burster_config.h:41