flag_gen_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2013 Achilleas Anastasopoulos, Zhe Feng.
*
* 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_CDMA_FLAG_GEN_IMPL_H
#define INCLUDED_CDMA_FLAG_GEN_IMPL_H
#include <cdma/flag_gen.h>
namespace gr {
namespace cdma {
class flag_gen_impl : public flag_gen
{
private:
int d_period;
int d_acq;
int d_counter;
public:
flag_gen_impl(int period, int acq);
~flag_gen_impl();
int get_period() const { return d_period; }
int get_acq() const { return d_acq; }
void set_acq(int acq);
// 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 cdma
} // namespace gr
#endif /* INCLUDED_CDMA_FLAG_GEN_IMPL_H */
gr::cdma::flag_gen_impl
Definition: flag_gen_impl.h:30
gr::cdma::flag_gen_impl::~flag_gen_impl
~flag_gen_impl()
gr::cdma::flag_gen_impl::set_acq
void set_acq(int acq)
gr::cdma::flag_gen_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::cdma::flag_gen_impl::get_acq
int get_acq() const
Definition: flag_gen_impl.h:40
gr::cdma::flag_gen_impl::flag_gen_impl
flag_gen_impl(int period, int acq)
gr::cdma::flag_gen_impl::get_period
int get_period() const
Definition: flag_gen_impl.h:39
gr::cdma::flag_gen
This block either passes through the input stream (assumed to be zeros or ones) when its internal sta...
Definition: flag_gen.h:54
flag_gen.h
gr
Definition: amp_var_est.h:30