/* -*- c++ -*- */ /* * Copyright 2014 <+YOU OR YOUR COMPANY+>. * * This 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. * * This software 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 this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ #ifndef INCLUDED_TAG_SOURCE_DEMO_TAG_SOURCE_DEMO_IMPL_H #define INCLUDED_TAG_SOURCE_DEMO_TAG_SOURCE_DEMO_IMPL_H #include namespace gr { namespace tx_tagging { class tx_tagging_impl : public tx_tagging { private: // Nothing to declare in this block. public: uint64_t _time_secs; double _time_fracs; double _samp_rate; uint64_t _samps_per_burst; double _cycle_duration; uint64_t _samps_left_in_burst; bool _do_new_burst; bool _firstrun; pmt::pmt_t _length_tag_key; //my modifications void make_time_tag(const uint64_t tag_count); void make_sob_tag(const uint64_t tag_count); void make_eob_tag(const uint64_t tag_count); void make_length_tag( const uint64_t tag_count, const uint64_t burst_len); tx_tagging_impl(const double samp_rate,const double idle_duration,const double burst_duration,const std::string &length_tag_name); ~tx_tagging_impl(); // Where all the action really happens int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items); }; } // namespace tag_source_demo } // namespace gr #endif /* INCLUDED_TAG_SOURCE_DEMO_TAG_SOURCE_DEMO_IMPL_H */