GNU Radio 3.6.5 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  * \ingroup modulators_blk
00040  *
00041  * \details
00042  * The input of this block are symbols from an M-ary alphabet
00043  * +/-1, +/-3, ..., +/-(M-1). Usually, M = 2 and therefore, the
00044  * valid inputs are +/-1.
00045  * The modulator will silently accept any other inputs, though.
00046  * The output is the phase-modulated signal.
00047  */
00048 class DIGITAL_API digital_gmskmod_bc : public digital_cpmmod_bc
00049 {
00050   friend DIGITAL_API digital_gmskmod_bc_sptr digital_make_gmskmod_bc(unsigned samples_per_sym,
00051                                                          double bt, unsigned L);
00052   /*!
00053    * Build a GMSK modulator block.
00054    *
00055    * \param samples_per_sym Samples per symbol.
00056    * \param bt The 3 dB time-bandwidth product.
00057    * \param L The length of the phase duration in symbols. The Gaussian
00058    *          pulse is truncated after L symbols.
00059    */
00060   digital_gmskmod_bc(unsigned samples_per_sym,
00061                      double bt, unsigned L);
00062 };
00063 
00064 #endif /* INCLUDED_DIGITAL_GMSKMOD_BC_H */
00065