1
/***************************************************************************
2
cdemodulator.h - description
5
copyright : (C) 2001 by Volker Schroer
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
***************************************************************************/
17
#ifndef CDEMODULATOR_H
18
#define CDEMODULATOR_H
23
/**Base class for all possible types of demodulators
24
*@author Volker Schroer
27
class CDemodulator : public QObject
33
virtual ~CDemodulator();
34
/** processes the input */
35
virtual void ProcessInput(double *input) = 0;
36
/** gets the selected frequency */
37
double getRxFrequency(void);
38
/** Initialises something */
39
virtual bool Init(double,int) = 0;
44
/** Frequency to be received */
48
/** enables/ disables the use of AFC */
49
virtual void setAfc(bool);
50
/** sets the frequency for the demodulator */
51
virtual void setRxFrequency(double);
55
/** Signal will be emitted if a new character was detected */
58
void setFastSquelch(bool);
60
void setSquelchValue(int);
61
/** Signal will be emitted if AFC is on and the RxFrequency has changed */
62
void rxFrequencyChanged(double);
63
/** Send Phase Value */
64
void newPhaseValue(int,float_complex);