Logo Search packages:      
Sourcecode: hamlib version File versions

nfm.h

/*
 *  Hamlib GNUradio backend - Narrow FM class
 *  Copyright (c) 2003 by Stephane Fillod
 *
 *    $Id: nfm.h,v 1.2 2004/02/08 20:27:58 fillods Exp $
 *
 *   This library is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Library General Public License as
 *   published by the Free Software Foundation; either version 2 of
 *   the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Library General Public License for more details.
 *
 *   You should have received a copy of the GNU Library General Public
 *   License along with this library; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef _NFM_H
#define _NFM_H 1

#include "demod.h"

#include <VrQuadratureDemod.h>      /* FM */


class FMDemodChainCF : public DemodChainCF {
  private:
      VrQuadratureDemod<d_oType> *q_demod;

  public:
      FMDemodChainCF (VrSource<d_iType> *src, VrSink<d_oType> *snk, rmode_t mode, pbwidth_t width, int input_rate, freq_t centerfreq = 0) : 
            DemodChainCF(src, snk, mode, width, input_rate, centerfreq) { 

            demod_in = demod_out = q_demod = new VrQuadratureDemod<d_oType>(1.0);
      }
      ~FMDemodChainCF() { delete q_demod; }
};

#endif      /* _NFM_H */

Generated by  Doxygen 1.6.0   Back to index