2003-09-28 20:51:05 +00:00
|
|
|
/*
|
|
|
|
* Hamlib GNUradio backend - Narrow FM class
|
|
|
|
* Copyright (c) 2003 by Stephane Fillod
|
|
|
|
*
|
|
|
|
*
|
2011-08-21 00:25:44 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-09-28 20:51:05 +00:00
|
|
|
*
|
2011-08-21 00:25:44 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2003-09-28 20:51:05 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-21 00:25:44 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-09-28 20:51:05 +00:00
|
|
|
*
|
2011-08-21 00:25:44 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2003-09-28 20:51:05 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-21 00:25:44 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-09-28 20:51:05 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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:
|
2011-08-21 00:25:44 +00:00
|
|
|
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) {
|
2003-09-28 20:51:05 +00:00
|
|
|
|
2004-02-08 20:27:58 +00:00
|
|
|
demod_in = demod_out = q_demod = new VrQuadratureDemod<d_oType>(1.0);
|
2003-09-28 20:51:05 +00:00
|
|
|
}
|
|
|
|
~FMDemodChainCF() { delete q_demod; }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _NFM_H */
|