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