root / gnuradio-core / src / lib / general / gr_mpsk_receiver_cc.i @ e4eb47f0
History | View | Annotate | Download (2.2 kB)
| 1 | 28e08614 | trondeau | /* -*- c++ -*- */ |
|---|---|---|---|
| 2 | 28e08614 | trondeau | /* |
| 3 | 28e08614 | trondeau | * Copyright 2004 Free Software Foundation, Inc. |
| 4 | 28e08614 | trondeau | * |
| 5 | 28e08614 | trondeau | * This file is part of GNU Radio |
| 6 | 28e08614 | trondeau | * |
| 7 | 28e08614 | trondeau | * GNU Radio is free software; you can redistribute it and/or modify |
| 8 | 28e08614 | trondeau | * it under the terms of the GNU General Public License as published by |
| 9 | 937b719d | eb | * the Free Software Foundation; either version 3, or (at your option) |
| 10 | 28e08614 | trondeau | * any later version. |
| 11 | 28e08614 | trondeau | * |
| 12 | 28e08614 | trondeau | * GNU Radio is distributed in the hope that it will be useful, |
| 13 | 28e08614 | trondeau | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | 28e08614 | trondeau | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | 28e08614 | trondeau | * GNU General Public License for more details. |
| 16 | 28e08614 | trondeau | * |
| 17 | 28e08614 | trondeau | * You should have received a copy of the GNU General Public License |
| 18 | 28e08614 | trondeau | * along with GNU Radio; see the file COPYING. If not, write to |
| 19 | 28e08614 | trondeau | * the Free Software Foundation, Inc., 51 Franklin Street, |
| 20 | 28e08614 | trondeau | * Boston, MA 02110-1301, USA. |
| 21 | 28e08614 | trondeau | */ |
| 22 | 28e08614 | trondeau | |
| 23 | 28e08614 | trondeau | GR_SWIG_BLOCK_MAGIC(gr,mpsk_receiver_cc); |
| 24 | 28e08614 | trondeau | |
| 25 | 28e08614 | trondeau | gr_mpsk_receiver_cc_sptr gr_make_mpsk_receiver_cc (unsigned int M, float theta, |
| 26 | 28e08614 | trondeau | float alpha, float beta, |
| 27 | 28e08614 | trondeau | float fmin, float fmax, |
| 28 | 28e08614 | trondeau | float mu, float gain_mu, |
| 29 | 28e08614 | trondeau | float omega, float gain_omega, float omega_rel); |
| 30 | 28e08614 | trondeau | class gr_mpsk_receiver_cc : public gr_block |
| 31 | 28e08614 | trondeau | {
|
| 32 | 28e08614 | trondeau | private: |
| 33 | 28e08614 | trondeau | gr_mpsk_receiver_cc (unsigned int M,float theta, |
| 34 | 28e08614 | trondeau | float alpha, float beta, |
| 35 | 28e08614 | trondeau | float fmin, float fmax, |
| 36 | 28e08614 | trondeau | float mu, float gain_mu, |
| 37 | 28e08614 | trondeau | float omega, float gain_omega, float omega_rel); |
| 38 | 28e08614 | trondeau | public: |
| 39 | 28e08614 | trondeau | float mu() const { return d_mu;}
|
| 40 | 28e08614 | trondeau | float omega() const { return d_omega;}
|
| 41 | 28e08614 | trondeau | float gain_mu() const { return d_gain_mu;}
|
| 42 | 28e08614 | trondeau | float gain_omega() const { return d_gain_omega;}
|
| 43 | 28e08614 | trondeau | void set_mu (float mu) { d_mu = mu; }
|
| 44 | 28e08614 | trondeau | void set_omega (float omega) {
|
| 45 | 28e08614 | trondeau | d_omega = omega; |
| 46 | 28e08614 | trondeau | d_min_omega = omega*(1.0 - d_omega_rel); |
| 47 | 28e08614 | trondeau | d_max_omega = omega*(1.0 + d_omega_rel); |
| 48 | 28e08614 | trondeau | } |
| 49 | 28e08614 | trondeau | void set_gain_mu (float gain_mu) { d_gain_mu = gain_mu; }
|
| 50 | 28e08614 | trondeau | void set_gain_omega (float gain_omega) { d_gain_omega = gain_omega; }
|
| 51 | 28e08614 | trondeau | float alpha() const { return d_alpha; }
|
| 52 | 28e08614 | trondeau | float beta() const { return d_beta; }
|
| 53 | 28e08614 | trondeau | float freq() const { return d_freq; }
|
| 54 | 28e08614 | trondeau | float phase() const { return d_phase; }
|
| 55 | 28e08614 | trondeau | void set_alpha(float alpha) { d_alpha = alpha; }
|
| 56 | 28e08614 | trondeau | void set_beta(float beta) { d_beta = beta; }
|
| 57 | 28e08614 | trondeau | void set_freq(float freq) { d_freq = freq; }
|
| 58 | 28e08614 | trondeau | void set_phase(float phase) { d_phase = phase; }
|
| 59 | 28e08614 | trondeau | }; |