blob: bf4580c16d5407e2046d346bbf4af0f226f12459 [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001/* -*- c++ -*- */
2/*
3 * Copyright 2014 <+YOU OR YOUR COMPANY+>.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21
22#ifndef INCLUDED_GSM_RECEIVER_H
23#define INCLUDED_GSM_RECEIVER_H
24
25#include <gsm/api.h>
26#include <gnuradio/block.h>
27#include <gnuradio/feval.h>
piotrc7c249a2014-05-02 17:24:08 +020028#include <gnuradio/sync_block.h>
piotr437f5462014-02-04 17:57:25 +010029
30namespace gr {
31 namespace gsm {
32
33 /*!
34 * \brief <+description of block+>
35 * \ingroup gsm
36 *
37 */
piotrc7c249a2014-05-02 17:24:08 +020038 class GSM_API receiver : virtual public sync_block
piotr437f5462014-02-04 17:57:25 +010039 {
40 public:
41 typedef boost::shared_ptr<receiver> sptr;
42
43 /*!
44 * \brief Return a shared_ptr to a new instance of gsm::receiver.
45 *
46 * To avoid accidental use of raw pointers, gsm::receiver's
47 * constructor is in a private implementation
48 * class. gsm::receiver::make is the public interface for
49 * creating new instances.
50 */
Piotr K8e4d7272014-08-07 17:02:13 +020051 static sptr make(int osr, int arfcn);
piotrf2b6a1b2014-08-04 11:28:59 +020052
53 virtual void set_arfcn(int arfcn) = 0;
54 virtual void reset() = 0;
piotr437f5462014-02-04 17:57:25 +010055 };
Piotr K66bb3cd2014-08-13 19:04:57 +020056
piotr437f5462014-02-04 17:57:25 +010057 } // namespace gsm
58} // namespace gr
59
60#endif /* INCLUDED_GSM_RECEIVER_H */
Piotr K66bb3cd2014-08-13 19:04:57 +020061