GNU Radio 3.5.1 C++ API
digital_gmskmod_bc.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2010 Free Software Foundation, Inc.
00004  *
00005  * This file is part of GNU Radio
00006  *
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3, or (at your option)
00010  * any later version.
00011  *
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022 
00023 #ifndef INCLUDED_DIGITAL_GMSKMOD_BC_H
00024 #define INCLUDED_DIGITAL_GMSKMOD_BC_H
00025 
00026 #include <digital_api.h>
00027 #include <digital_cpmmod_bc.h>
00028 
00029 class digital_gmskmod_bc;
00030 typedef boost::shared_ptr<digital_gmskmod_bc> digital_gmskmod_bc_sptr;
00031 
00032 
00033 DIGITAL_API digital_gmskmod_bc_sptr
00034 digital_make_gmskmod_bc(unsigned samples_per_sym=2,
00035                         double bt=0.3, unsigned L=4);
00036 
00037 /*!
00038  * \brief GMSK modulator
00039  *
00040  * \ingroup modulation_blk
00041  * \ingroup digital
00042  *
00043  * \param samples_per_sym Samples per symbol.
00044  * \param bt The 3 dB time-bandwidth product.
00045  * \param L The length of the phase duration in symbols. The Gaussian
00046  *          pulse is truncated after L symbols.
00047  *
00048  * The input of this block are symbols from an M-ary alphabet
00049  * +/-1, +/-3, ..., +/-(M-1). Usually, M = 2 and therefore, the
00050  * valid inputs are +/-1.
00051  * The modulator will silently accept any other inputs, though.
00052  * The output is the phase-modulated signal.
00053  */
00054 class DIGITAL_API digital_gmskmod_bc : public digital_cpmmod_bc
00055 {
00056   friend DIGITAL_API digital_gmskmod_bc_sptr digital_make_gmskmod_bc(unsigned samples_per_sym,
00057                                                          double bt, unsigned L);
00058   digital_gmskmod_bc(unsigned samples_per_sym,
00059                      double bt, unsigned L);
00060 };
00061 
00062 #endif /* INCLUDED_DIGITAL_GMSKMOD_BC_H */
00063