2014-02-04 16:57:25 +00:00
|
|
|
/* -*- c++ -*- */
|
2014-12-02 17:07:38 +00:00
|
|
|
/*
|
|
|
|
* @file
|
2017-08-23 14:02:19 +00:00
|
|
|
* @author (C) 2014-2016 by Piotr Krysik <ptrkrysik@gmail.com>
|
2014-12-02 17:07:38 +00:00
|
|
|
* @section LICENSE
|
|
|
|
*
|
|
|
|
* Gr-gsm is free software; you can redistribute it and/or modify
|
2014-02-04 16:57:25 +00:00
|
|
|
* 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.
|
2014-12-02 17:07:38 +00:00
|
|
|
*
|
|
|
|
* Gr-gsm is distributed in the hope that it will be useful,
|
2014-02-04 16:57:25 +00:00
|
|
|
* 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.
|
2014-12-02 17:07:38 +00:00
|
|
|
*
|
2014-02-04 16:57:25 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-12-02 17:07:38 +00:00
|
|
|
* along with gr-gsm; see the file COPYING. If not, write to
|
2014-02-04 16:57:25 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDED_GSM_RECEIVER_H
|
|
|
|
#define INCLUDED_GSM_RECEIVER_H
|
|
|
|
|
2014-12-13 09:11:00 +00:00
|
|
|
#include <grgsm/api.h>
|
2014-02-04 16:57:25 +00:00
|
|
|
#include <gnuradio/block.h>
|
2014-05-02 15:24:08 +00:00
|
|
|
#include <gnuradio/sync_block.h>
|
2015-07-08 08:50:41 +00:00
|
|
|
#include <vector>
|
2014-02-04 16:57:25 +00:00
|
|
|
|
|
|
|
namespace gr {
|
|
|
|
namespace gsm {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief <+description of block+>
|
|
|
|
* \ingroup gsm
|
|
|
|
*
|
|
|
|
*/
|
2016-05-29 11:05:48 +00:00
|
|
|
class GRGSM_API receiver : virtual public sync_block
|
2014-02-04 16:57:25 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef boost::shared_ptr<receiver> sptr;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Return a shared_ptr to a new instance of gsm::receiver.
|
|
|
|
*
|
|
|
|
* To avoid accidental use of raw pointers, gsm::receiver's
|
|
|
|
* constructor is in a private implementation
|
|
|
|
* class. gsm::receiver::make is the public interface for
|
|
|
|
* creating new instances.
|
|
|
|
*/
|
2016-05-15 08:39:39 +00:00
|
|
|
static sptr make(int osr, const std::vector<int> &cell_allocation, const std::vector<int> &seq_nums, bool process_uplink=false);
|
2014-08-04 09:28:59 +00:00
|
|
|
|
2014-11-19 10:27:34 +00:00
|
|
|
virtual void set_cell_allocation(const std::vector<int> &cell_allocation) = 0;
|
2014-11-06 13:50:59 +00:00
|
|
|
virtual void set_tseq_nums(const std::vector<int> & tseq_nums) = 0;
|
2014-08-04 09:28:59 +00:00
|
|
|
virtual void reset() = 0;
|
2014-02-04 16:57:25 +00:00
|
|
|
};
|
2014-08-13 17:04:57 +00:00
|
|
|
|
2014-02-04 16:57:25 +00:00
|
|
|
} // namespace gsm
|
|
|
|
} // namespace gr
|
|
|
|
|
|
|
|
#endif /* INCLUDED_GSM_RECEIVER_H */
|
2014-08-13 17:04:57 +00:00
|
|
|
|