piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 1 | /* -*- 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> |
piotr | c7c249a | 2014-05-02 17:24:08 +0200 | [diff] [blame] | 28 | #include <gnuradio/sync_block.h> |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 29 | |
| 30 | namespace gr { |
| 31 | namespace gsm { |
| 32 | |
| 33 | /*! |
| 34 | * \brief <+description of block+> |
| 35 | * \ingroup gsm |
| 36 | * |
| 37 | */ |
piotr | c7c249a | 2014-05-02 17:24:08 +0200 | [diff] [blame] | 38 | class GSM_API receiver : virtual public sync_block |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 39 | { |
| 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 K | 8e4d727 | 2014-08-07 17:02:13 +0200 | [diff] [blame] | 51 | static sptr make(int osr, int arfcn); |
piotr | f2b6a1b | 2014-08-04 11:28:59 +0200 | [diff] [blame] | 52 | |
| 53 | virtual void set_arfcn(int arfcn) = 0; |
| 54 | virtual void reset() = 0; |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 55 | }; |
Piotr K | 66bb3cd | 2014-08-13 19:04:57 +0200 | [diff] [blame] | 56 | |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 57 | } // namespace gsm |
| 58 | } // namespace gr |
| 59 | |
| 60 | #endif /* INCLUDED_GSM_RECEIVER_H */ |
Piotr K | 66bb3cd | 2014-08-13 19:04:57 +0200 | [diff] [blame] | 61 | |