piotr | 4089c1a | 2014-08-06 14:10:56 +0200 | [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 | #ifndef INCLUDED_GSM_CONTROLLED_ROTATOR_CC_IMPL_H |
| 22 | #define INCLUDED_GSM_CONTROLLED_ROTATOR_CC_IMPL_H |
| 23 | |
| 24 | #include <gsm/controlled_rotator_cc.h> |
| 25 | #include <gnuradio/blocks/rotator.h> |
| 26 | |
| 27 | namespace gr { |
| 28 | namespace gsm { |
| 29 | |
| 30 | class controlled_rotator_cc_impl : public controlled_rotator_cc |
| 31 | { |
| 32 | private: |
| 33 | gr_complex d_phase_inc; |
| 34 | double d_samp_rate; |
| 35 | blocks::rotator d_r; |
| 36 | |
| 37 | public: |
| 38 | controlled_rotator_cc_impl(double phase_inc, double samp_rate); |
| 39 | ~controlled_rotator_cc_impl(); |
| 40 | |
| 41 | virtual void set_phase_inc(double phase_inc); |
| 42 | virtual void set_samp_rate(double samp_rate); |
| 43 | // Where all the action really happens |
| 44 | int work(int noutput_items, |
| 45 | gr_vector_const_void_star &input_items, |
| 46 | gr_vector_void_star &output_items); |
| 47 | }; |
| 48 | |
| 49 | } // namespace gsm |
| 50 | } // namespace gr |
| 51 | |
| 52 | #endif /* INCLUDED_GSM_CONTROLLED_ROTATOR_CC_IMPL_H */ |
| 53 | |