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